On 26/08/2015 12:32 AM, Richard Jackson wrote:
<snip>
3) Within the 'settings.py' file alter the "DATABASES" text to read as
below:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'test_db',
'USER': 'test_user',
'PASSWORD': '',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}
Just to check - is DATABASES being overridden in local_settings.py?
After all, for Mezzanine, local_settings is usually where you'll define
the actual database (so you can e.g. use sqlite for dev and postgresql
for the deployed site via the local_settings template in the deploy
directory)
Check your project root for 'dev.db' because it's just highly possible
that the database is being created within sqlite instead of postgresql
if you haven't updated DATABASES in local_settings.py
Can you see anything obviously incorrect with the above? Is there any
easy way to actually find what database is being used at present?
python manage.py shell
import settings
settings.DATABASES
Seeya. Danny.
--
You received this message because you are subscribed to the Google Groups "Mezzanine
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.