Hi Aymeric,
Localized solution is fine, but when I saw the number posts from people who
were trying to find a solution to this, I thought, perhaps it would be a
nice little enhancement to the APPEND_SLASH functionality.
Thanks,
Val
On Thursday, 13 March 2014 17:12:51 UTC-4, Val Neekman 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/ef92c706-34f7-4716-b75e-f26ad1da71c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.