Skip to content

Commit 67da771

Browse files
author
Matthew Fisher
committed
fix(controller) disable django admin URL
If you accidentally create an object that requires an external library such as the Release object, no docker image will be pushed to the registry, which is unintentional. This disables the django admin URL such that you can't shoot yourself in the 👞.
1 parent b4cf46e commit 67da771

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

deis/urls.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
urlpatterns = patterns(
1919
'',
2020
url(r'^accounts/', include('allauth.urls')),
21-
url(r'^admin/', include(admin.site.urls)),
2221
url(r'^api/', include('api.urls')),
2322
)
2423

2524
if settings.WEB_ENABLED:
26-
urlpatterns += patterns('', url(r'^', include('web.urls')))
25+
urlpatterns += patterns(
26+
'',
27+
url(r'^', include('web.urls')),
28+
url(r'^admin/', include(admin.site.urls)),
29+
)

0 commit comments

Comments
 (0)