Thursday, January 19, 2017

Re: urls with https and s3:// as parameters

Shouldn't the paths be passed as GET or POST arguments instead of part
of the URL path? Why would you need the regex then?

On 1/19/17, Ramon Ramirez-Linan <rlinan@navteca.com> wrote:
> Hi
>
> I am building a django app which urls take 2 parameters a source and
> destination.
> The source is either a url for a file http://something.com/file.jpg or an
> s3 arn s3://bucketname/key.jpg
>
> I am having difficulties creating a regex expression that matches that to
> route it to my view
>
> The first problem is from the fact that the source may contain '/' and '.'
>
> Any suggestion will be welcome
>
> Thanks
>
> Ramon
>
> --
> 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/44c48066-2cd1-49a9-aa88-c9730c9a9d79%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/CALn3ei1rm%3DXG%2BGTgKoB%3D_q7_BQO2XGMAr2vQeUbAtGAPpc9mxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment