title: Django package to generate random alphanumeric string
body: <p>I'm building an app that has a separated front-end (Angular or some other JS library) and backend (Django). To ensure some security of requests being sent to the server, I want to append a url parameter say <code>server/someurl?unique_id=Something-unique</code>. </p>
  
  <p>I am storing this unique code on the machine's <code>localStorage</code> for a specific time. However, I want to set this code using some sort of function on the server end which will not only generate this random alphanumeric text but also validate it based on incoming requests. </p>
  
  <p>For example:</p>
  
  <p>When a user opens the app, it'll send a <code>server/setCode</code> which will respond with this randomly generated string which I will store to <code>Local Storage</code> using JS. </p>
  
  <p>On an outgoing request, say <code>server/getdata?someparameter=some_data&amp;unique_id=string_from_local_storage</code> which the server can validate against the generating function and only then process the rest of the url. </p>
  
  <p>Is there a package or a module that could help me achieve the generation and validation? 
  I hope I could convey what I want as I'm not able to find any solution for this short of writing the function to generate and test myself. </p>