[urls] Fix typo and remove unused imports

This commit is contained in:
Valentin Samir 2021-06-19 17:21:20 +02:00
parent 198308031b
commit aeb794fe74
2 changed files with 2 additions and 8 deletions

View file

@ -14,15 +14,13 @@ Including another URLconf
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
import django
try:
from django.urls import re_path
except ImportError:
# re_path is not available in Django 2
from django.conf.urls import url as re_pa
from django.conf.urls import url as re_path
from django.conf.urls import url, include
from django.conf.urls import include
from django.contrib import admin
urlpatterns = [

View file

@ -11,16 +11,12 @@
# (c) 2015-2016 Valentin Samir
"""urls for the app"""
import django
try:
from django.urls import re_path
except ImportError:
# re_path is not available in Django 2
from django.conf.urls import url as re_path
from django.conf.urls import url
from django.views.generic import RedirectView
from django.views.decorators.debug import sensitive_post_parameters, sensitive_variables