title: GeoDjango--Python:Can't Display Map
body: <p>I'm getting troubled (more troubled i guess) in displaying my map (from postgresql database) under Geodjango environment. . i had already successfully imported my shapefile into Posgresql database. Yet, I cannot view my maps whenever I tried to. . i also followed the steps in installing all the libraries needed, django, python and postgresql. .</p>
  
  <p>I am new to Geodjango that's why I cannot trace errors. . and actually i dont nknow how. . maybe i could get help from you guys. .</p>
  
  <p>I always get these errors. .
  it talks about templates. .
  i have also my template folder on my project folder. . yet its empty and dont know what it is for. .</p>
  
  <p>can you please help me out on this. ?</p>
  
  <p>more thanks to you and i really appreciate you guys for helping out. . </p>
  
  <pre><code>Environment:
  
  
  Request Method: GET
  Request URL: http://127.0.0.1:8000/admin/APPLICATION/worldborder/245/
  
  Django Version: 1.6.1
  Python Version: 2.7.0 
  Installed Applications:
  ('django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'django.contrib.admin',
   'APPLICATION')
  Installed Middleware:
   ('django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware')
  
  Template Loader Error:
  Django tried loading these templates, in this order:
  Using loader django.template.loaders.filesystem.Loader:
  Using loader django.template.loaders.app_directories.Loader:
  C:\Python27\lib\site-packages\django\contrib\admin\templates\gis\admin\osm.html (File does not exist)
  C:\Python27\lib\site-packages\django\contrib\auth\templates\gis\admin\osm.html (File does not exist)
  C:\Python27\lib\site-packages\django\contrib\admin\templates\gis\admin\osm.html (File does not exist)
  
  
  
  Template error:
  In template C:\Python27\lib\site-packages\django\contrib\admin\templates\admin\includes\fieldset.html, error at line 19
    gis/admin/osm.html
    9 :             {% for field in line %}
  
  
    10 :                 &lt;div{% if not line.fields|length_is:'1' %} class="field-box{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}"{% elif field.is_checkbox %} class="checkbox-row"{% endif %}&gt;
  
  
    11 :                     {% if not line.fields|length_is:'1' and not   field.is_readonly %}{{ field.errors }}{% endif %}
  
  
    12 :                     {% if field.is_checkbox %}
  
  
    13 :                         {{ field.field }}{{ field.label_tag }}
  
  
    14 :                     {% else %}
  
  
    15 :                         {{ field.label_tag }}
  
  
    16 :                         {% if field.is_readonly %}
  
  
    17 :                             &lt;p&gt;{{ field.contents|linebreaksbr }}&lt;/p&gt;
  
  
    18 :                         {% else %}
  
  
    19 :                              {{ field.field }} 
  
  
   20 :                         {% endif %}
  
  
   21 :                     {% endif %}
  
  
   22 :                     {% if field.field.help_text %}
  
  
   23 :                         &lt;p class="help"&gt;{{ field.field.help_text|safe }}&lt;/p&gt;
  
  
   24 :                     {% endif %}
  
  
   25 :                 &lt;/div&gt;
  
  
   26 :             {% endfor %}
  
  
   27 :         &lt;/div&gt;
  
  
   28 :     {% endfor %}
  
  
   29 : &lt;/fieldset&gt;
  
  
   Traceback:
   File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response
   139.                 response = response.render()
   File "C:\Python27\lib\site-packages\django\template\response.py" in render
   105.             self.content = self.rendered_content
   File "C:\Python27\lib\site-packages\django\template\response.py" in rendered_content
   82.         content = template.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
   140.             return self._render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in _render
   134.         return self.nodelist.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
   840.                 bit = self.render_node(node, context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
   78.             return node.render(context)
   File "C:\Python27\lib\site-packages\django\template\loader_tags.py" in render
     123.         return compiled_parent._render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in _render
     134.         return self.nodelist.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
     840.                 bit = self.render_node(node, context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
     78.             return node.render(context)
   File "C:\Python27\lib\site-packages\django\template\loader_tags.py" in render
     123.         return compiled_parent._render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in _render
     134.         return self.nodelist.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
     840.                 bit = self.render_node(node, context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
     78.             return node.render(context)
   File "C:\Python27\lib\site-packages\django\template\loader_tags.py" in render
     62.             result = block.nodelist.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
     840.                 bit = self.render_node(node, context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
     78.             return node.render(context)
   File "C:\Python27\lib\site-packages\django\template\loader_tags.py" in render
     62.             result = block.nodelist.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
     840.                 bit = self.render_node(node, context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
     78.             return node.render(context)
   File "C:\Python27\lib\site-packages\django\template\defaulttags.py" in render
     196.                         nodelist.append(node.render(context))
   File "C:\Python27\lib\site-packages\django\template\loader_tags.py" in render
     155.         return self.render_template(self.template, context)
   File "C:\Python27\lib\site-packages\django\template\loader_tags.py" in render_template
     137.         output = template.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
     140.             return self._render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in _render
     134.         return self.nodelist.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
     840.                 bit = self.render_node(node, context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
     78.             return node.render(context)
   File "C:\Python27\lib\site-packages\django\template\defaulttags.py" in render
     196.                         nodelist.append(node.render(context))
   File "C:\Python27\lib\site-packages\django\template\defaulttags.py" in render
     196.                         nodelist.append(node.render(context))
   File "C:\Python27\lib\site-packages\django\template\defaulttags.py" in render
     305.                 return nodelist.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
     840.                 bit = self.render_node(node, context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
     78.             return node.render(context)
   File "C:\Python27\lib\site-packages\django\template\defaulttags.py" in render
     305.                 return nodelist.render(context)
   File "C:\Python27\lib\site-packages\django\template\base.py" in render
     840.                 bit = self.render_node(node, context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render_node
     78.             return node.render(context)
   File "C:\Python27\lib\site-packages\django\template\debug.py" in render
     91.             output = force_text(output)
   File "C:\Python27\lib\site-packages\django\utils\encoding.py" in force_text
     100.                 s = s.__unicode__()
   File "C:\Python27\lib\site-packages\django\forms\forms.py" in __str__
     425.         return self.as_widget()
   File "C:\Python27\lib\site-packages\django\forms\forms.py" in as_widget
     475.         return widget.render(name, self.value(), attrs=attrs)
   File "C:\Python27\lib\site-packages\django\contrib\gis\admin\widgets.py" in render
     81.                                        context_instance=geo_context)
   File "C:\Python27\lib\site-packages\django\template\loader.py" in render_to_string
     162.         t = get_template(template_name)
   File "C:\Python27\lib\site-packages\django\template\loader.py" in get_template
     138.     template, origin = find_template(template_name)
   File "C:\Python27\lib\site-packages\django\template\loader.py" in find_template
     131.     raise TemplateDoesNotExist(name)
  
   Exception Type: TemplateDoesNotExist at /admin/APPLICATION/worldborder/245/
   Exception Value: gis/admin/osm.html
  </code></pre>