django-pwa
django-pwa copied to clipboard
Replace django.conf.urls.url with django.urls.re_path
This avoid a deprecation warning: django.conf.urls.url is an alias for django.urls.re_path but will be removed in Django 4.0.
This method was only added in Django 2.0, so we have to check
whether we are using a version of Django greater than 2.0 before
we import it. Otherwise, we use the old url
method.
Fixes #68
Codecov Report
Merging #69 (b4144e9) into master (0ff60e7) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #69 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 51 54 +3
=========================================
+ Hits 51 54 +3
Impacted Files | Coverage Δ | |
---|---|---|
pwa/urls.py | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 0ff60e7...b4144e9. Read the comment docs.
No longer needed -- this was done by #88.