Thursday, August 31, 2017

Re: Bizarre URL behaviour after deploying



What I want to understand is why this "app" suddenly appears in my URLs and how I can control it (remove it ideally). But I have looked at urls.py long enough and scratched my head and not found it. settings.py is right next to if you need to inspect it.


Out of sheer curiosity, what is the actual href= value in the source code (ie the actual result of the {% url %} tag resolution)? 

I also notice that you are generating a bunch of links via JS, have you verified that those values are not being polluted somehow?

Do URL resolutions for the admin work correctly?

What about for 'login' and 'logout'? Those two are a few URL's you've defined with trailing slashes. It shouldn't make a difference, but I'm shooting in the dark here.

-James

--
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/CA%2Be%2BciXH8aM5m2ittKx1oVG5WwT-fmPxoQ5Vxg0UKjOti2drhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment