You can use slug

On Tue, 19 May 2020, 6:44 pm ratnadeep ray, <ratnade...@gmail.com> wrote:

> Hi all,
>
> My requirement is to pass a variable to the view from the template using
> href.
>
> For example, I have written the following line of code:
>
> <a href="/execute" *value="SQL"*>SQL data</a>
>
>
> So using the above line, can we send the value "SQL" clicking on the link
> of "SQL data" to the method "execute" written in the views? If not, then
> what way can I do so?
>
> Thanks.
>
>
>
>
>
> --
> 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/7e892826-f4c1-426d-bf9b-1a1b0b2b17be%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7e892826-f4c1-426d-bf9b-1a1b0b2b17be%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/CAJ0m4xiv67vWFfQGqub73TJeb2ekfCaqg%2BO3RoirSbM6ADYPpg%40mail.gmail.com.

Reply via email to