Note that there are some explanatory texts on larger screens.

plurals
  1. POGet TemplateDoesNotExist Error when deploy django application to a pr0duction server
    primarykey
    data
    text
    <p>Environment:</p> <p>ubuntu on aws<br /> django-1.4.5 in virtalenv<br /> apache-2.2 with wsgi</p> <p>django setting.py:</p> <pre><code>TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), '..', 'templates').replace('\\', '/'),) </code></pre> <p>apache2 error log:</p> <pre><code>[Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] mod_wsgi (pid=1794): Exception occurred processing WSGI script '/home/ubuntu/Sites/tushanwan/tushanwan/wsgi.py'. [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] Traceback (most recent call last): [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] File "/home/ubuntu/.virtualenvs/django-1.4.5/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__ [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] File "/home/ubuntu/.virtualenvs/django-1.4.5/lib/python2.7/site-packages/django/core/handlers/base.py", line 179, in get_response [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] File "/home/ubuntu/.virtualenvs/django-1.4.5/lib/python2.7/site-packages/django/core/handlers/base.py", line 228, in handle_uncaught_exception [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] File "/home/ubuntu/.virtualenvs/django-1.4.5/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] File "/home/ubuntu/.virtualenvs/django-1.4.5/lib/python2.7/site-packages/django/views/defaults.py", line 32, in server_error [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] File "/home/ubuntu/.virtualenvs/django-1.4.5/lib/python2.7/site-packages/django/template/loader.py", line 145, in get_template [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] File "/home/ubuntu/.virtualenvs/django-1.4.5/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template [Mon Mar 11 22:18:55 2013] [error] [client 116.238.171.102] TemplateDoesNotExist: 500.html </code></pre> <p>I have spent a day, and tried many ways to solve this problem on my aws ubuntu instance, but nor of them worked for me. I use the same way to deploy the django application on my local ubuntu server, and it works.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload