Re: settings.py gets imported twice

2007-11-05 Thread Matti Haavikko
Thomas Guettler wrote: > A found this solution. > > # file logconfig.py > import logging > if not hasattr(logging, "set_up_done"): > logging.set_up_done=False > > def set_up(myhome): > if logging.set_up_done: > return > logging.set_up_done=True > Here's an alternative

Get PK value in Field class after saving

2007-11-05 Thread Frank 7200
Hi, I have a Field class for attachments and I would like to rename the attachment after upload. This class inherits from models.ImageField. The problem is that in field method save_file() and _save() all values pointing to ID are None. new_object['id'] is None and instance._get_pk_val() is None

Re: i18n model field not translated

2007-11-05 Thread otonk
its not working... isnt verbose_name is for meta class?.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe

Re: i18n model field not translated

2007-11-05 Thread cschand
Try this name= models.CharField(verbose_name=_('name'), help_text=_('This is the help text'), max_length = 255) On Nov 6, 9:51 am, otonk <[EMAIL PROTECTED]> wrote: > I did.. > > from django.db import models > from django.utils.translation import ugettext_lazy as _ > --- code emmited ---

Re: i18n model field not translated

2007-11-05 Thread otonk
I did.. from django.db import models from django.utils.translation import ugettext_lazy as _ --- code emmited --- name= models.CharField(_('name'), help_text=_('This is the help text'), max_length = 255) --- code emmited --- on the above code, the [ help_text=_('This is the help

Re: i18n model field not translated

2007-11-05 Thread cschand
Hi otonk Use ugettex_lazy form models from django.utils.translation import ugettext_lazy as _ cschand On Nov 6, 9:15 am, otonk <[EMAIL PROTECTED]> wrote: > Hi, I am working on a multilingual project, mainly in indonesia and > english. > i tried to do i18n on my model fields but i cant get it

i18n model field not translated

2007-11-05 Thread otonk
Hi, I am working on a multilingual project, mainly in indonesia and english. i tried to do i18n on my model fields but i cant get it work on the admin site. the model name is translated, however the fields name is not. here's my model.py class Company(models.Model): name=

Custom SQL to delete cache table

2007-11-05 Thread Hugh Bien
Hi all, I'm trying to clear the cache table. Here's the code I'm using with Python 2.5 and Django version 0.96: def clear_cache(): from django.db import connection cursor = connection.cursor() cursor.execute("DELETE FROM django_cache WHERE 1=1") This is for the a SQLite3 backend,

will this hit database more than once by using AUTH_PROFILE_MODULE = 'myuser.MyUser'

2007-11-05 Thread [EMAIL PROTECTED]
you know django-registration is a famous module(http://code.google.com/ p/django-registration/). i have a topic want to discuss with all: there is a option in django-registration : AUTH_PROFILE_MODULE = 'myuser.MyUser' which can be setted in settings.py, so you can access value of MyUser by

Re: Strange UnicodeDecodeError in template

2007-11-05 Thread Karen Tracey
It would appear the Django template code is actually trying to raise a VariableDoesNotExist error, and tripping up on attempting to render a context that contains non-ASCII data. I don't know the correct fix for that, but as a temporary fix if you change line 130 of your

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Thanks a lot graham You have really helped me a lo. Thank you once againCan you please add me in Yahoo messenger id: aparichitudu_stranger Thank you On Nov 5, 3:33 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Turn off SELinux extensions on your box or do whatever research

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Hey I have set the SELINUX from enforcing to permissive and the localhost/mysite is working. I am getting the Django default page. On Nov 5, 3:28 pm, stranger <[EMAIL PROTECTED]> wrote: > Ya I have run the command and restarted Apache... I have found the > cause for the problem can you advise

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Ya I have run the command and restarted Apache... I have found the cause for the problem can you advise me after looking at this screenshot. http://img210.imageshack.us/img210/559/screenshot1bs5.png On Nov 5, 3:24 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Run: > > chmod 0755

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
Run: chmod 0755 /home/priya Restart Apache for good measure and try again. As I originally said, all the directories down to the mysite directory have to be readable and searchable to others. This means you personal home directory as well. Graham On Nov 6, 10:20 am, stranger <[EMAIL

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Sorry for deleting I have run the command in /home When I run ls -lasgd in /home/priya 8 drwx-- 32 priya 4096 2007-11-05 14:54 . When I run ls -las in /home/priya [EMAIL PROTECTED] ~]$ ls -las total 416 8 drwx-- 32 priya priya 4096 2007-11-05 14:54 . 8 drwxr-xr-x 3 root root

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
Please do not keep deleting the previous message content. It makes it really hard having to go back and forth between messages. On Nov 6, 10:11 am, stranger <[EMAIL PROTECTED]> wrote: > I get this: > > 8 drwxr-xr-x 3 root 4096 2007-11-04 02:20 . If you get this when running that command in your

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
I get this: 8 drwxr-xr-x 3 root 4096 2007-11-04 02:20 . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:57 am, stranger <[EMAIL PROTECTED]> wrote: > Thank alot Graham. To which user, I must grant access? > > I know the command chmod.. and I traversed to mysite directory and > chmod -R 755 * > > still no change. Hmmm, I saw that example in the document I referred to and thought it was a

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Thank alot Graham. To which user, I must grant access? I know the command chmod.. and I traversed to mysite directory and chmod -R 755 * still no change. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:37 am, stranger <[EMAIL PROTECTED]> wrote: > Yes my settings.py file is in the place you specified. > > I have restarted the apache: /etc/init.d/httpd restart > > I think u r right. Apache dont have right to read that module. Please > specify me how to give access to apche to my

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Yes my settings.py file is in the place you specified. I have restarted the apache: /etc/init.d/httpd restart I think u r right. Apache dont have right to read that module. Please specify me how to give access to apche to my mysite directory.

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Hello Graham, Just followed the same instructions as u said. SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On PythonPath "['/home/priya'] + sys.path" No

Send Big File Free and Easy Apply For FREE!!! ( New Service From yousendit FREE )

2007-11-05 Thread peepee peechon
*Send Big File Free and Easy* Send, Receive and Track files with YouSendIt. apply for free. be urgent , there is the time limits. http://pinurl.com/3z4 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Are the admin site templates cached?

2007-11-05 Thread [EMAIL PROTECTED]
Update to myself... I've still not got anywhere fixing this but I was wrong before about other templates in that directory (e.g. 404.html) working - the 404 file shown was the site wide 404 message. So no admin templates can be loaded. Non admin templates (for the views) work fine. Thanks, Ben

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:13 am, stranger <[EMAIL PROTECTED]> wrote: > Thank you Graham for the fast reply Could you please elaborate a > little since i am new to django. > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE

Re: Is Django Threaded Fastcgi Safe?

2007-11-05 Thread Graham Dumpleton
The latest roundup on thread safety of Django is that although it was not designed for thread safety initially, the only known multithreading problem has been fixed some time back. As such, numerous people do run it in Apache worker MPM for UNIX and on winnt MPM on Windows, both of which are

Re: mod_python: problem with http.conf

2007-11-05 Thread stranger
Thank you Graham for the fast reply Could you please elaborate a little since i am new to django. SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On ...and replace mysite.settings with the

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 8:37 am, stranger <[EMAIL PROTECTED]> wrote: > Hello I am using Fedora 7. I am using Django for the first time. I > want the django to run on port 80. so that : > > http://localhost/mysite/ > > should retreive the Django dafault page. I have installed mod_python > and imported it into

Re: New Forms Foreign key field Filtered choices

2007-11-05 Thread rm
Brian, Are we to infer, by extrapolating, that since it appears that the coupling of the model definition and the form definition is undesirable passing the help_text argunment to a form will eventually not be done at the model? Instead, are we going to have to use a formfield_callback to pass

Re: New Forms Foreign key field Filtered choices

2007-11-05 Thread rm
Brian, Are we to infer, by extrapolating, that since it appears that the coupling of the model definition and the form definition is undesirable passing the help_text argunment to a form will eventually not be done at the model? Instead, are we going to have to use a formfield_callback to pass

mod_python: problem with http.conf

2007-11-05 Thread stranger
Hello I am using Fedora 7. I am using Django for the first time. I want the django to run on port 80. so that : http://localhost/mysite/ should retreive the Django dafault page. I have installed mod_python and imported it into http.conf. In http.conf I have also: SetHandler

Are the admin site templates cached?

2007-11-05 Thread [EMAIL PROTECTED]
Hello everyone, I've got a problem with Django that is driving me mad. I cannot make changes to the admin templates on my live server. In my dev environment everything works fine. I'm sure everything is setup correctly (I rememebered to put them in the admin/ subfolder). I even tried renaming

Django Meet-up in Berlin on Wednesday 7th Nov. 20:00

2007-11-05 Thread RKnobelspies
Location is the Bar/Restaurant Sankt Oberholz http://plazes.com/plazes/40030:sankt_oberholz Cheers Reinhard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Strange UnicodeDecodeError in template

2007-11-05 Thread Mikkel Høgh
I have a bit of a problem with a project I'm creating. I get an UnicodeDecodeError from some of the template code. The traceback is here: http://dpaste.com/24285/ It tries to decode the title field from unicode into ascii, but I cannot seem to understand why... I have dpaste'd the code in

Re: DateTime Picker

2007-11-05 Thread Alex Ezell
Yeah, if I don't get the built-in to work, I'll go with a jQuery plugin that basically does the same thing. It'd be nice to get the built-in to work. Less maintenance on my end. :) /alex On 11/5/07, rm <[EMAIL PROTECTED]> wrote: > > Sounds good. In the mean time, I found this very cool

Re: static images with built-in django server

2007-11-05 Thread maco
Try this one: http://www.djangoproject.com/documentation/db-api/#get-foo-filename To retrieve a image or file absolute url simply use: {{ object.get_myImageObject_url }} Absolute URL is compiled according to settings.py definition of MEDIA_URL and therefore changes automatically at deployment.

Re: DateTime Picker

2007-11-05 Thread rm
Sounds good. In the mean time, I found this very cool alternative: http://www.dynarch.com/projects/calendar/ It worked great! On Nov 5, 3:04 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > On 11/5/07, rm <[EMAIL PROTECTED]> wrote: > > > > > Has anyone gotten this to work with a datetime field

Re: Oh boy, I've gone and done it now.

2007-11-05 Thread [EMAIL PROTECTED]
Thanks guys. That's exactly what it looks like. I think I'm going to just roll back to the previous version I had for now, then sort all this out when I have more time. On Nov 5, 2:19 pm, jake elliott <[EMAIL PROTECTED]> wrote: > hi baxter - > > On Mon, 2007-11-05 at 10:35 -0800, [EMAIL

Re: DateTime Picker

2007-11-05 Thread Alex Ezell
On 11/5/07, rm <[EMAIL PROTECTED]> wrote: > > Has anyone gotten this to work with a datetime field and a newform of > the type form_from_model? I will be trying it tonight, so I will let you know. /alex --~--~-~--~~~---~--~~ You received this message because you

self referencing limit_choices_to

2007-11-05 Thread Brot
Hello, I have a little problem with the "limit_choices_to" functionality. I found two group discussions concerning the same problem, but the authors got no answers.

gettext is not defined - admin site

2007-11-05 Thread ygneo
I use Django 0.96 in a SuSE with Python 2.3.3. I'm getting this JavaScript error: "gettext is not defined" when I try to edit an object with date field in the admin site. I have seen that occurs when calendar.js is trying to populate the month names in the correct language. I use language_code =

Re: DateTime Picker

2007-11-05 Thread rm
Has anyone gotten this to work with a datetime field and a newform of the type form_from_model? On Nov 5, 11:07 am, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > Thanks Michael. > > This looks like exactly what I need. I apologize for not searching the > list first. I searched the web but that

Re: Oh boy, I've gone and done it now.

2007-11-05 Thread jake elliott
hi baxter - On Mon, 2007-11-05 at 10:35 -0800, [EMAIL PROTECTED] wrote: > OK, I attempted to install patch 2070, and failed miserably, messing > up /core/handlers/modpython.py among other things. When I realized I > had done so, I tried updating and then reinstalling django to get back > to a

Re: Is Django Threaded Fastcgi Safe?

2007-11-05 Thread Joe
Also, should I take a look at mod_wsgi? On Nov 5, 11:22 am, Joe <[EMAIL PROTECTED]> wrote: > I am considering switching from mod_python and apache to lighttpd and > fastcgi because of the large number of virtual hosts I am serving. > > Because each virtual host gets its own sub interpreter, each

Re: Oh boy, I've gone and done it now.

2007-11-05 Thread Joe
A newer version of Django may be passing in a unicode string instead of an ASCII one. The make_thumbnail() function may be expecting an ASCII string. On Nov 5, 1:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK, I attempted to install patch 2070, and failed miserably, messing > up

Re: Using GeoDjango features with current trunk?

2007-11-05 Thread Justin Bronn
As Karen noted, I last merged on 10/26 to r6613 -- thus, the latest GeoDjango is more up-to-date than your latest checkout of trunk (r5988). > If the trunk and GeoDjango AREN'T currently compatible, would it be > possible for us to add geometry columns AFTER a syncdb creates the > "standard"

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-11-05 Thread SneWs
It's actually really simple to build the client lib's you need to get the MySQL support working. Download the Community Server Source and you can build it from that. I hade the same problem but for QT and MySQL support, take a look at, http://demo.grenangen.se/drupal There you will find a

Oh boy, I've gone and done it now.

2007-11-05 Thread [EMAIL PROTECTED]
OK, I attempted to install patch 2070, and failed miserably, messing up /core/handlers/modpython.py among other things. When I realized I had done so, I tried updating and then reinstalling django to get back to a clean install. Now everything is broken. Most of the broken seems to relate to

Re: Using GeoDjango features with current trunk?

2007-11-05 Thread Matt Bartolome
I was in a similar situation a few months ago. The GeoDjango branch api is really handy and I was hoping to use it on some models that were sitting in a 0.96 release. We definitely couldn't go with the unstable branch for our production environment so I ended up just writing a few custom sql

Re: Using GeoDjango features with current trunk?

2007-11-05 Thread Jeremy Dunck
On 11/5/07, Karen Tracey <[EMAIL PROTECTED]> wrote: ... >You can check the branch log: > > http://code.djangoproject.com/log/django/branches/gis > > to see how current it is with respect to trunk. Look for the most recent > log message that starts "Merged revisions". In this case gis was

Re: Using GeoDjango features with current trunk?

2007-11-05 Thread Karen Tracey
On 11/5/07, Hancock, David (DHANCOCK) <[EMAIL PROTECTED]> wrote: > > We're using the Django trunk (r5988), but are about to dive into adding > some PostGIS geometry columns to a few of our models. It appears that > GeoDjango is its own branch--has anyone got advice about whether we can use > it

Is Django Threaded Fastcgi Safe?

2007-11-05 Thread Joe
I am considering switching from mod_python and apache to lighttpd and fastcgi because of the large number of virtual hosts I am serving. Because each virtual host gets its own sub interpreter, each apache instance on my server can weigh in at over 160 megs. I have heard that apache-mpm,

Re: DateTime Picker

2007-11-05 Thread Alex Ezell
Thanks Michael. This looks like exactly what I need. I apologize for not searching the list first. I searched the web but that thread didn't show up. Thanks again. /alex On 11/5/07, Michael <[EMAIL PROTECTED]> wrote: > > Check out: >

Using GeoDjango features with current trunk?

2007-11-05 Thread Hancock, David (DHANCOCK)
We're using the Django trunk (r5988), but are about to dive into adding some PostGIS geometry columns to a few of our models. It appears that GeoDjango is its own branch--has anyone got advice about whether we can use it with a more recent checkout than it branched from? The GeoDjango additions

Re: DateTime Picker

2007-11-05 Thread Michael
Check out: http://groups.google.com/group/django-users/browse_frm/thread/3328829f1ed7f788/ If that doesn't help you, search this group for other posts on the subject. Michael On Nov 3, 2:04 pm, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > When I use a DateTime field in my model, the admin

Re: Is it possible to debug a view using breakpoints in Eclipse?

2007-11-05 Thread Karen Tracey
On 11/5/07, crybaby <[EMAIL PROTECTED]> wrote: > > > My variable view window doesn't show anything. All I get in the > Variable View is:: > > Global: > error > > error > > I set the break points, but nothing showing up in Variable window in > debugger perspective except "Global error error". > >

Re: RESTful Geodjango

2007-11-05 Thread Justin Bronn
> (2) The gis branch should really use a better name than "NoField" here. > Not a lot of code calls get_internal_type() -- the main critical piece > being db_type(). In all the cases where django.contrib.gis overrides > get_internal_type(), they are also returning None from db_type(). So the >

Re: Obscure error installing Django

2007-11-05 Thread Martin
revision 6300 seems to work fine for me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

Re: to_python ignored with custom IntegerField

2007-11-05 Thread Marty Alchin
On 11/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > This thread motivated me to finish this work. Update to r6652 and you'll > have some documentation and a helper metaclass for the common case (if > you need something more advanced, you can obviously do without the > metaclass and code

Re: New Forms Foreign key field Filtered choices

2007-11-05 Thread rm
Malcolm, Thanks for the advice. It took me a little bit of fiddling to figure out that the proper syntax to make your suggestion work but I think I got it. form.fields['contact'].choices = forms.widgets.Select.choices=[(obj.id, obj.__str__()) for obj in filtered_choices] I am not sure why you

Re: to_python ignored with custom IntegerField

2007-11-05 Thread Malcolm Tredinnick
On Sun, 2007-11-04 at 14:25 +1100, Malcolm Tredinnick wrote: [...] > What needs to be changed for field subclassing -- and I keep meaning to > finish this work, along with my 5 other highest priorities -- is that > for custom fields (only!) we install attributes as part of contribute to > class

Re: Is it possible to debug a view using breakpoints in Eclipse?

2007-11-05 Thread crybaby
My variable view window doesn't show anything. All I get in the Variable View is:: Global: error error I set the break points, but nothing showing up in Variable window in debugger perspective except "Global error error". Any suggestions? When I start the dev server inside eclipse under

Re: RESTful Geodjango

2007-11-05 Thread Malcolm Tredinnick
On Sat, 2007-10-20 at 14:01 -0500, Jeremy Dunck wrote: > On 10/20/07, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > > POINT ( 31.00892404 > ... > > That NoField type, is it ok? > > Well, it depends what you're going to do with it. :) > > That 'NoField' comes from >

Re: my filter cannot work

2007-11-05 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 05:02 -0800, [EMAIL PROTECTED] wrote: > here is my filter: > from django import template > import datetime > > register = template.Library() > > @register.filter > def mytimeiff(timestamp = None): Typo here. Almost certainly should be "mytimediff" -- you left out the 'd'.

my filter cannot work

2007-11-05 Thread [EMAIL PROTECTED]
here is my filter: from django import template import datetime register = template.Library() @register.filter def mytimeiff(timestamp = None): """ Returns a humanized string representing time difference between now() and the input timestamp. The output rounds up to days, hours,

Re: how to display is better?

2007-11-05 Thread [EMAIL PROTECTED]
thankss very much! this is a common situation in forum display, to display sticky post first, then recommended post, then..., then go to normal posts. On 11月5日, 下午4时55分, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-11-05 at 00:28 -0800, [EMAIL PROTECTED] wrote: > > i have a

m2m ordering question

2007-11-05 Thread patrickk
i´m having a model for a movie and I´d like to assign some stars using an m2m-relationship. using the admin-interface, I´m assigning stars in a specific order (the most important star first and so on). in the database, the stars are saved in the "right" order - the first one has the lowest ID and

Hey Django-users@googlegroups.com ;)

2007-11-05 Thread Jose Rodriguez Bacallao
http://www.hi5.com/register/IK2di?inviteId=A_9eb8baf_akOdwZp3end166431663 Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Hey Django-users@googlegroups.com ;)

2007-11-05 Thread Jose Rodriguez Bacallao
http://www.hi5.com/register/QClCa?inviteId=A_9eb8baf_foMCO2p5ZKd166431663 Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: settings.py gets imported twice

2007-11-05 Thread Thomas Guettler
Am Montag, 5. November 2007 10:55 schrieb Malcolm Tredinnick: > On Mon, 2007-11-05 at 10:46 +0100, Thomas Güttler wrote: > > Hi, > > > > settings.py gets imported twice. This is bad, if you want to > > set up the logging module, since you register the handler twice > > and you get all log

Re: Large streaming uploads (#2070) doesn't work for me at all

2007-11-05 Thread Eugene Morozov
> If you run Django with its standalone development server do you see > the same behaviour? Ie., does the Django process blow out in size? > > Unless you are bound to mod_python because of other code which uses > its APIs directly, then also consider trying to host Django under > mod_wsgi

Re: Problem uploading several files (images) using a single form

2007-11-05 Thread Divan Roulant
Hmm... no reply. Its either a very dumb question or I explained it very bad! I though I would reactivate it since I didn't find out yet... Thanks! Divan On Nov 4, 5:57 am, Divan Roulant <[EMAIL PROTECTED]> wrote: > Hello, > > I need to upload several pictures from a single form. Then (I think)

Re: settings.py gets imported twice

2007-11-05 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 10:46 +0100, Thomas Güttler wrote: > Hi, > > settings.py gets imported twice. This is bad, if you want to > set up the logging module, since you register the handler twice > and you get all log messages twice. [...] It's actually fairly hard to avoid this for a variety of

Re: Obscure error installing Django

2007-11-05 Thread Martin
Hi, I'm having the same problem on shared hosting (asmallorange). Did anybody find a solution? I have the 1.2.2 version of python-mysql and the latest trunk of django (svn). Thanks, Martin --~--~-~--~~~---~--~~ You received this message because you are

settings.py gets imported twice

2007-11-05 Thread Thomas Güttler
Hi, settings.py gets imported twice. This is bad, if you want to set up the logging module, since you register the handler twice and you get all log messages twice. Here are the stacktraces I created for debugging this: ===> python manage.py test admin import logconfig Traceback (most recent

Re: how to display is better?

2007-11-05 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 00:28 -0800, [EMAIL PROTECTED] wrote: > i have a queryset with 100 recoders, there are 20 recoders with > "stick=True". > so i want to display these 20 recoder first,then display other 80 > recordes. my question is: > > 1. i can write to for loop in templates, so display 20

Re: Is it possible to debug a view using breakpoints in Eclipse?

2007-11-05 Thread Leo
Just so this is entered in the thread: I have a very similar problem in Komodo (the ActiveState IDE). I use the noreload option, and breakpoints in "my code" (i.e., applications I wrote) are reliable, but breakpoints in Django itself usually don't work. It's not quite 100% repeatable,

how to display is better?

2007-11-05 Thread [EMAIL PROTECTED]
i have a queryset with 100 recoders, there are 20 recoders with "stick=True". so i want to display these 20 recoder first,then display other 80 recordes. my question is: 1. i can write to for loop in templates, so display 20 first, then display 80 with if clause. 2. i get 2 queryset in view.py,