I've found the problem. The Configuration was correct. The only problem was that the user running the apache service couldn't access the app directory. :(
On 7 Jan., 15:24, Thomas M <tome2...@googlemail.com> wrote: > I have to correct myself: > > It still doesnt find "testapp", so nothing has changed :( > > On 7 Jan., 14:53, Thomas M <tome2...@googlemail.com> wrote: > > > > > Ok, I've called the sittings file with "bellcher.settings" and moved > > it into the projects root folder. > > Now there are no Error Mesages anymore but django still wont work. > > > If I access theserver'sIP I am getting a "500 - InternalServer > > Error" > > I've posted myServerConfiguration above. Do you have any Ideas? > > > BTW: the testapp doesnt do very much, it just returns a HttpResponse > > so I can test theserver. > > > Thanks, Thomas > > > On 7 Jan., 14:39, Tonton <to.ton...@gmail.com> wrote: > > > > 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 <tome2...@googlemail.com> wrote: > > > > Hi, > > > > > I've just set up aserverwith apache2 and mod_wsgi. > > > > Now I want to run django on thisServerbut it crashes with this error > > > > message: > > > > "TemplateSyntaxError: Caught ImportError while rendering: No module > > > > named testapp" > > > > > I've configured theServerthis 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 t...@gmx.de > > > > 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 myserverconfiguration causes the problem, because > > > > I've tried configuring theserverwith 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 django-us...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > > > > . > > > > 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 django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.