title: How to configure geodjango on windows10?
body: <p>I am working on a geodjango project on windows-10. I have been following the tutorial and the installation guide from the <a href="https://english.stackexchange.com/questions/11481">geodjango documentation</a>. I have installed all required packages and executed the bat script. </p>
  
  <p>Python version: Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:13:57) [MSC v.1916 64 bit (AMD64)]</p>
  
  <p>OSGEO version: GDAL 2.4.1, released 2019/03/15</p>
  
  <p>Initially I had to reconfigure my virtual environment to have a 64-bit python version matching that of the OSGEOW4 application.</p>
  
  <p>I've tried the solutions answered for questions <a href="https://stackoverflow.com/questions/49139044/geodjango-on-windows-could-not-find-the-gdal-library-oserror-winerror-12/49159195#49159195">1</a> and <a href="https://stackoverflow.com/questions/44140241/geodjango-on-windows-try-setting-gdal-library-path-in-your-settings">2</a>.</p>
  
  <p>Those solutions include:</p>
  
  <ul>
  <li><p>Setting the environment variables before at the beginning of the <em>settings.py</em> of the django project</p></li>
  <li><p>Defining the GDAL_LIBRARY_PATH</p></li>
  <li><p>Adding the gdal version to the django\contrib\gis\gdal\libgdal.py</p></li>
  </ul>
  
  <p>I have not yet tried the alternative of installing the gdal from a binary file. I do not understand why I would not be able to configure with the OSGEO application.</p>
  
  <p>The error present in the command prompt when executing <code>python manage.py check</code> is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "manage.py", line 21, in &lt;module&gt;
      main()
  
  [...]
  
  OSError: [WinError 126] The specified module could not be found
  
  </code></pre>
  
  <p>Seems like it is an issue that many encounter.</p>
  
  <p>A concise yet complete answer would be greatly appreciated.</p>
  
  <p>Thanks for the help.</p>