Re: New document: How to write custom template libraries

2005-09-05 Thread Eugene Lazutkin
Wow. By specifying lookup algorithms you covered a lot of white spaces on Django's map. And you saved yourself from flood of template-related questions. I was going to open that can of worms pretty soon. ;-) Thanks, Eugene "Adrian Holovaty" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

New document: How to write custom template libraries

2005-09-05 Thread Adrian Holovaty
I just added this new document: The Django template language: For Python programmers http://www.djangoproject.com/documentation/templates_python/ Comments, fixes, etc. are welcome! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Admin Interface and Foreign Keys

2005-09-05 Thread [EMAIL PROTECTED]
Thanks for looking into it. I've added the ordering to the Job table, and that seems to fix it when I'm sorting by "Job". However, I'm still only getting 1 record being displayed when it says there are 11 (and I know there are that many in the database). Let me know what other information you nee

Re: internal_error.html?

2005-09-05 Thread Eugene Lazutkin
Yep. It depends on size. It seems that web server sends the first part of page up to some limit and stalls for a while. After that it may send the rest or append "internal_error.html" nonsense. Now I have to figure out who is the culprit: Apache, FastCGI server, Django (e.g., FastCGI portion o

Re: internal_error.html?

2005-09-05 Thread Eugene Lazutkin
I use plain vanilla Dreamhost hosting: Apache, MySQL. My setup follows these guidelines: http://wiki.dreamhost.com/index.php/Django Somehow I got impression that it depends on final size of generated page. I didn't verify it yet. Is there any part of Django, which can generate this kind of 404

Re: internal_error.html?

2005-09-05 Thread Adrian Holovaty
On 9/5/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: > I am getting a strange error. I generate relatively long page and browsers > choke on it. It appears that the page is not sent properly. If I wait for > some time I'll get something like that at the end of the page: That's very strange. Whi

Re: tutorial 1 sql problem

2005-09-05 Thread Adrian Holovaty
On 9/5/05, julo <[EMAIL PROTECTED]> wrote: > I installed Django on Ubuntu Linux. I used Julian Hernandez Gomez's > steps written on http://www.djangoproject.com/documentation/install/. > "django-admin.py sql polls" produces for me the error described below. > I am complete newbie to both python an

internal_error.html?

2005-09-05 Thread Eugene Lazutkin
Hello, I am getting a strange error. I generate relatively long page and browsers choke on it. It appears that the page is not sent properly. If I wait for some time I'll get something like that at the end of the page: Using the URLconf defined in abc.settings.urls.main, Django tried these UR

Re: MySQL problem

2005-09-05 Thread Eugene Lazutkin
It looks like I found the problem (actually two problems) and fixed it. It was over-simplified implementation of mysql.DatabaseWrapper class, which didn't take into account how Django uses it. Now I don't know, if it makes sense to submit a patch right now --- it should be regression-tested be

tutorial 1 sql problem

2005-09-05 Thread julo
Hi all, I installed Django on Ubuntu Linux. I used Julian Hernandez Gomez's steps written on http://www.djangoproject.com/documentation/install/. "django-admin.py sql polls" produces for me the error described below. I am complete newbie to both python and django. Thanks, Julo

Re: empty ImageField's in _post_save method

2005-09-05 Thread Krzysztof Drozd
this is not a problem, if the upload_to attribute is not given django will uplada the file in MEDIA_ROOT directory and make that. i can uplad file and servin him from django. but when i will resize (with PIL) the upladed file i con't. when i make im = Image.open(PATH_TO_IMAGE+self.ImageFieldName

Re: empty ImageField's in _post_save method

2005-09-05 Thread Adrian Holovaty
On 9/4/05, Krzysztof Drozd <[EMAIL PROTECTED]> wrote: > i have wrote some app thats have 3 ImageFields. > - model - > name = meta.CharField(maxlength=33) > basic_file = meta.ImageField(blank=False,null=False) > small_file = meta.ImageField(blank=True) > biggg_file = meta.ImageField(blank=True) >

Re: Relating an object to itself, many-to-MANY

2005-09-05 Thread Adrian Holovaty
On 9/5/05, Milton <[EMAIL PROTECTED]> wrote: > Is there a way to relate an object to many of itself. > > eg. I have a product and I want to relate a variable number of other > products to it as related products. > > I've tried the 'self' method which works for ForeignKey, though > manytomanyfiel

Re: Admin Interface and Foreign Keys

2005-09-05 Thread Adrian Holovaty
On 9/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > For some reason, even though there are 11 records in the database for > this table the admin interface is only showing me one of them. > Underneath that one entry is message text saying "11 schedules", so I > know the DB API is finding them

Ticket #461 (enhancement) - Support use of pypgsql instead of psycopg

2005-09-05 Thread Carlo C8E Miron
Hi, > I do not see any information on the generally excellent Django website about > alternatives to psychopg as a PostGreSQL connector. I have been having some > non-Django problems getting psychopg to work so it would be nice if there was > another option such as pypgsql. Wich problems did

Re: User Authentication - What's the best way?

2005-09-05 Thread [EMAIL PROTECTED]
Thanks so much this was a real help got it woking now based on what you've done. Sure this'll be a great help to others as well. Many thanks charlie

Re: auto-generated template for generic views

2005-09-05 Thread Rachel Willmer
> That's a really interesting idea. I think it'd be better to > "statically" generate the templates a single time, rather than have > Django create the templates automatically, because the former would > allow people to custom the templates' look and feel. Maybe a > "django-admin.py formtemplate a