Skip to content

Commit

Permalink
Use template conditionals same way as other projects
Browse files Browse the repository at this point in the history
Other starter projects use two separate conditionals for adding
Django version-specific imports.
  • Loading branch information
grahamu committed Mar 24, 2018
1 parent c4fcbef commit 6c4d1c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project_name/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% if django_version >= "2" %}from django.urls import path{% else %}from django.conf.urls import url{% endif %}
{% if django_version < "2" %}from django.conf.urls import url{% endif %}
{% if django_version >= "2" %}from django.urls import path{% endif %}
from django.views.generic import TemplateView


Expand Down

0 comments on commit 6c4d1c2

Please sign in to comment.