Skip to content

TemplateDoesNotExist at /admin #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mikepc opened this issue Apr 22, 2014 · 2 comments
Closed

TemplateDoesNotExist at /admin #6

mikepc opened this issue Apr 22, 2014 · 2 comments

Comments

@mikepc
Copy link

mikepc commented Apr 22, 2014

Coming back to Django after a long stint away from it, wanted to browse the admin site and it can't load the admin templates. Rest of the site works fine though, so far :-)

@mikepc
Copy link
Author

mikepc commented Apr 22, 2014

urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^api/', include('example.api.urls')),
url(r'^(?P<template_name>\w+)$', SimpleStaticView.as_view(), name='example'),
url(r'^$', TemplateView.as_view(template_name='index.html')),
)

#Fixed with swapping the order on the urlpatterns tuple.

@kevinastone
Copy link
Owner

I'm not seeing any issue with the url ordering and the admin works in my instance. Please re-open with steps to reproduce if you this is persisting, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants