hello i am not sure if i can help you but from my config
use

os.environ["DJANGO_SETTINGS_MODULE"] = "bellcher.settings"  (like in
installed apps)

or mv django.wsgi in /Bellcher
WSGIScriptAlias / /www/django/bellcher/django.wsgi

regards

On Fri, Jan 7, 2011 at 2:26 PM, Thomas M <[email protected]> wrote:

> Hi,
>
> I've just set up a server with apache2 and mod_wsgi.
> Now I want to run django on this Server but it crashes with this error
> message:
> "TemplateSyntaxError: Caught ImportError while rendering: No module
> named testapp"
>
> I've configured the Server this way:
> My django code is in:
>
> /www/django/bellcher/
>
> so the app "testapp" is in /www/django/bellcher/testapp and has an
> __init__.py
>
> My WSGI Script:
>
> #!/usr/local/bin/python
> import os, sys
> sys.path.append("/www/django/")
> sys.path.append("/www/django/bellcher/")
> os.environ["DJANGO_SETTINGS_MODULE"] = "settings"
> os.environ["PYTHON_EGG_CACHE"] = "/tmp"
>
> import django.core.handlers.wsgi
>
> application = django.core.handlers.wsgi.WSGIHandler()
>
> And my Apache configuration:
>
> <Directory "/www/django/bellcher/media">
>        Order deny,allow
>        Allow from all
> </Directory>
>
> <Directory "/www/django/bellcher">
>        AllowOverride All
>        Order deny,allow
>        Allow from all
> </Directory>
>
> Alias /media/ /www/django/bellcher/media/
> ServerAdmin [email protected]
> ErrorLog "/var/log/apache2/django_error.log"
> CustomLog "/var/log/apache2/django_access.log" common
>
> WSGIScriptAlias / /www/django/bellcher/apache/django.wsgi
>
>
> I dont think that my server configuration causes the problem, because
> I've tried configuring the server with the help of several tutorials.
> And every try ended up with this error.
>
> Can somebody please help me with this issue?
>
> Much thanks in advance,
> Thomas M
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to