title: How do I access data from local storage in Django views?
body: <p>How do I access the value of key "store1" inside local storage in my Django views.py??</p>
  
  <p>HTML, in Django templates --> index.html</p>
  
  <p>-User will key in input and button will activate local storage function</p>
  
  <pre><code>&lt;input type="text" id="firstID"&gt;
  &lt;button onclick="myFunction()"&gt;LocalStorage&lt;/button&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <p>-User input is saved in variable which is used to for local storage</p>
  
  <pre><code>var siteName = document.getElementById('firstID');
  function myFunction() {
    localStorage.setItem('store1', siteName.value);
  </code></pre>