Thursday, December 21, 2017

Re: Are URL namespaces optional or are they used by default by Django?

Thanks Andreas,

I'm seeing three things;

1) Reverse URLs are failing until I specifically add the app's name as a namespace
2) The show_urls management command from the django_extensions project appears to show that all URLs have a namespace:

/license/license/edit/<license_id>/ core.decorators.WVCheckLoginPermissions() license:edit_license

3) All resource URIs in TastyPie are empty, which according to a ticket I found there seems to be caused by namespaces.

Thanks
Mike


On Thursday, 21 December 2017 10:47:28 UTC-5, Andréas Kühne wrote:
Hi,

Namespaces are completely optional - you don't have to use it if you don't want to. 

What is happening that makes you think otherwise? What errors are you seeing?

Regards,

Andréas

2017-12-21 16:38 GMT+01:00 Stodge <sto...@gmail.com>:
I am porting an app from Django 1.6.x to 1.10.x and I'm hitting a problem with URL namespaces. I don't specifically configure any namespaces in my URLs but Django seems to think that all my app URLs are namespaced. The documentation seems to imply that namespaces are optional and only configured if provided, but my experience suggests otherwise. Would someone be able to confirm if namespaces are optional (opt-in)? I'm really rather confused at the moment about this. Thanks

--
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...@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/2f722055-c058-4d06-b4e7-ca47b2511769%40googlegroups.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/1816bc1d-c5ef-4814-9e11-2ce45c8db802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment