Im trying to configure my Django site so that it is served by Apache.
Folder Layout
`-- django
|
`-- webtools
|-- 1
|-- __init__.py
|-- __init__.pyc
|-- apache
| `-- django.wsgi
|-- macmonster
| |-- __init__.py
| |-- __init__.pyc
| |-- models.py
| |-- models.pyc
| |-- tests.py
| |-- views.py
| `-- views.pyc
|-- manage.py
|-- modules
| |-- __init__.py
| |-- __init__.pyc
| |-- macaddr.py
| |-- macaddr.pyc
| |-- validate.py
| `-- validate.pyc
|-- settings.py
|-- settings.pyc
|-- urls.py
`-- urls.pyc
/etc/httpd/conf.d/django.conf
<VirtualHost *:80 >
ServerName direct.macmonster.co.uk
WSGIScriptAlias / /opt/django/webtools/apache/django.wsgi
</VirtualHost>
/opt/django/webtools/apache/django.wsgi
import os, sys
sys.path.append('/opt/django/webtools')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
The main error Im currently getting within the logs is :
TemplateSyntaxError: Caught ImportError while rendering: No module named webtools.macmonster
Thanks,