Default admin password

1,263 views
Skip to first unread message

gspitzl...@gmail.com

unread,
Apr 23, 2015, 8:17:58 AM4/23/15
to mezzani...@googlegroups.com
Hi all,

I am new to this list but trying out Mezzanine since a few weeks. I am interested in multi language sites and according my understandin Mezzanine 3.1.10 does not yet support this. I found a comment that

 pip install -e git+https://github.com/stephenmcd/mezzanine.git#egg=Mezzanine

is a workaround till the next package will be made. I already got ist working a few weeks ago with the standard admin/default login. Today I did the same procedure again but unfortunately the them login did not work.

I am working under Ubuntu 14.04LTS, postgres and Django 1.7.7.  I deinstalled the automatically setup Django 1.8 (as at least the deompages did not appear) and intslled Django1.7.7 I am wihin a virtualenv. Any help is very much appreciated

Thanks a lot
Gerhard



Graham

unread,
Apr 23, 2015, 2:09:18 PM4/23/15
to mezzani...@googlegroups.com
In a new virtualenv

pip install Django==1.7.7
pip install git+https://github.com/stephenmcd/mezzanine.git

try that
g
--
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-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
T : 021 081 71732

gspitzl...@gmail.com

unread,
Apr 24, 2015, 7:15:02 AM4/24/15
to mezzani...@googlegroups.com
Hi,

thanks a lot, this unfortunately gives the same problem. It seems to be related to postgres. If I create the database using sqlite I see in the log

Creating default account (username: admin / password: default) ...

this line does not appear if I specify my postgres settings in local-settings.py

Thanks a lot
Gerhard

Graham

unread,
Apr 24, 2015, 3:43:45 PM4/24/15
to mezzani...@googlegroups.com
I am wondering if it is something to do with how you have set up your postgres database?

After

pip install Django==1.7.7
pip install git+https://github.com/stephenmcd/mezzanine.git

you need
pip install psycopg2

Then in local_settings.py something like

DATABASES = {
    "default": {
        # Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
        "ENGINE": "django.db.backends.postgresql_psycopg2",
        # DB name or path to database file if using sqlite3.
        "NAME": "your_database_name",
        # Not used with sqlite3.
        "USER": "your_database_user_name",
        # Not used with sqlite3.
        "PASSWORD": "your_password",
        # Set to empty string for localhost. Not used with sqlite3.
        "HOST": "localhost",
        # Set to empty string for default. Not used with sqlite3.
        "PORT": "5432",
    }
}

psql
CREATE DATABASE your_database_name WITH OWNER your_database_user_name;


python manage.py createdb
g

Stephen McDonald

unread,
Apr 25, 2015, 6:49:06 PM4/25/15
to mezzani...@googlegroups.com
I can also confirm the setup creates the default account correctly with Postgres using both Django 1.7 and 1.8.
Stephen McDonald
http://jupo.org

gspitzl...@gmail.com

unread,
Apr 29, 2015, 9:19:18 AM4/29/15
to mezzani...@googlegroups.com, st...@jupo.org
Dear All,

thanks a lot, I repeated again with a new setup and it worked without changes I do not know what I did wrong, sorry to bother you.

Ciao
Gerhard
Reply all
Reply to author
Forward
0 new messages