Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango admin TemplateSyntaxError / TemplateDoesNotExist at /admin/
    primarykey
    data
    text
    <p>I've just updated django to version 1.2.4 but, having taken the normal steps with installing the admin, i'm getting a TemplateSyntaxError:</p> <pre><code>TemplateSyntaxError at /admin/ Caught TemplateDoesNotExist while rendering: admin/base.html </code></pre> <p>So a superuser has been created, i've installed the app, run syncdb. My urls page is as follows:</p> <pre><code>[...] # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # admin enabled (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), [...] </code></pre> <p><del>In addition if I follow the paths for the admin media e.g. <code>http://localhost:8000/static/admin/css/base.css</code></p> <p>I get: <code>Permission denied: /static/admin/css/base.css</code></del> - fixed this, but same error loading admin remains</p> <p><strong>Update</strong></p> <p>OK so it now works, by putting the admin templates inside my normal template dir.. but I assume this is a bad idea, but it perhaps implies it might simply be an issue with permissions or paths?</p> <p><strong>Update</strong></p> <p>Could this be a permissions issue? What would I want to CHMOD these to?</p> <pre><code>pwd /Library/Python/2.6/site-packages/django/contrib/admin/templates/admin Adam-Gambles-MacBook-Air:admin adamgamble$ ls -al total 168 drwxr-xr-x 26 root admin 884 17 Mar 12:27 . drwxr-xr-x 4 root admin 136 17 Mar 12:27 .. -rw------- 1 root admin 268 18 Mar 2008 404.html -rw------- 1 root admin 502 18 Mar 2008 500.html -rw------- 1 root admin 1095 4 May 2010 actions.html -rw------- 1 root admin 347 23 Aug 2008 app_index.html drwxr-xr-x 3 root admin 102 17 Mar 12:27 auth -rw------- 1 root admin 3605 10 Oct 02:59 base.html [...ETC...] </code></pre> <p><strong>PROBLEM FIXED</strong></p> <p>Involved reinstalling django, and starting a new project. Dissatisfying result, but thanks for helping out!</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