title: how to add remove url from urls.py in views.py
body: <p>I have a model named Agency.agency has a field named URL,for example I add 2 Agencies that the first one give the value of A to URL and the second one give the value of B to URL field.now I wanna override save_model method in index in views.py to add Agencie's URL to urls.py when adding an Agency,like this:</p>
  
  <pre><code>(r'^airAgency/A/$','airAgency.views.index'),
  (r'^airAgency/B/$','airAgency.views.index'),
  </code></pre>
  
  <p>so,when enter <a href="http://127.0.0.1:8080/airAgency/A" rel="nofollow">http://127.0.0.1:8080/airAgency/A</a> the index view detect which Agency I wanna access and pass its data to the page.now I have 2 question:</p>
  
  <ol>
  <li>how can I add/remove url to urls.py when overriding save method in views.py</li>
  <li>when user enter a URL in browser how can I parse it and find out which Agency he wanna access to send that Agency Information.
  about the first question I searched a lot but I didn't find anything.for second question I googled and I found out how to parse the requested URL,but U think doing string search in Agency Table based on its URL field is a good way?</li>
  </ol>