Sorry, auto-send. In your example, APPEND_SLASH wouldn't add a slash, because the URL in the URLConf doesn't have a slash on it.
I figure you probably meant this, though: url(r'^profile$', views.profile, name='profile', append_slash=False), (with a dollar sign at the end of the regex pattern). On Thu, Mar 13, 2014 at 4:19 PM, Ryan Hiebert <[email protected]> wrote: > In your example, APPEND_SLASH > > > On Thu, Mar 13, 2014 at 4:12 PM, Val Neekman <[email protected]> wrote: > >> Some JavaScript frameworks(e.g. AngularJS) remove the ending slash before >> making a request. >> If APPEND_SLASH = True, then the API would not be consumable by >> AngurlarJS. >> >> Would it be a good idea to add options to disable the APPEND_SLASH >> behaviour per *url()*, or per a *base_uri*? >> >> *Example 1:* >> *settings.py:* >> APPEND_SLASH = True >> >> *urls.py:* >> url(r'^profile', views.profile, name='profile', append_slash=False), >> >> *Example 2:* >> *settings.py* >> APPEND_SLASH = True >> APPEND_SLASH_EXCLUDE = ('/api/v1/', '/api/v2/', '/etc/) >> >> What do you think? >> >> If the answer is YES, then would it be too late to push a patch up for >> inclusion in 1.7? >> >> Thanks, >> >> Val >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/django-developers. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-developers/e01272a7-585f-42fe-85e5-8b0020aef882%40googlegroups.com<https://groups.google.com/d/msgid/django-developers/e01272a7-585f-42fe-85e5-8b0020aef882%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CABpHFHRSM%2BwirffyTWVtAn5spojQ%3DY6QWcr%3DHukPnAj-sejgqQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
