datetime 8 hours off

2008-04-01 Thread Simon Oberhammer
hey group, I have an inconsistant time problem, which goes away when I restart apache, but then creeps up again after some time. When writing comments in my custom app the time is 8hours behind (i'm CEST) *for some users*. When I login with others, its okay. in settings.py I have TIME_ZONE = 'Eur

Re: datetime 8 hours off

2008-04-01 Thread Simon Oberhammer
> What version of Django are you using?, what deployment method > are you using? (mod_python, fast cgi, mod_wscgi). i'm using mod_python and am running the current svn django. I've found an open timezone bug, but don't think its related http://code.djangoproject.com/changeset/7184 --~--~-

Re: datetime 8 hours off

2008-04-02 Thread Simon Oberhammer
anybody? after restartign apache everything is fine again.. i have to do this once or twice a day. On Apr 1, 9:15 pm, Simon Oberhammer <[EMAIL PROTECTED]> wrote: > > What version of Django are you using?, what deployment method > > are you using? (mod_python, fast cgi, mod_wsc

Re: datetime 8 hours off

2008-04-02 Thread Simon Oberhammer
thanks, i will try fastcgi tomorrow and report back. > Is the time constantly 8 hours behind or does that vary e.g. does the > offset get larger over time? it's always 8 hours behind, but not reproducable. though it happens everyday. there are php sites running on the server.. well let's see if

Re: tags separated by comma

2008-04-02 Thread Simon Oberhammer
there is already an easy to intergrate django-tagging app, http://code.google.com/p/django-tagging/ I have used and, though not the more complex features like tag AND-OR- filter thingies. it worked good for me. On 3 Apr., 01:40, ameriblog <[EMAIL PROTECTED]> wrote: > i'm interested in my politi

Re: Best practice for databases and distributed development with Django

2008-04-02 Thread Simon Oberhammer
> that developer has to inform all others of the changes so they all > make the change manually on their own local database. you could have a mysql-changes.sql file in your app directories. it holds the ALTER, DROP, etc. statements. put it under SVN. when you get a new rev with the comment "db ch

Re: datetime 8 hours off

2008-04-04 Thread Simon Oberhammer
Magus on IRC told me that multiple django projects with different timezones serverd by apache / mod_python could be a problem - ie one changing TZ in a thread that also servers the other project. So I set timezone-setting to Vienna/Europe for all of them and have not seen then datetime-problem si

access session out of view, howto find out sessionkey?

2007-10-19 Thread Simon Oberhammer
I need to access a session-field in a model, I found this: http://www.djangoproject.com/documentation/sessions/#using-sessions-out-of-views but what would be the clean way to find out the session-key? or is there another way to get the "current" session in a model? btw: Users are not necessarily

Re: access session out of view, howto find out sessionkey?

2007-10-19 Thread Simon Oberhammer
wow, I'm glad there is a cookbook entry for this :-) thank you On Oct 19, 3:30 pm, skam <[EMAIL PROTECTED]> wrote: > You should be able to build a middleware similar > tohttp://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser, > getting request.session instead of request.user --~--~