Django logo

2005-12-03 Thread Maniac
I'm writing a blog post about Django and want to use a logo as a decoration. There are number of nice badges on http://www.djangoproject.com/community/badges/ but they all have Django logo with some text. Neither of them seem to make sense for just an illustration. So I'd like to ask kindly

Contrib markup app not to be installed?

2005-12-03 Thread James Bennett
While setting up a new project tonight, I was running through and doing a 'django-admin.py install' for each of the apps from django.contrib I'll be using, and when I got to the markup app, I got the following error: Error: No module named markup. Are you sure your INSTALLED_APPS setting is corre

Re: AddManipulator does not populate select

2005-12-03 Thread Robert Wittams
Kenneth Gonsalves wrote: > 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? If using trunk, are you using flatten

Re: Contrib markup app not to be installed?

2005-12-03 Thread Robert Wittams
James Bennett wrote: > While setting up a new project tonight, I was running through and > doing a 'django-admin.py install' for each of the apps from > django.contrib I'll be using, and when I got to the markup app, I got > the following error: > > Error: No module named markup. Are you sure you

Re: Contrib markup app not to be installed?

2005-12-03 Thread James Bennett
On 12/3/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > The install is for installing a model-module, not an app. As the markup > app has no model modules, and there is no model module named markup, > this is not going to work. OK, I'd figured as much from a little further poking around, but just

manytomany not working

2005-12-03 Thread Lee
Using revision 1526: I define two model classes, one with a manytomany field to the other. The expected convenience functions for looking up related objects are only created for one of the classes. Reverting to revision 1039 and making no other changes, everything works. (I reverted to that becau

Re: AddManipulator does not populate select

2005-12-03 Thread Kenneth Gonsalves
On Saturday 03 Dec 2005 4:48 pm, Robert Wittams wrote: > Kenneth Gonsalves wrote: > > 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 > > o

Re: AddManipulator does not populate select

2005-12-03 Thread Robert Wittams
Kenneth Gonsalves wrote: > On Saturday 03 Dec 2005 4:48 pm, Robert Wittams wrote: > >>Kenneth Gonsalves wrote: >> >>>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

Re: Problem with TinyMCE integration

2005-12-03 Thread olive
Thanks a lot

Re: AddManipulator does not populate select

2005-12-03 Thread Maniac
Robert Wittams wrote: Why are you flattening the data again? You only do this once, when extracting the data out of the object instance (or the defaults). The data is already 'flat' when it comes out of a POST. do_html2python gets it back into a form suitable for both saving and populating form

Re: Contrib markup app not to be installed?

2005-12-03 Thread Jacob Kaplan-Moss
On Dec 3, 2005, at 5:13 AM, James Bennett wrote: While setting up a new project tonight, I was running through and doing a 'django-admin.py install' for each of the apps from django.contrib I'll be using, and when I got to the markup app, I got the following error: Error: No module named markup

Re: AddManipulator does not populate select

2005-12-03 Thread Kenneth Gonsalves
On Saturday 03 Dec 2005 5:50 pm, Robert Wittams wrote: > Kenneth Gonsalves wrote: > > On Saturday 03 Dec 2005 4:48 pm, Robert Wittams wrote: > >>Kenneth Gonsalves wrote: > >>>hi, > >>>when using AddManipulator and returning the form for > >>> correcting errors, the select field does not get popula

Uploading a file

2005-12-03 Thread PythonistL
Hi, Did anybody try to upload a file via Django? Can provide any working example? Thank you Regards, L.

Problem with i18n

2005-12-03 Thread olive
Hello, C:\soft\Python23\Lib\site-packages\sonikete>make-messages.py -l fr processing language fr Traceback (most recent call last): File "C:\soft\django_src\django\bin\make-messages.py", line 78, in ? (stdin, stdout, stderr) = os.popen3(cmd, 'r') ValueError: popen3() arg 2 must be 't' or 'b

Re: AddManipulator does not populate select

2005-12-03 Thread Robert Wittams
Maniac wrote: > > Robert Wittams wrote: > >> Why are you flattening the data again? You only do this once, when >> extracting the data out of the object instance (or the defaults). The >> data is already 'flat' when it comes out of a POST. do_html2python gets >> it back into a form suitable for

Re: AddManipulator does not populate select

2005-12-03 Thread Robert Wittams
Robert Wittams wrote: > Maniac wrote: > >>Robert Wittams wrote: >> >> >>>Why are you flattening the data again? You only do this once, when >>>extracting the data out of the object instance (or the defaults). The >>>data is already 'flat' when it comes out of a POST. do_html2python gets >>>it bac

Re: Problem with i18n

2005-12-03 Thread hugo
Hi, >There is no such xgettext on my system, do I need to download/install >3rd party tool ? Yes, to make use of make-messages.py you have to install the gnu gettext utilities. The script uses xgettext, msguniq and msgmerge. And I absolutely don't know wether all this actually will run with Wind

Re: Problem with i18n

2005-12-03 Thread olive
Georg, it works only if I remove the r from the parameter at lines 78, 94 and 103. Olivier. PS: I have downloaded the win32 version of gettext from sourceforge.

Re: Contrib markup app not to be installed?

2005-12-03 Thread Ian Holsman
shouldn't a warning/informational message be generated in this case. something like $ django-admin install markup INFO: no models found to install.. skipping markup ? On 12/3/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Dec 3, 2005, at 5:13 AM, James Bennett wrote: > > While setting

Re: Contrib markup app not to be installed?

2005-12-03 Thread Robert Wittams
Ian Holsman wrote: > shouldn't a warning/informational message be generated in this case. > something like > > $ django-admin install markup > INFO: no models found to install.. skipping markup > > ? Given that the command acts on a model module, *not* on an app, this wouldn't work. It will ins

Test cookie's age

2005-12-03 Thread Jiri Barton
I don't know if I'm getting it all right... The test cookie's age is the same as the age of any other cookie. My application is using views/auth/login.py, SESSION_SAVE_EVERY_REQUEST = True, and SESSION_COOKIE_AGE = 600. Let's have the following scenario. A user logs out of the application. This

Re: Problem with i18n

2005-12-03 Thread hugo
>it works only if I remove the r from the parameter at lines 78, 94 and >103. Ah, actually that's even correct - I somehow mixed popen and popen3 syntax :-) Fix is in SVN now. bye, Georg