Hi.

<str:myvar> to the rescue!

Also it is recommended to use {% url %} tag to construct urls not to
hardcode them and once were there Django convention is to end urls to slash.

ke 18. syysk. 2019 klo 15.53 Luca Bertolotti <luca72.bertolo...@gmail.com>
kirjoitti:

> Hello i need to pass a query set from template to a view:
>
> <a href="/test/group/{{ data }}">
>
> in which way i have to define the urls file
>
> path('test/<slug:valore>/***what to write+++', views.test, name='test'),
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2ad42877-766c-49b9-af51-e67007af80f9%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2ad42877-766c-49b9-af51-e67007af80f9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91odFE%2Bk07BwQzr8sBjwe1e9wevM2SutVzMs2uhxvKkTsjw%40mail.gmail.com.

Reply via email to