Re: Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-11-11 Thread Patrick Carra
This worked for me but upon more testing I discovered some values such as WAVE/123456//IMP get changed to WAVE/123456//IMP during the process of passing this parameter as a url and django interpreting it. As a result I get an error: Circuitinfotable matching query does not exist. I'm

Re: Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-11-07 Thread Patrick Carra
Thank you Randy! On Wednesday, September 25, 2019 at 12:09:52 PM UTC-5, Patrick Carra wrote: > > Hello I have an app that displays some database information in a table. > Inside of the html template I am making an edit link that I want to open > another app(page viewLit) while passing a value

Re: Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-09-25 Thread Randy Hughes
views.py class *viewLit*(TemplateView): def get(self, request, strategy=None): circuit_id = self.request.query_params.get('circuitid', None) urls.py path('viewlit/', viewlit.as_view(), name='viewlit') search_custom.html {{ circuit.circuitid }} ''' this is an example using a query

Django - How to add a link to a table that will open another page(django app) from an html template and pass a variable with it.

2019-09-25 Thread Patrick Carra
Hello I have an app that displays some database information in a table. Inside of the html template I am making an edit link that I want to open another app(page viewLit) while passing a value to it's view. I have added my code below. My question is I am unsure of how to make this links url