Found it, LocaleMiddleware is having some issues on mod_wsgi, i'll try figuring out why.
On Sep 30, 1:55 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > What does your mod_python Apache configuration look like? > > Only difference at this point is that mod_wsgi hosted app would run as > distinct user whereas mod_python would run it as Apache user. > > Need to see how you set PythonPath in mod_python configuration. > > Also, I am ignorant of a lot of what Django does, so what is the > specific Django code construct that you are using where you expect > language selection to be adhered to? > > Graham > > On Sep 28, 6:25 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > Django revision: 6426Mod_wsgirevision: Revision: 489 > > Mod_python 3.2.7 > > > To test just set up the admin interface and see if it is translated or > > not. > > > ---------- > > > startup script > > > #!/usr/local/bin/python > > import sys, os > > > paths = [ > > '/home/hvalsluken/code'] > > > if paths not in sys.path: > > for path in paths: > > sys.path.insert(0, path) > > > os.environ['DJANGO_SETTINGS_MODULE'] = 'hvalsluken.settings' > > > from django.core.handlers.wsgi import WSGIHandler > > application = WSGIHandler() > > > -------- > > > settings > > > INSTALLED_APPS = ['emmet.conf', 'emmet.emmetbase', 'emmet.emmetpages', > > 'emmet.emmetcontact', 'emmet.emmettextileeditor', 'emmet.emmetimages', > > 'emmet.emmetregistration', 'emmet.emmetgallery', > > 'emmet.emmetfilearchive', 'emmet.emmetnews', 'emmet.emmetprofile', > > 'tagging', 'django.contrib.auth', 'django.contrib.contenttypes', > > 'django.contrib.sessions', 'django.contrib.sites', > > 'django.contrib.humanize', 'django.contrib.admin'] > > LANGUAGE_CODE = 'no' > > MIDDLEWARE_CLASSES = ('django.middleware.common.CommonMiddleware', > > 'django.contrib.sessions.middleware.SessionMiddleware', > > 'django.middleware.locale.LocaleMiddleware', > > 'django.contrib.auth.middleware.AuthenticationMiddleware', > > 'django.middleware.doc.XViewMiddleware') > > > --- > > vhost > > > <VirtualHost *:80> > > ServerAdmin [EMAIL PROTECTED] > > ServerName hvalsluken.cylon.no > > ErrorLog /var/log/hvalsluken.cylon.no-error.log > > CustomLog /var/log/hvalsluken.cylon.no-access.log common > > WSGIDaemonProcess hvalsluken user=hvalsluken group=www processes=2 > > threads=25 maximum-requests=500 > > WSGIScriptAlias / /home/hvalsluken/code/hvalsluken/hvalsluken.wsgi > > > <Location "/"> > > WSGIProcessGroup hvalsluken > > WSGIApplicationGroup %{GLOBAL} > > Options Indexes FollowSymLinks > > AllowOverride None > > Order allow,deny > > Allow from all > > > </Location> > > > --- > > > On Sep 28, 1:54 am, Graham Dumpleton <[EMAIL PROTECTED]> > > wrote: > > > > You are going to have to provide more information. > > > > Stating versions of mod_python/mod_wsgiand the configurations/script > > > files used would be a start. Some example code of what triggers the > > > problem and any relevant Django configuration, plus, exactly which > > > version of Django or revision number from Subversion checkout would > > > would also help. > > > > Graham > > > > On Sep 27, 10:44 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > > > I have a project running on django trunk usingmod_wsgiin dev and > > > > mod_python in production. > > > > > In production translation gives the expected results, in my own code > > > > and in the admin. > > > > > Dev is set up exactly the same way, the only difference is that it is > > > > runningmod_wsgi, but no strings are translated at all. > > > > > Is this a real problem or is something wrong with my setup? > > > > >http://code.djangoproject.com/ticket/5623 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---