Как я могу передать id в маршрут в Django?
Я новичок в Django. Начал изучать его 4 дня назад. У меня есть проблема, и я не знаю, как ее решить. Я много искал в Google, но ничего не понял из предложенных решений. Вот проблема:
- I've created models and views for the app
- I've created the database with all tables needed. In them I have 2 foreign keys which link between two tables
- In the html, I need to show only the information linked to the foreign key.(eg. I have a webpage in which I have all the countries. When I click on Argentina, I want only Argentina's provinces to be shown)
- Where and what do I need to do in order for it?
Опять же, я искал высоко и низко в Google, потому что я не думаю, что это что-то настолько сложное. Но все, что я нашел, не решило мою проблему.