Forums

Anyone point me towards how to proceed with mezzanine

Followed this fine https://www.pythonanywhere.com/forums/topic/1178/, can anyone point me to how to continue on with making my website? Do I need to set-up a database or is that already done?

The default Mezzanine setup uses SQLite, which is a good database but doesn't scale well on the PythonAnywhere architecture, so I suggest you switch to MySQL.

You can create a MySQL database on the "Databases" tab (if you haven't created one before, you'll need to create a MySQL password, which should be different to your normal PythonAnywhere login password, as it will appear in plain text in your source code).

Once you've got the MySQL database set up, you edit your local_settings.py to point your Mezzanine install at the new database. It will look something like this:

DATABASES = {
    "default": {
        # Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
        "ENGINE": "django.db.backends.mysql",
        "NAME": "TeamJJSL$yourdatabasename",
        "USER": "TeamJJSL",
        "PASSWORD": "yourmysqlpassword",
        "HOST": "mysql.server",
        "PORT": "",
    } 
}

...where the values of NAME and PASSWORD are things you'll have to set up for yourself.

As for how to move on from there -- we've been looking for a good Mezzanine tutorial, and haven't found one so far. Anyone else know about one?

To change the database I can just do this after completion of the mezzanine guide where Ive already created a sqlite database right?

yep!

After following your instructions to change the database my website has completely died - http://teamjjsl.pythonanywhere.com/. Any ideas what happened?

Executed "python manage.py syncdb" after some googling but didn't change anything.

Nevermind, I have it working now.