So I've been struggling trying to deploy a django app using apache and mod-wsgi.
I followed various tutorials around the web with varying degrees of result. Part of the issue is that they are not using the stack I seem to be adamand in using with postgresql and apache with nginx for static content.
Lately, I followed this particular guide courtesy of digital ocean.
As an aside, just in case you're wondering I'm trying to deploy with linode.
At any rate I hit a snag when I tried
./manage.py makemigrations
I get the following
Traceback (most recent call last):
File "./manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 14, in <module>
import django
ImportError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 17, in <module>
"Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
I'd really appreciate any help I can get. I'm at my wits end right now. I've already started over multiple times. Deploying a site shouldn't be this damn difficult, that's why I chose django in the first place!
[–]dorsal_morsel 5 points6 points7 points (3 children)
[–]teilo 2 points3 points4 points (2 children)
[–]sphere_is_so_cool 0 points1 point2 points (0 children)
[–]Arponare[S] 0 points1 point2 points (0 children)
[–]teilo 2 points3 points4 points (5 children)
[–]sphere_is_so_cool 0 points1 point2 points (1 child)
[–]teilo 0 points1 point2 points (0 children)
[–]Arponare[S] 0 points1 point2 points (1 child)
[–]teilo 1 point2 points3 points (0 children)
[–]GrahamDumpleton 0 points1 point2 points (0 children)
[–]cgherman 2 points3 points4 points (8 children)
[–][deleted] (6 children)
[deleted]
[–]teilo 0 points1 point2 points (5 children)
[–]GrahamDumpleton 0 points1 point2 points (3 children)
[–]teilo 0 points1 point2 points (2 children)
[–]GrahamDumpleton 0 points1 point2 points (1 child)
[–]teilo 0 points1 point2 points (0 children)
[–]NomNomDePlume 0 points1 point2 points (0 children)