title: How to run python script inside django project?
body: <p>I am unable to run python script inside my django project.</p>
  
  <ol>
  <li>I have create a directory with <code>mkdir scripts</code></li>
  <li>Then I use <code>touch scripts/__init__.py</code></li>
  <li>Then I create my python script using <code>touch scripts/update_keyword.py</code></li>
  <li>here is the code of my script </li>
  </ol>
  
  <pre><code>
  def run():
      # Fetch all questions
      print("run script")
  
  
  </code></pre>
  
  <p>Then I run my script with the help of the following command:</p>
  
  <pre><code>python manage.py runscript update_keyword.py
  
  </code></pre>
  
  <p>Now I am getting following error:</p>
  
  <pre><code>Unknown command: 'runscript'
  Type 'manage.py help' for usage.
  
  
  </code></pre>
  
  <p>I have follow this blog <a href="https://django-extensions.readthedocs.io/en/latest/runscript.html" rel="nofollow noreferrer">https://django-extensions.readthedocs.io/en/latest/runscript.html</a> . Kindly Help.</p>