Ich arbeite mit Django auf einem Produktionsserver und versuche eine Seite aufzubauen, was nicht immer ganz funktioniert. Mein größtes Problem ist im Moment die Templates zu nutzen. Ich habe den Pfad unter der settings.py unter TEMPLATE_DIRS angeben aber sie werden nicht angenommen. Ich arbeite gerad nochmal die Django Docu durch und hänge am dritten Teil wo man das erste Template einfügt für die Umfrage. http://docs.djangoproject.com/en/1.2/intro/tutorial03/
Ich arbeite übrigens mit einem Client über Putty auf einem Linux Debian Squeeze mit Apache 2.2.6 mit mod_wsgi
Nun zu meinem Fehler:
Code: Alles auswählen
Environment:
Request Method: GET
Request URL: http://fs-1520vm/polls/
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'maint.trainies',
'django.contrib.admin',
'south',
'maint.polls']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response
91. request.path_info)
File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py" in resolve
217. sub_match = pattern.resolve(new_path)
File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py" in resolve
123. return self.callback, args, kwargs
File "/usr/lib/pymodules/python2.6/django/core/urlresolvers.py" in _get_callback
132. raise ViewDoesNotExist("Could not import %s. Error was: %s" % (mod_name, str(e)))
Exception Type: ViewDoesNotExist at /polls/
Exception Value: Could not import polls.views. Error was: No module named polls.views
Achso und außerdem nutze ich noch das Tool "south" : http://south.aeracode.org/docs/about.html
Vielen Dank schon mal für eure Antworten.
Grüße