Hi Luca,

Is the answer you're looking for something like this?:

(r'^scarico/(?P<var1>\w+)/(?P<var2>\w+)/(?P<var3>\w+)/(?P<myvar4>\w+)/$
','prova.views.scarico')


Where \w+ is regex for anything except white-space ()
(more options: http://docs.python.org/2/library/re.html )

If you're using functional views the def would look as follows:

def scarico(request, var1, var2, var3, myvar4):
    ...
    return HttpResponse(...)

or alternatively if the variables are optional:

def scarico(request, var1=None, var2=None, var3=None, myvar4=None):
    ...


Regards,
Elena :)



On Wed, Nov 7, 2012 at 1:36 AM, luca72 <lucabe...@libero.it> wrote:

> Hello
> I have to take a page with 4 variable that can be string number or mixed
> including point how i have to configure the url:
>
> (r'^scarico/./././.','prova.views.scarico')
>
> How i have to do it?
>
> Thanks
>
> Luca
>
>  --
> 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/-/NSXBecUi1m4J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to