Thursday, July 27, 2017

Re: Warning while upgrading Django to 1.11.3

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

2017-07-27 13:52 GMT+02:00 Uri Even-Chen <uri@speedy.net>:
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.

--
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-users@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.

--
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-users@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/CAK4qSCdE-pTzxM%2BRagsMeRDsfd7_MmSY5d5VCwLKQyCC5T-a_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment