What kind of messages appear on the screen when you run manage.py createdb?

I suspect it is a connection or permissions issue.  You might try putting 
this in your pg_hba.conf file (which is normally in your data directory, 
except in Debian/Ubuntu):

# "local" is for Unix domain socket connections only 
local   all             all                                     trust 
# IPv4 local connections: 
host    all             all             127.0.0.1/32            trust

then reload the PostgreSQL daemon (pg_ctl reload or a "service" command 
from your OS).  Also are you sure you created the database with the owner 
that you are passing to django?

Note - you probably don't want to use the above lines in production, but 
for a quick test to get started it's all right.


On Monday, August 24, 2015 at 3:12:28 PM UTC-5, Richard Jackson wrote:
>
> Hi there,
>
> I've installed Django and had no problems with sorting out the PostgreSQL 
> connection, but I can't seem to get Mezzanine to create tables in the 
> specific database. When I set up a new Django project I get 10 different 
> tables, but Mezzanine doesn't seem to create any. I've run "python 
> manage.py migrate" & "python manage.py createdb" but with to no avail.
>
> I've made the below alteration to the settings.py file - is there anything 
> else I should be doing? This feels like an incredibly basic issue and I 
> don't know if I'm misunderstanding the process, so any feedback would be 
> appreciated!
>
> DATABASES = {
>     'default': {
>         'ENGINE': 'django.db.backends.postgresql_psycopg2',
>         'NAME': 'NAME_OF_DATABASE',
>         'USER': 'NAME_OF_USER',
>         'PASSWORD': '',
>         'HOST': '127.0.0.1',
>         'PORT': '5432',
>     }
> }
>
> Cheers!
>
> Rich
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to