new django.urls.path() function allows a simpler, more readable URL routing syntax.

This commit is contained in:
trhr 2020-02-09 20:36:30 -06:00
parent 308818bd5d
commit a3169b50c2
2 changed files with 8 additions and 6 deletions

View file

@ -2,8 +2,9 @@
This structures the (simple) structure of the
webpage 'application'.
"""
from django.conf.urls import *
from django.urls import path
from evennia.web.webclient import views as webclient_views
app_name = "webclient"
urlpatterns = [url(r"^$", webclient_views.webclient, name="index")]
urlpatterns = [path("", webclient_views.webclient, name="index")]