I've been handed a dump of a Django site that I'm trying to help restore on a new server for a friend. I'm not really experienced with Django, which is why I probably need some dumbed-down answers for this. I do have a dump of the database seperately, but for now I'm just trying to restore the app itself.
In the main dir of the dump (/home/naturligvis), there is a "public_html" dir, with a "hander.wsgi" file in it, that has the following code:
import os
import sys
for path in ('/home/naturligvis/lib/python/PIL/',
'/home/naturligvis/lib/python/',
'/home/naturligvis/naturligvis-bzr/modules/',):
if path not in sys.path:
sys.path.insert(0, path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'naturligvis.psisettings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Now I'm trying to figure out what kind of setup I need to do on a server (Trying with Ubuntu 16.04 on DigitalOcean) in order to make this work...? All the settings.py etc. files are in /home/naturligvis/naturligvis-bzr/modules/naturligvis
Hoping that someone can help me or point me in the right direction.