AddManipulator does not populate select

2005-12-02 Thread Kenneth Gonsalves
hi, when using AddManipulator and returning the form for correcting errors, the select field does not get populated with the choice selected. I could do this manually, but does django have a way of doing it automatically? -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://

Re: Declare a variable in a template

2005-12-02 Thread Jiri Barton
Wow, dorodok, that is elegant, indeed. I have already implemented by the inclusion_tag as the guys suggested, but I'm going to do it the CSS way. Robert: autocorrected it to register.inclusion_tag in my code already :-) thanks Jiri

Problems with mod_python

2005-12-02 Thread [EMAIL PROTECTED]
I hava Windows, apache 2.0.55 python 2.4.2 and mod python 3.2.5b installed. I have add to httpd.conf LoadModule for mod_pythone. But apache can't load that module, mod_python exist in /modules/ Does anyone has similar problem, please help me ... after 5 hours, i am so desperate ...

Re: Problem with TinyMCE integration

2005-12-02 Thread Eugene Lazutkin
http://code.djangoproject.com/ticket/914 "olive" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hello, > > svn update done on 11/29 > > ADMIN_MEDIA_PREFIX = '/media/' > > tiny_mce directory copied in > C:\soft\django_src\django\contrib\admin\media\js > > MODEL: > from django.cor

Re: how to access a parent model

2005-12-02 Thread oggie rob
Hi, To search a poll from the choice list in admin, use 'poll__question' (note two underscores). I haven't tried it the other way around (searching choices from the poll list). -rob

Re: Newbie needs help with real-world example...

2005-12-02 Thread Kenneth Gonsalves
On Friday 02 Dec 2005 9:49 pm, Adrian Holovaty wrote: > On 12/2/05, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > > No I meant things like, informing us about core=True > > missing It actually validates > > the models on startup. apache/modpython doesn't. AFAIK > > Correct, Apache doesn't. But

Re: Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py

2005-12-02 Thread olive
Many thanks to everyone.

Problem with TinyMCE integration

2005-12-02 Thread olive
Hello, svn update done on 11/29 ADMIN_MEDIA_PREFIX = '/media/' tiny_mce directory copied in C:\soft\django_src\django\contrib\admin\media\js MODEL: from django.core import meta from django.models.contacts import contacts class Place(meta.Model): name = meta.CharField(maxlength=200) ci

Re: Declare a variable in a template

2005-12-02 Thread dorodok
Hi Jiri! if you are only about highlighting of the active item of your UI menu in pure CSS way, I suggest you to look at solution of www.djangoproject.com site, the source of templates is: base template: http://code.djangoproject.com/browser/djangoproject.com/django_website/templates/base.html =

Re: Declare a variable in a template

2005-12-02 Thread Robert Wittams
> @inclusion_tag("myapp/menu") That should be @register.inclusion_tag("myapp/menu")

Re: Declare a variable in a template

2005-12-02 Thread Jiri Barton
I like it! Thanks

Re: Declare a variable in a template

2005-12-02 Thread Adrian Holovaty
On 12/2/05, Jiri Barton <[EMAIL PROTECTED]> wrote: > Now, I'd like to write the menu only once and then use it the following > way: > > {% declare menuselection tomatoes %} > {% include "menu" %} > > The menu would have been defined as follows: > > > endifequal %}>mushrooms > endifequal

Re: Declare a variable in a template

2005-12-02 Thread Robert Wittams
Jiri Barton wrote: > Hello there, > > I have the following problem. Here's my template fragment; it defines a > menu: > > > mushrooms > cheese > tomatoes > onion > > > Now, I'd like to be able to highlight one item in some templates, and > another item in other templates. Only

Re: human readable name for a foreign key in admin

2005-12-02 Thread gags
Thanks Jacob and thanks Richie, I looked in the database api documents - for Foreign Key - but I can see how I was facing in the wrong direction here. G

Declare a variable in a template

2005-12-02 Thread Jiri Barton
Hello there, I have the following problem. Here's my template fragment; it defines a menu: mushrooms cheese tomatoes onion Now, I'd like to be able to highlight one item in some templates, and another item in other templates. Only the templates know what should be highlighted.

Re: human readable name for a foreign key in admin

2005-12-02 Thread Richie Hindle
[gags] > I have done a search and looked in the api doccy, but please point out > if I could have found this out by myself. Jacob has answered your question, but just to let you know: verbose_name (and lots of other useful stuf) is documented here: http://www.djangoproject.com/documentation/m

Re: human readable name for a foreign key in admin

2005-12-02 Thread Jacob Kaplan-Moss
On Dec 2, 2005, at 1:33 PM, gags wrote: Great. I was wondering if I could somehow get the column header to be titled "Poll Type" instead of "Poll_type". Yup, just add the "verbose_name" option to Poll_type's META: class Poll_type(meta.Model): ... clas

human readable name for a foreign key in admin

2005-12-02 Thread gags
Hello Django Users, Django and Python newbie here. I have been doing the tutorials and am on part 2 of my very own Poll monster!! As usual I have been extending it a little and have added a third model : class Poll_Type(meta.Model): I have got to the stage in tutorial 2 where adjusting class

Re: Django on Textdrive?

2005-12-02 Thread Nebojša Đorđević - nesh
On 2005-12-02, at 18:29 CET, Richie Hindle wrote: Can I ask why you're using both Apache and lighttpd? On the face of it, it looks like you could use Apache's mod_fastcgi and you wouldn't need lighttpd - I'd be interested to know what lighttpd gives you? IIRC lighttpd is the only option on

Re: Django on Textdrive?

2005-12-02 Thread Richie Hindle
[Nebojša] > [I use] apache/lighttpd with FastCGI > Apache is serving media files and doing proxy to lighttpd. Can I ask why you're using both Apache and lighttpd? On the face of it, it looks like you could use Apache's mod_fastcgi and you wouldn't need lighttpd - I'd be interested to know what

Re: Newbie needs help with real-world example...

2005-12-02 Thread Adrian Holovaty
On 12/2/05, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > No I meant things like, informing us about core=True missing It > actually validates > the models on startup. apache/modpython doesn't. AFAIK Correct, Apache doesn't. But you can run "django-admin.py validate [appname]" at any time to g

Re: Newbie needs help with real-world example...

2005-12-02 Thread Joshua D. Drake
as will apache/modpython No I meant things like, informing us about core=True missing It actually validates the models on startup. apache/modpython doesn't. AFAIK Joshua D. Drake -- The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564 PostgreSQL Replication, Consulting, Cus

Re: Help running Django with mod_python

2005-12-02 Thread Paolo
2005/12/2, frank h. <[EMAIL PROTECTED]>: > > hej paolo, > I am on OS X as well, and I had problems with Apache and mod_python. Hi frank, I'm not running OS X! I looked at django's documentation and at http://cavedoni.com/2005/django-osx, as you suggested, but even trying a bunch of different "var

Re: Help running Django with mod_python

2005-12-02 Thread Paolo
2005/12/1, Bryan Murdock <[EMAIL PROTECTED]>: > Do you have mod_php running too? See this: > > http://www.modpython.org/pipermail/mod_python/2004-January/014886.html No mod_php installed! I already checked that (and this faq gives an explanation about mod_php and mod_python incompatibilities in

Re: Help running Django with mod_python

2005-12-02 Thread Paolo
2005/12/1, Afternoon <[EMAIL PROTECTED]>: > Have you tried adding PythonDebug On to your httpd.conf? Also, I'm > using SetHandler python-program, no idea if that makes any difference > though. Yes, PythonDebug is On, and to increase verbosity LogLevel is set to value debug. For mod_python 3.1, i

Re: Newbie needs help with real-world example...

2005-12-02 Thread John Szakmeister
On Thursday 01 December 2005 21:01, James Bennett wrote: > On 12/1/05, John Szakmeister <[EMAIL PROTECTED]> wrote: > > I don't see why not. The apps themselves aren't big, and isn't it the > > purpose of runserver to help do development and testing? I think my > > problem is what Luke mentioned: