2014-02-23 18:45 GMT+01:00 Federico Bruni <[email protected]>:
> Ok, I should have looked up deploy/nginx.conf and deploy/live_settings.py
> in my project.
> How can I transfer the sqlite database of development to postgresql in
> production? Do you know a specific tutorial on this?
>
I've tried starting with sqlite3 and modified deploy/live_settings
accordingly, but still no luck. fab tries to set up the postgres database.
No idea where this is configured:
$ grep postgres deploy/*
deploy/live_settings.py: # Ends with "postgresql_psycopg2", "mysql",
"sqlite3" or "oracle".
deploy/live_settings.py: #"ENGINE":
"django.db.backends.postgresql_psycopg2",
This is the database section in my deploy/live_settings.py:
DATABASES = {
"default": {
# Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
#"ENGINE": "django.db.backends.postgresql_psycopg2",
"ENGINE": "sqlite3",
# DB name or path to database file if using sqlite3.
#"NAME": "%(proj_name)s",
"NAME": "dev.db",
# Not used with sqlite3.
#"USER": "%(proj_name)s",
# Not used with sqlite3.
#"PASSWORD": "%(db_pass)s",
# Set to empty string for localhost. Not used with sqlite3.
#"HOST": "127.0.0.1",
# Set to empty string for default. Not used with sqlite3.
#"PORT": "",
}
}
I guess that there's some problem with the path of dev.db or how it should
be synced to the server. But again I can't find any information about it.
(Mezzanine documentation is very clear, full of good links and probably
relatively easy to maintain.. but it's quite hard for a newbie).
Any help is much appreciated.
Thanks!
Federico
--
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/groups/opt_out.