Servicios > English support (For non-Spaniard users)

Problem with setting up django app

<< < (3/3)

Lwoo:
I applied the hint from one of the links from your previous post and now I get all the tracebacks into my mailbox. I keep on getting the same error (the following lines are the most interesting):


--- Código: ---File "/home/monfloo/public_html/monfloo-landing/monfloo_lp/urls.py", line 6, in <module>
   admin.autodiscover()

 File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/contrib/admin/__init__.py", line 22, in autodiscover
   mod = import_module(app)

 File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/utils/importlib.py", line 35, in import_module
   __import__(name)

ImportError: No module named mailing
--- Fin del código ---

"mailing" is the name of app which I use in my project. I tried editing paths in settings.py but it didn't solve the problem. Also, error_log states:


--- Código: ---[Wed Mar 14 22:42:23 2012] [error] [client x.x.x.x]   File "/home/monfloo/public_html/monfloo-landing/monfloo_lp/urls.py", line 6, in <module>
[Wed Mar 14 22:42:23 2012] [error] [client x.x.x.x] mod_wsgi (pid=21285): Exception occurred processing WSGI script '/home/monfloo/public_html/monfloo-landing/django.wsgi'
--- Fin del código ---

line 6 in urls.py is admin.autodiscover(). Still no idea. :/

shakaran:
Hi Lwoo,

Entering to http://monfloo.quijost.com/monfloo-landing/ appear this on general error log:


--- Código: ---[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX] mod_wsgi (pid=24275): Exception occurred processing WSGI script '/home/monfloo/public_html/django.wsgi'.
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX] Traceback (most recent call last):
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]   File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py", line 272, in __call__
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]     response = self.get_response(request)
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]   File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 153, in get_response
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]   File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 218, in handle_uncaught_exception
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]     return callback(request, **param_dict)
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]   File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/utils/decorators.py", line 93, in _wrapped_view
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]     response = view_func(request, *args, **kwargs)
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]   File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/views/defaults.py", line 30, in server_error
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]     t = loader.get_template(template_name) # You need to create a 500.html template.
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]   File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/template/loader.py", line 157, in get_template
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]     template, origin = find_template(template_name)
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]   File "/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/template/loader.py", line 138, in find_template
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX]     raise TemplateDoesNotExist(name)
[Thu Mar 15 10:54:22 2012] [error] [client XX.XX.XX.XX] TemplateDoesNotExist: 500.html

--- Fin del código ---

So, you are getting a exception TemplateDoesNotExist. Try checking the current paths on django project and catch the exception when you import the template.

Navegación

[0] Índice de Mensajes

[*] Página Anterior

Ir a la versión completa