title: Django - Dealing with extra slash of URLField while saving with unique=True
body: <p>I have model which have URLField set to unique</p>
  
  <pre class="lang-py prettyprint-override"><code>item_url  = models.URLField(max_length=255, unique=True)
  </code></pre>
  
  <p>Problem is when I get data from frontend(VueJS) I might get URL with extra slash.</p>
  
  <p>e.g.
  I have below URL in my db:</p>
  
  <pre><code>https://themeforest.net/item/vuesax-vuejs-admin-dashboard-template/23328599
  </code></pre>
  
  <p>and User sent request with same url but with trailing slash like below:</p>
  
  <pre><code>https://themeforest.net/item/vuesax-vuejs-admin-dashboard-template/23328599/
  </code></pre>
  
  <p>In this case, unique validation thinks it is two different URL but actually both of them are same.</p>
  
  <p>Plus, it will be better to store URLs without trailing slashes.</p>
  
  <p>So, What is the best way to handle it? Does Django provides something to handle this kind of scenario?</p>
  
  <p>I am using Django + DRF.</p>
  
  <p>Thanks</p>