I just updated DJJanga in version 1.2.4 but taking the normal steps with installing the administrator, I I'm getting a TemplateSyntaxError:
TemplateSyntaxError at / admin / Caught TemplateDoesNotExist when rendering: admin / base.html So a superuser has been created , I have installed the app, run SyncAdB my URL page is as follows:
[...] Next to enable admin Delete rows: django.contrib import admin admin.autodiscover () urlpatterns = patterns ('', # administrator enabled ('django.contrib.admindocs.urls'), including 'admin / doc /'), (R 'admin /', included (admin.site.urls)), [...] In addition to admin media like http: // Localhost: I follow the path to 8000 / static / admin / css / base.css I am getting: permission denied: / static / admin /css/base.css - this has been fixed, but the same error loading the administration Updates OK, now it works by inserting an admin template inside my normal template der ... but I believe this is a bad idea, but maybe this could mean Could that be just an issue with permissions or paths?
Update Could this be a permissible issue? Do I want to CHMOD them?
PWD / Library / Python 2/6 / Site- Package / Django / Country / Admin / Template S / admin Adam-Gambling-MacBook-Air: Administrator AdamGamil $ LS-L Total 168 Dvksar -XR-X26 Root Manager 884 17 Mar 12:27. Drwxr-xr-x 4 Root Manager 136 17 Mar 12:27 .. -rw ------- 1 Root Manager 268 18 March 2008 404.html -rw ------- 1 Root Administrator 502 March 18 2008 500.html -Rye ------- 1 Root Administrator 1095 May 4, 2010 actions.html -rw ------- 1 Root Administrator 347 August 23, 2008, AP_EXX.html, DRXXR-XR-X3 Root Admin 102 17 Mar 12:27 auth -rw ------- 1 root admin 3605 October 10, 02:59 base.html [... etc ...] < Strong> problem fixed
Including restore of the dengue, and a new project Second is. Unsatisfied results, but thanks for helping!
that django.contrib.admin to INSTALLED_APPS Settings have been added. If not, the admin template directory, django / contrib / admin / templates , will not be added to the list of template directories, and you TemplateDoesNotExist error. Additionally, make sure that django.template.loaders.app_directories.Loader has been added to the TEMPLATE_LOADERS settings. This is the real loader who knows that any template / directory should be used in the root of any installed application package for template search.
Comments
Post a Comment