title: Database table names with Django
body: <p>I already have a database named "mydb", where I have a table called "AERODROME".</p>
  
  <p>My models.py looks like this:</p>
  
  <pre><code>from django.db import models
  
  class Aerodrome(models.Model):
      Name = models.CharField(max_length=48)
      Latitude = models.DecimalField(decimal_places=4, max_digits=7)
      Longitude = models.DecimalField(decimal_places=4, max_digits=7)
  </code></pre>
  
  <p>And I have this method at views.py:</p>
  
  <pre><code>from django.shortcuts import render
  from helloworld.models import Aerodrome
  
  def aerodromes(request):
      return render(request, 'aerodromes.html', {'aerodromes': Aerodrome.objects.all()})
  </code></pre>
  
  <p>At my templates folder, I have aerodromes.html, which is quite simple too:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;table&gt;
          {% for aerodrome in aerodromes %}
              &lt;tr&gt;
                  &lt;td&gt;{{ aerodrome.Name }}&lt;/td&gt;
                  &lt;td&gt;{{ aerodrome.Longitude }}&lt;/td&gt;
                  &lt;td&gt;{{ aerodrome.Latitude }}&lt;/td&gt;
              &lt;/tr&gt;
              {% endfor %}
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I test through my browser, I get an error, because it looks like it's accessing the table with a wrong name. My application is called "helloworld" since it's a test, and instead of accessing to mydb.AERODROMES, it is accessing to mydb.helloworld_aerodrome (Also note the case sensitive problem).</p>
  
  <p>Since I already had the database populated, I haven't run syncdb (I understood it wasn't neccessary, but maybe this is the problem).</p>
  
  <p>So, the problem is that I don't know why it is adding "helloworld_" to the table name, and also that I still don't know for sure where exactly am I fixing the table name (and from there comes the case sensitive problem having "aerodrome" and not "AERODROMES").</p>
  
  <p>Any help here?</p>