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 installe
You can install django countries with this command:
sudo pip install django-countries
Then your INSTALLED_APPS should be updated like this:
INSTALLED_APPS = (
'django_admin_bootstrapped.bootstrap3',
...
'django.contrib.staticfiles',
...
'django_countries',
)
(note: no django. prefix, countries spelt correctly, underscore not dash)
BTW I found this command useful when verifying package names:
pip list
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
Why did you put it into django.contrib
? That's for apps that are supplied with Django.
Install it properly, into its own directory. Then, fix the spelling error you have made in INSTALLED_APPS: countries
, not counties
.