Saturday, April 23, 2016

Re: Why / added automatically to all urls but base url?

Nevermind....this is weird but the / at end was there but Chrome browser doesn't display it.
When I pasted the url into a terminal is was there.  Also, using curl I got the real info
and it was there. Weird

On Saturday, April 23, 2016 at 5:10:52 PM UTC-5, Chris Seberino wrote:
I have this urlpattern to map base url (easycharting.tk/) to a view called home...

urlpatterns = [django.conf.urls.url("^$", mvc.controllers.controllers.home)]

If you visit easycharting.tk/ you'll notice it automatically REMOVES the ending /.

Why?

For all other suburls, it ADDS the missing /!?!?

Thanks!

cs

--
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/42829606-a29d-4851-8e3b-65be29b136b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment