diff --git a/project_name/urls.py b/project_name/urls.py index 0f564ce..1c6144f 100644 --- a/project_name/urls.py +++ b/project_name/urls.py @@ -1,6 +1,7 @@ from django.conf import settings -{% if django_version >= "2" %}from django.urls import include, path{% else %}from django.conf.urls import include, url{% endif %} +{% if django_version < "2" %}from django.conf.urls import include, url{% endif %} from django.conf.urls.static import static +{% if django_version >= "2" %}from django.urls import include, path{% endif %} from django.views.generic import TemplateView from django.contrib import admin