On 22/10/10 23:05, Roberto De Ioris wrote:
Il giorno 22/ott/2010, alle ore 13.53, David Taylor ha scritto:
I assume my mountpoint remains "/"?
yes, your apps live under the root of uWSGI but under
a subdirectory in Cherokee
Would I add something like the example code you provided to my django_wsgi.py
script?
Inside django_wsgi I currently have:
import os
import django.core.handlers.wsgi
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
application = django.core.handlers.wsgi.WSGIHandler()
modify it in this way:
import os
import django.core.handlers.wsgi
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
django_app = django.core.handlers.wsgi.WSGIHandler()
def application(env, sr):
env['PATH_INFO'] = env['SCRIPT_NAME'] + env['PATH_INFO']
env['SCRIPT_NAME'] = ''
return django_app(env, sr)
Brilliant! That worked!
Thanks Roberto!
David.
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee