Return to Snippet

Revision: 46717
at August 28, 2011 06:35 by magicrebirth


Updated Code
# in your project.wsgi file

import os, sys

#add the desired django version at the beginning of the path; mind you must provide the Django folder as downloaded!
sys.path.insert(1, "/path/to/Django/") 

sys.path.append('/my/project/root/')  # add things as usual...

# the rest is the normal wsgi stuff...

os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

Revision: 46716
at August 28, 2011 06:33 by magicrebirth


Updated Code
# in your project.wsgi file

import os, sys

sys.path.insert(1, "/path/to/Django/") #add the desired django version at the beginning of the path
sys.path.append('/my/project/root/')  # add things as usual...

# the rest is the normal wsgi stuff...

os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

Revision: 46715
at May 24, 2011 00:05 by magicrebirth


Initial Code
# in your project.wsgi file

import os, sys
sys.path.insert(1, "/project/Django-1.1.1/") #add the desired django version at the beginning of the path
sys.path.append('/project/website/django/')  # add things as usual...

# the rest is the normal wsgi stuff...

os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

Initial URL
https://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/

Initial Description


Initial Title
Adding custom django package to WSGI settings

Initial Tags
django

Initial Language
Django