/ Published in: Django

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# 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()
URL: https://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
Comments
