I just go it, it is

url(r'^download/(?P<path>.*)$', 'faculty.views.Main.download_file'),

Thanks :)


On Wed, Nov 28, 2012 at 10:10 PM, Loai Ghoraba <[email protected]> wrote:

> Hi
>
> I am serving some files, and I want whenever I have a url
> :/download/path/to/some/file to map this to a view function with
> path/to/some/file sent as a parameter of the function, so how could I
> accomplish that ?
>
> I want a url of the following schema :
>     url(r'downloads/(?P<path>\[Anything including backslashes])$',
> 'download_file'),
>
> Thanks a lot.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/_cVverOl0AoJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to