change 'admin' url, to stay the same as generated by django 1.10

https://github.com/django/django/blob/1.10.1/django/conf/project_template/project_name/urls.py-tpl#L20
This commit is contained in:
Fabio C. Barrioneuvo da Luz 2016-09-20 19:05:36 -03:00
parent 2aed9268b6
commit b4e6e08100

View File

@ -13,7 +13,7 @@ urlpatterns = [
url(r'^about/$', TemplateView.as_view(template_name='pages/about.html'), name='about'), url(r'^about/$', TemplateView.as_view(template_name='pages/about.html'), name='about'),
# Django Admin, use {% raw %}{% url 'admin:index' %}{% endraw %} # Django Admin, use {% raw %}{% url 'admin:index' %}{% endraw %}
url(settings.ADMIN_URL, include(admin.site.urls)), url(settings.ADMIN_URL, admin.site.urls),
# User management # User management
url(r'^users/', include('{{ cookiecutter.project_slug }}.users.urls', namespace='users')), url(r'^users/', include('{{ cookiecutter.project_slug }}.users.urls', namespace='users')),