Warning while upgrading Django to 1.11.3

559 views
Skip to first unread message

Uri Even-Chen

unread,
Jul 27, 2017, 7:54:23 AM7/27/17
to django...@googlegroups.com, Evgeniy Kirov
Hi friends,

I upgraded Django from 1.10.7 to 1.11.3 and I got these warnings while running tests:

speedy\match>manage.py test
Creating test database for alias 'default'...
System check identified some issues:

WARNINGS:
?: (urls.W005) URL namespace 'about' isn't unique. You may not be able to reverse all URLs in this namespace
?: (urls.W005) URL namespace 'djdt' isn't unique. You may not be able to reverse all URLs in this namespace
?: (urls.W005) URL namespace 'feedback' isn't unique. You may not be able to reverse all URLs in this namespace
?: (urls.W005) URL namespace 'privacy' isn't unique. You may not be able to reverse all URLs in this namespace
?: (urls.W005) URL namespace 'terms' isn't unique. You may not be able to reverse all URLs in this namespace

System check identified 5 issues (0 silenced).
...............................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 255 tests in 69.046s

OK
Destroying test database for alias 'default'...

What is the problem and how do I fix it?


I get this warning only in speedy.match. In speedy.net I don't get it.


Thanks,
Uri.

Andréas Kühne

unread,
Jul 27, 2017, 8:32:49 AM7/27/17
to django...@googlegroups.com
Hi,

In your match urls file, you include urlpatterns twice.

urlpatterns += [
url(r'^matches/', include('speedy.match.matches.urls', namespace='matches')),
url(r'^', include('speedy.match.accounts.urls', namespace='accounts')),
url(r'^admin/', admin.site.urls),
url(r'^i18n/', include('django.conf.urls.i18n')),
# always at the bottom
url(r'^(?P<slug>[-\._\w]+)/friends/', include('speedy.core.friends.urls', namespace='friends')),
url(r'^messages/', include('speedy.core.im.urls_private', namespace='im')),
url(r'^messages/(?P<slug>[-\._\w]+)/', include('speedy.core.im.urls_public', namespace='im_entity')),
url(r'^(?P<slug>[-\._\w]+)/blocks/', include('speedy.core.blocks.urls', namespace='blocks')),
url(r'^(?P<slug>[-\._\w]+)/likes/', include('speedy.match.likes.urls', namespace='likes')),
url(r'^uploads/', include('speedy.core.uploads.urls', namespace='uploads')),
url(r'^', include('speedy.core.profiles.urls', namespace='profiles')),
] + urlpatterns

You do "urlpatterns +=" and then add urlpatterns at the end as well. I would recommend that you remove the urlpatterns at the end.

Regards,

Andréas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMQ2MsEn1UaJS_-s5kFTEDVavG7c6c6Sy%2B7ceSzOms6b%2B1VmYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Uri Even-Chen

unread,
Jul 27, 2017, 8:51:49 AM7/27/17
to django...@googlegroups.com, Evgeniy Kirov
Thank you Andréas, this is a bug! I didn't notice it. I'll remove it.
Reply all
Reply to author
Forward
0 new messages