Hi I'm trying to get django running on my site. This is probably a duplicate of this question, but after following the suggestions I still can't get my page "mysite".bitnamiapp/project to load. (giving 404 error, though "mysite".bitnamiapp is the usual welcome page)
Also I'm not sure if I should modify the given django.wsgi and django.conf, or create my own project.wsgi and project.conf, and which should go into the Include statement in httpd.conf. For now I've added Include "/opt/bitnami/apps/django/conf/project.conf"
only, and
In my scripts/project.wsgi:
import os, sys
sys.path.append('/opt/bitnami/apps/django/django_projects')
sys.path.append('/opt/bitnami/apps/django/django_projects/project')
os.environ['DJANGO_SETTINGS_MODULE'] = 'project.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
And in my conf/project.conf:
Alias /static "/opt/bitnami/apps/django/lib/python2.7/site-packages/django/contrib/admin/static"
<Directory '/opt/bitnami/apps/django/lib/python2.7/site-packages/django/contrib/'>
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias /URL_mount_point "/opt/bitnami/apps/django/scripts/project.wsgi"
<Directory '/opt/bitnami/apps/django/scripts'>
Order allow,deny
Allow from all
</Directory>
Been trying to get this to work the whole day, pretty sure I did the django-admin.py startproject project
ok and also sudo chown -R daemon /opt/bitnami/apps/django/django_projects/project
. Any help would be greatly appreciated, thank you!