Home:ALL Converter>Trying to add Django Countries to Django

Trying to add Django Countries to Django

Ask Time:2012-02-13T18:29:01         Author:Tampa

Json Formatter

I am a newbie to django and I am trying to install django countries and am haveing issues. I Installed from http://pypi.python.org/pypi/django-countries/1.0.1. When I installed, I put it into this folder.

/usr/local/lib/python2.7/dist-packages/django/contrib/django_countries

I then added django_countries to the the list of isntalled apps as follows.

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles', 
    'django.contrib.django_counties',
    'polls',
    'rthui',
    # Uncomment the next line to enable the admin:
     'django.contrib.admin',
    # Uncomment the next line to enable admin documentation:
    # 'django.contrib.admindocs',
)

when I ran the below I get the below error

python manage.py syncdb
Error: No module named django_counties

So...what diod I do wrong? What else am I supped to do?

Thanks

Author:Tampa,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/9258914/trying-to-add-django-countries-to-django
PhoebeB :

If this version was downloaded from google, it looks like the app is in a subfolder called countries. Put this folder in your python dist-packages folder so the path is /usr/local/lib/python2.7/dist-packages/countries and then add countries to the list of installed apps. See this doc for more details http://code.google.com/p/django-countries/source/browse/trunk/INSTALL.txt",
2012-02-13T10:32:25
Daniel Roseman :

Why did you put it into django.contrib? That's for apps that are supplied with Django.\n\nInstall it properly, into its own directory. Then, fix the spelling error you have made in INSTALLED_APPS: countries, not counties.",
2012-02-13T10:33:25
yy