Z
Z
zigen2015-09-18 12:28:30
Django
zigen, 2015-09-18 12:28:30

How to deploy old Django?

Good afternoon.
I'm trying to deploy an ancient django 1.3 project.
Hosting on clowdlinux, web on phussionpassenger Automatically created
via cpanel passenger_wsgi.py

import imp
import os
import sys

sys.path.insert(0, os.path.dirname(__file__))
wsgi = imp.load_source('wsgi', '/home/gian/public_html/test/gian/wsgi.py')
application = wsgi.application

I, in turn, made wsgi.py for it
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
import django.core.handlers.wsgi

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

The server picked up the application, which is still in Debug=True
And I immediately received
ImportError at /
No module named gian.urls

The application is accordingly called gian.
I assume that django does not know about this application. because it was not initiated via django-admin.py
Tell me where to dig

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Avrong, 2015-09-18
@Avrong

The module that the app is trying to import has been renamed or changed with new versions of Django.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question