title: Flask to Django conversion
body: <p>Flask project</p>
  <p>html code</p>
  <pre><code>&lt;a href=&quot;{{ url_for('flight', flight_id=flight.id) }}&quot;&gt;
  </code></pre>
  <p>python code</p>
  <pre><code>@app.route(&quot;/flights/&lt;int:flight_id&gt;&quot;)
  def flight(flight_id):
  </code></pre>
  <p>I want to convert the above piece of code into corresponding Django form. Inside Django project in views.py file <code>def flight(request)</code> is defined.</p>