I am running Kubuntu 12.04 LTS.
I have been reading the django book and I have hit a snag where I'm unable to set up posgresql to work with the django app.
I have installed both python-postgresql and python-psycopg via synaptic. When I run:
import conncetion from django.db I get the following error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 11, in <module> if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES: File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 53, in __getattr__ self._setup(name) File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 46, in _setup % (desc, ENVIRONMENT_VARIABLE)) django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the envirogs.configure() before accessing settings.
Help me understand how django and postgreql communicate or direct me to a django tutorial suited for beginners or a post that helps one set up django and posgre on ubuntu.