Thursday, January 19, 2017

urls with https and s3:// as parameters

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.

No comments:

Post a Comment