adamcharnock/django-tz-detect

Url patterns is deprecated

Closed this issue · 2 comments

Hi guys, just got in mine project (django 1.9.1):
[WARNING:py.warnings]**[init.py:84]: site-packages\tz_detect\urls.py:8: RemovedInDjango110Warning: django.conf.urls.pat
terns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
url(r'^set/$', SetOffsetView.as_view(), name="tz_detect__set"),

as I see in the code it's:
urlpatterns = patterns('',...)

Thanks for the issue @johndark! I'm not going to have time to take a look at this for a bit, but would gladly take a pull request.

+1's welcome.

bashu commented

try pip install -U django-tz-detect