newbie hacking: fixing that raw_input() raises exception

2007-02-25 Thread Gilbert Fine
I am a newbie here. I tried to setup my first Django project. When running command "syncdb", the command got an EOFError exception from raw_input() in contrib/auth/management.py, where it was trying to ask me if I want to create a superuser. Having checking and 'truss', I found the reason should

Re: Upcoming Django release, and the future

2007-02-25 Thread Malcolm Tredinnick
On Mon, 2007-02-26 at 00:00 -0600, Jacob Kaplan-Moss wrote: > On 2/25/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > Also, I'd like to see some of the decimal related tickets worked on but > > this may have to wait until 1.0. > >

Re: Upcoming Django release, and the future

2007-02-25 Thread Malcolm Tredinnick
On Sun, 2007-02-25 at 23:56 -0600, Jacob Kaplan-Moss wrote: > On 2/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: [...] > > Third, there are lots of translation tickets ready for checkin, which > > would be nice to patch in. Django's got a good reputation for i18n/ > > l10n, so getting these

Re: Upcoming Django release, and the future

2007-02-25 Thread Jacob Kaplan-Moss
On 2/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > My vote would be for spending some time on edit_inline (e.g. > http://code.djangoproject.com/wiki/FeatureGrouping#Multipleedit_inlineissues), > as this alone is causing craploads of bugs and cleaning all these out > would be great. AFAIK,

Re: Upcoming Django release, and the future

2007-02-25 Thread Malcolm Tredinnick
On Sun, 2007-02-25 at 21:22 -0800, [EMAIL PROTECTED] wrote: > Excellent, I hope you guys get many hours for coding! > > Here's a few comments based on my triage experience (whatever that's > worth): > > My vote would be for spending some time on edit_inline (e.g. >

Re: Upcoming Django release, and the future

2007-02-25 Thread Chris Moffitt
> If there's a bug that's been annoying the heck out of you and you want > it fixed before the release, this would be the time to speak up about > it. We have a fairly high concentration of Django developers all in > one place with nothing to do but code, so hopefully we'll be able to > hit a

Re: Newbie Question: If statement in templates help

2007-02-25 Thread Robert Coup
Merric Mercer wrote: > I may be wrong but I believe that the you cannot use the If statement > inside a template to evaluate a specific value. You use it to > determine whether the object or value exists ( has been returned by the > view). > > I think that this is because the developers

Re: Upcoming Django release, and the future

2007-02-25 Thread [EMAIL PROTECTED]
Excellent, I hope you guys get many hours for coding! Here's a few comments based on my triage experience (whatever that's worth): My vote would be for spending some time on edit_inline (e.g. http://code.djangoproject.com/wiki/FeatureGrouping#Multipleedit_inlineissues), as this alone is causing

Re: Django snippets

2007-02-25 Thread James Bennett
On 2/25/07, limodou <[EMAIL PROTECTED]> wrote: > For displaying snippets, maybe the description is under the code but > not in right side is better. Because some description maybe long, and > the right side is too narrow to display. And if I can write the > description in ReST? Probably not

Re: Django snippets

2007-02-25 Thread limodou
Some suggestions: For editing snippets, the title too short, and the code and the description maybe larger. For displaying snippets, maybe the description is under the code but not in right side is better. Because some description maybe long, and the right side is too narrow to display. And if

Re: Django snippets

2007-02-25 Thread limodou
It seems that I can not change the language type of a snippets. So if you can add changing language type functionality. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You

Re: Django snippets

2007-02-25 Thread James Bennett
Also, a few people have mentioned not getting account activation emails; I don't know what's up with that, but I just manually activated a bunch of accounts. If you register and don't get an activation email within twelve hours, let me know (email me directly -- don't spam the list) and I'll take

Re: Django snippets

2007-02-25 Thread limodou
On 2/26/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 2/25/07, limodou <[EMAIL PROTECTED]> wrote: > > Can you add RSS to the site, so that I can subscribe it to see the > > newest entries. > > There's some very basic feed code in the app already, but it's not > quite done and I want to get

Re: Django snippets

2007-02-25 Thread James Bennett
On 2/25/07, limodou <[EMAIL PROTECTED]> wrote: > Can you add RSS to the site, so that I can subscribe it to see the > newest entries. There's some very basic feed code in the app already, but it's not quite done and I want to get it right before I start exposing it :) -- "Bureaucrat Conrad,

Re: does Django cache work across scripts?

2007-02-25 Thread James Bennett
On 2/25/07, Jaanus <[EMAIL PROTECTED]> wrote: > API, from where the web side of things can pick it up? 1) will it work > (of course I'll also try out myself, but I thought I'd consult a bit > first) and 2) is it a nice/"right" way of doing things? maybe I should > look at some other architectural

does Django cache work across scripts?

2007-02-25 Thread Jaanus
Hi, aplogies if this is a FAQ/recently discussed - I tried a quick search but didn't find anything - hit me with a URL if there is one. My question - does Django cache work across scripts? The problem I have is: my page needs to show some data that is timewise expensive to generate. If I do it

Flash Game maker & Animation Tools for Kids and Professionals

2007-02-25 Thread Julia Martin
Flash Animation - The Game making and easy learning [image: Flash animation maker - game makers] http://100stuff.com/info/flash-game-maker/ Best Flash animation softwares Flash Game Makers Game Making Tools Easy Game Making Click here.

Best Professional Designing Softwares

2007-02-25 Thread Sheela Thaper
Professional Designing Tools & Softwares [image: 3D Designing Tools Kingdom] http://www.100stuff.com/downloads/3d_design/ *Best 3D designing Tools* *Professional Designing software* *Electronic Designings* *Electrical Circuits designing* *Civil

search engine powered by Django

2007-02-25 Thread krypton
http://www.teenwag.com/search?q=%09+Antonella+Barba=Search http://www.teenwag.com/search?q=%09+Anna+Nicole+smith=Search --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: permalink decorator is not working (at least for me)

2007-02-25 Thread Malcolm Tredinnick
On Sun, 2007-02-25 at 20:55 +0100, Lawrence Oluyede wrote: > I tried to use the new permalink decorator to decouple the model from > the urlconf structure but it doesn't work correctly. Here's an > example: > > def get_absolute_url(self): > return "/foo/%d" % self.id > > changed to:

Re: Django snippets

2007-02-25 Thread Malcolm Tredinnick
On Sun, 2007-02-25 at 16:56 -0600, James Bennett wrote: [...] > > Hopefully, that will soon fade into memories of "that's what it was > like in the old days", because today I've launched djangosnippets.org, > a site whose sole purpose is to make it easy to post and share useful > bits of

Re: Django snippets

2007-02-25 Thread limodou
On 2/26/07, limodou <[EMAIL PROTECTED]> wrote: > On 2/26/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > > For a while now I've been annoyed with the fact that, while it's > > relatively easy to build and advertise a complete Django application, > > it's relatively hard to advertise smaller

Re: Newbie: Accessor and Definition help

2007-02-25 Thread DuncanM
Indeed, I am such an idiot at times. Once again your help is very much appreciated. Many thanks Duncan On Feb 26, 1:06 am, "Chase" <[EMAIL PROTECTED]> wrote: > I don't know exactly what it's referring to, but check to make sure > that any True's in your model (I don't see any in the one you

Many-to-many search

2007-02-25 Thread Mark Jarecki
Hi guys, I'm setting up a site with many events that occur at many places. I want to create a scalable search and am considering using something like Xapian to implement it, however, I've not used it or its equivalents before. Does anyone have clear instructions on how to install and use

Re: Newbie: Accessor and Definition help

2007-02-25 Thread Chase
I don't know exactly what it's referring to, but check to make sure that any True's in your model (I don't see any in the one you posted) are spelled "True" and not "TRUE". Python is case sensitive. > $ python2.4 manage.py syncdb > Error: Couldn't install apps, because there were errors in one

Re: Newbie: Accessor and Definition help

2007-02-25 Thread DuncanM
Thank you Honza and Chase, you have both been extremely helpful. Many thanks, Duncan On Feb 26, 12:09 am, "Chase" <[EMAIL PROTECTED]> wrote: > More like:> goalkeeper = models.ForeignKey(Player, > related_name="goalkeeper_for") > > leftback = models.ForeignKey(Player,

Re: Newbie: Accessor and Definition help

2007-02-25 Thread Chase
More like: > goalkeeper = models.ForeignKey(Player, related_name="goalkeeper_for") > leftback = models.ForeignKey(Player, related_name="leftback_for") etc. What ForeignKey does is creates a reference in the object related (Player) so that you could also analyze the relationship in reverse

Re: Django snippets

2007-02-25 Thread limodou
On 2/26/07, James Bennett <[EMAIL PROTECTED]> wrote: > > For a while now I've been annoyed with the fact that, while it's > relatively easy to build and advertise a complete Django application, > it's relatively hard to advertise smaller pieces of useful code; there > are tons of things in the

Re: Newbie: Accessor and Definition help

2007-02-25 Thread DuncanM
as in: goalkeeper = models.ForeignKey(Player, UNIQUE) leftback = models.ForeignKey(Player, UNIQUE) centreback1 = models.ForeignKey(Player, UNIQUE) centreback2 = models.ForeignKey(Player, UNIQUE) rightback = models.ForeignKey(Player, UNIQUE) leftmid = models.ForeignKey(Player, UNIQUE)

Re: viewing data

2007-02-25 Thread akonsu
if you want we can take this off line. just email me. this thread does not really belong here. konstantin On Feb 25, 5:06 pm, "Mary" <[EMAIL PROTECTED]> wrote: > yes that is true and it has the following fields: > owner; title;current date that the article has been saved;content > > Thank you

Django snippets

2007-02-25 Thread James Bennett
For a while now I've been annoyed with the fact that, while it's relatively easy to build and advertise a complete Django application, it's relatively hard to advertise smaller pieces of useful code; there are tons of things in the "Cookbook" section of the wiki and on people's blogs, but it's

Re: Newbie: Accessor and Definition help

2007-02-25 Thread Honza Král
On 2/25/07, DuncanM <[EMAIL PROTECTED]> wrote: > > I have 2 classes: > > class Player(models.Model): > team = models.ForeignKey(Team) > forename = models.CharField(maxlength=50) > surname = models.CharField(maxlength=50) > age = models.PositiveIntegerField() > sex =

Re: Newbie Question: If statement in templates help

2007-02-25 Thread Merric Mercer
I may be wrong but I believe that the you cannot use the If statement inside a template to evaluate a specific value. You use it to determine whether the object or value exists ( has been returned by the view). I think that this is because the developers wanted to maintain a distinction

Newbie: Accessor and Definition help

2007-02-25 Thread DuncanM
I have 2 classes: class Player(models.Model): team = models.ForeignKey(Team) forename = models.CharField(maxlength=50) surname = models.CharField(maxlength=50) age = models.PositiveIntegerField() sex = models.CharField(maxlength=1, choices=Gender_Choices) class Admin: pass

Re: viewing data

2007-02-25 Thread Mary
yes that is true and it has the following fields: owner; title;current date that the article has been saved;content Thank you :) On Feb 25, 11:58 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > i assume that you have a model called "Article", right? what fields > does it have? > > konstanti > > On

Re: create a view

2007-02-25 Thread Mary
Yes that is true But i would like to show the data when certain field in the database =1 How can i write this view? Thank you in advance; Mary Adel On Feb 25, 11:01 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > hello, > > do you mean like here:http://www.djangoproject.com/documentation/tutorial3/

Re: viewing data

2007-02-25 Thread akonsu
i assume that you have a model called "Article", right? what fields does it have? konstanti On Feb 25, 4:36 pm, "Mary" <[EMAIL PROTECTED]> wrote: > Dear konstantin; > > I think you are right as i wasn't clear so i will explain to you my > situation and i would your help > > I want to make a

database field

2007-02-25 Thread Mary
How can i create a field in a model that can't be seen by anyone that logs onto the admin interface except by certain user only Thank you in advance; Mary Adel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: viewing data

2007-02-25 Thread Mary
Dear konstantin; I think you are right as i wasn't clear so i will explain to you my situation and i would your help I want to make a site for a magazine and in this magazin there is many types of articles [sport -technology ..] everyone in the magazine can write the article that he needs but

AGLOCO

2007-02-25 Thread ebibanzai
Dear , I recently joined AGLOCO because of a friend recommended it to me. I am now promoting it to you because I like the idea and I want you to share in what I think will be an exciting new Internet concept. AGLOCO's story is simple: Do you realize how valuable you are? Advertisers, search

Re: viewing data

2007-02-25 Thread akonsu
Hello, your post is confusing. to start with, when you create models you do not deal with any database tables. django creates tables for you from the models. then, what you said about different titles, and admin is not sufficient for me to understand what you are trying to achieve. konstantin

Re: create a view

2007-02-25 Thread akonsu
hello, do you mean like here: http://www.djangoproject.com/documentation/tutorial3/ konstantin On Feb 25, 3:51 pm, "Mary" <[EMAIL PROTECTED]> wrote: > How can i create a view that select data from database and then view > it in html template > i really appreciate any help :) > > Thank you in

viewing data

2007-02-25 Thread Mary
I have a table that contains certain articles and i need to create a model that will view all the titles of this article to the admin person [from the admin interface] and he will select one of this articles to be published Can anyone help me how to create this model?? Thank you in advance ;

create a view

2007-02-25 Thread Mary
How can i create a view that select data from database and then view it in html template i really appreciate any help :) Thank you in advance ; Mary Adel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: How to create the files upload?

2007-02-25 Thread risomt
I've spent a somewhat decent (frustrated) amount of time trying to figure out image uploading myself. The largest chunk of it can be explained via the Manipulator document at Django's website: http://www.djangoproject.com/documentation/forms/ (there is a specific section for images and files,

permalink decorator is not working (at least for me)

2007-02-25 Thread Lawrence Oluyede
I tried to use the new permalink decorator to decouple the model from the urlconf structure but it doesn't work correctly. Here's an example: def get_absolute_url(self): return "/foo/%d" % self.id changed to: def get_absolute_url(self): return

Evaluating Web Development Frameworks: Rails and Django

2007-02-25 Thread Jonathan Linowes
hi y'all, fyi i've posted the first in a series of blog articles, Evaluating Web Development Frameworks: Rails and Django at http://www.vaporbase.com/postings/91 :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

mailing list for helping django apps jam together

2007-02-25 Thread James Tauber
As a follow up to the recent thread on app repositories and conventions for making apps more reusable (and the subsequent raising of these ideas at the Django BOF last night), I've started a Google Group. If you're interested in joining, you can sign up at:

Re: Use an application inside other application

2007-02-25 Thread whiteinge
There's a good writeup on template tags on B-List (with some copy-and- pasteable sample code). http://www.b-list.org/weblog/2006/06/07/django-tips-write-better-template-tags Cheers. - whiteinge On Feb 25, 5:57 am, Dirk Eschler <[EMAIL PROTECTED]> wrote: > On Sonntag, 25. Februar 2007, Grupo

Re: Newbie Question: If statement in templates help

2007-02-25 Thread Matt H
You could do: {% if object.player_set.all %} {% else %} No players currently registered. {% endif %} On 2/25/07, DuncanM <[EMAIL PROTECTED]> wrote: > > > Registered Players > > {% for player in object.player_set.all %} > {{ player.forename }} {{ player.surname }} > ({{ player.age }}) > {%

How to create the files upload?

2007-02-25 Thread Hubi
Hello, I would like to know how to do the files upload in Django? Could you show me some sources or tutorials? Thanks in advance Hubi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Newbie Question: If statement in templates help

2007-02-25 Thread DuncanM
Registered Players {% for player in object.player_set.all %} {{ player.forename }} {{ player.surname }} ({{ player.age }}) {% endfor %} {% if object.player_set.all == "" %} No players currently registered {% endif %} Request Method: GET Request URL:

Re: Use an application inside other application

2007-02-25 Thread Dirk Eschler
On Sonntag, 25. Februar 2007, Grupo Django wrote: > Hello, I have created an app named "menu". I want to build an easy way > of adding items to the menu in the admin zone. I want to render this > menu in every view of others applications (blog, static pages...). > I'd like some suggestions about

Use an application inside other application

2007-02-25 Thread Grupo Django
Hello, I have created an app named "menu". I want to build an easy way of adding items to the menu in the admin zone. I want to render this menu in every view of others applications (blog, static pages...). I'd like some suggestions about how to implement it in the template system. I thought

Use an application inside other application

2007-02-25 Thread Grupo Django
Hello, I have created an app named "menu". I want to build an easy way of adding items to the menu in the admin zone. I want to render this menu in every view of others applications (blog, static pages...). I'd like some suggestions about how to implement it in the template system. I thought

newforms and runtime validation or clean

2007-02-25 Thread ElGranAzul
Hi all I've been testing newforms and it's a great improvement, specially the creation of custom fields, that validate and clean the data. Now I've been also looking at localflavor section, and I've a question. Imagine a multi national application that use standard localized data (country,

Re: Including Berkeley DB Support

2007-02-25 Thread Malcolm Tredinnick
On Sun, 2007-02-25 at 08:54 +, mo wrote: > Hi, > > Is there any plan to include the Berkeley DB support in Django ? No. Although this doesn't preclude somebody from writing their own version of QuerySets that was able to talk to Berkeley DB. The difficulty is that all of the ORM layer in

Including Berkeley DB Support

2007-02-25 Thread mo
Hi, Is there any plan to include the Berkeley DB support in Django ? Regards, Mo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Finding a Django Python Wrangler interesting in improving the world

2007-02-25 Thread Austin Hill
Our team in Montreal is working on a new Django based web community application. We are based in Montreal. I've posted something about it on my blog along with a small video from our team http://www.billionswithzeroknowledge.com/2007/02/24/hiring-a-python-wrangler /. We are going to be