Resolve all django deprecation warnings
This commit is contained in:
parent
91b97fc05f
commit
be5f289a8a
8 changed files with 29 additions and 30 deletions
|
|
@ -8,11 +8,6 @@ from django.conf.urls import url, include
|
|||
from django import views as django_views
|
||||
from evennia.web.website import views as website_views
|
||||
|
||||
# loop over all settings.INSTALLED_APPS and execute code in
|
||||
# files named admin.py in each such app (this will add those
|
||||
# models to the admin site)
|
||||
admin.autodiscover()
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', website_views.page_index, name="index"),
|
||||
url(r'^tbi/', website_views.to_be_implemented, name='to_be_implemented'),
|
||||
|
|
@ -34,7 +29,7 @@ if settings.EVENNIA_ADMIN:
|
|||
url('^admin/$', website_views.evennia_admin, name="evennia_admin"),
|
||||
|
||||
# Makes sure that other admin pages get loaded.
|
||||
url(r'^admin/', include(admin.site.urls))]
|
||||
url(r'^admin/', admin.site.urls)]
|
||||
else:
|
||||
# Just include the normal Django admin.
|
||||
urlpatterns += [url(r'^admin/', include(admin.site.urls))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue