Closed elmcrest closed 6 years ago
since django 2.x the urls config has a new way without the need to use regex.
while it's compatible to the old variant, for me the simplest solution to include elephantblog urls was:
from django.urls import path, include from elephantblog import urls as elephanturls urlpatterns += [path("blog/", include(elephanturls))]
I'd still recommend using url() (at least in the docs) as long as we're still supporting Django versions <2.0
url()
since django 2.x the urls config has a new way without the need to use regex.
while it's compatible to the old variant, for me the simplest solution to include elephantblog urls was: