Move admin to /admin/ fixes #258
This commit is contained in:
Родитель
55be696e62
Коммит
d9bdccdbc5
|
@ -6,10 +6,12 @@ from django.contrib import admin
|
|||
|
||||
urlpatterns = [
|
||||
url(r'^api/v1/experiments/', include('experimenter.experiments.urls')),
|
||||
url(r'^new/projects/', include('experimenter.projects.urls')),
|
||||
url(r'^', admin.site.urls),
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^', include('experimenter.projects.urls')),
|
||||
]
|
||||
|
||||
if settings.DEBUG: # pragma: no cover
|
||||
urlpatterns += static(
|
||||
settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
urlpatterns = (
|
||||
static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) +
|
||||
urlpatterns
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче