Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
urls with https and s3:// as parameters
21 views
Skip to first unread message
Ramon Ramirez-Linan
unread,
Jan 19, 2017, 4:22:49 PM
1/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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
Vijay Khemlani
unread,
Jan 19, 2017, 5:23:57 PM
1/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
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?
> --
> 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...@googlegroups.com
.
> To post to this group, send email to
django...@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
.
>
Reply all
Reply to author
Forward
0 new messages