Hello .. I want to have google maps in my application, so i created a
project and in that made an application to handle the maps and made the
required changes in the settings.py for the above. But i am getting the
following error when i am trying to issue the command "python manage.py
sqlall world" Error: App with label world could not be found. Are you sure
your INSTALLED_APPS setting is correct? Can some one please help in this
issue . And my models file is as follows: from django.contrib.gis.db import
models class WorldBorders(models.Model): # Regular Django fields
corresponding to the attributes in the # world borders shapefile. name =
models.CharField(max_length=50) area = models.IntegerField() pop2005 =
models.IntegerField('Population 2005') fips = models.CharField('FIPS Code',
max_length=2) iso2 = models.CharField('2 Digit ISO', max_length=2) iso3 =
models.CharField('3 Digit ISO', max_length=3) un =
models.IntegerField('United Nations Code') region =
models.IntegerField('Region Code') subregion =
models.IntegerField('Sub-Region Code') lon = models.FloatField() lat =
models.FloatField() # GeoDjango-specific: a geometry field
(MultiPolygonField), and # overriding the default manager with a GeoManager
instance. mpoly = models.MultiPolygonField() objects = models.GeoManager() #
So the model is pluralized correctly in the admin. class Meta:
verbose_name_plural = "World Borders" # Returns the string representation of
the model. def __unicode__(self): return self.name

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to