title: How to insert data to SQLite in Django
body: <p>I am new to Django and I am following this website <a href="https://simpleisbetterthancomplex.com/tutorial/2018/02/03/how-to-use-restful-apis-with-django.html#passing-parameters-to-an-api-github-public-api" rel="nofollow noreferrer">https://simpleisbetterthancomplex.com/tutorial/2018/02/03/how-to-use-restful-apis-with-django.html#passing-parameters-to-an-api-github-public-api</a></p>
  <p>views.py</p>
  <pre><code>from django.shortcuts import render
  import requests
  
  def github(request):
      user = {}
      if 'username' in request.GET:
          username = request.GET['username']
          url = 'https://api.github.com/users/%s' % username
          response = requests.get(url)
          user = response.json()
      return render(request, 'core/github.html', {'user': user})
  </code></pre>
  <p>core/github.html</p>
  <pre><code>{% extends 'base.html' %}
  
  {% block content %}
    &lt;h2&gt;GitHub API&lt;/h2&gt;
    &lt;form method=&quot;get&quot;&gt;
      &lt;input type=&quot;text&quot; name=&quot;username&quot;&gt;
      &lt;button type=&quot;submit&quot;&gt;search on github&lt;/button&gt;
    &lt;/form&gt;
    {% if user %}
      &lt;p&gt;&lt;strong&gt;{{ user.name }}&lt;/strong&gt; has &lt;strong&gt;{{ user.public_repos }}&lt;/strong&gt; public repositories.&lt;/p&gt;
    {% endif %}
  {% endblock %}
  </code></pre>
  <p>After passing parameters to an API and retrieve some location data, I would like to store the data to my SQLite in Django. I have created the model but I have no idea how to insert the data because I can't find examples under similar situations. And I am not sure where I should modify. Any hint or where I should look for? Many thanks.</p>