The e-cidadania platform is almost ready-to-use after unpacking, but you will have to edit the settings.py file if you want to install it in production. We explain here all the settings realted with the initial configuration of e-cidadania. If you want more detailed information about the settings, please take a look at the official django documentation
The e-cidadania setting have been splitted into four major files:
settings/
__init__.py
defaults.py
development.py
production.py
This file loads one configuration or another based on the DEBUG flag. You have to set this first.
This file stablishes the common settings across the both environments. Most of this settings are e-cidadania specific, we will specify here the ones you can modify safely.
This are the main settings that you will have to modify to make the deployment of e-cidadania, you shouldn’t need to modify the rest unless you want a very specific deployment, in which case we recommend you to read the django documentation about the settings.
development.py and production.py are minor configuration files with all the parameters we think you will need to make a development or production server.
Configuring the database:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db/sqlite.db',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
First of all will be to set up the database. By default e-cidadania is set up to use a local SQLite3 database, which will be useful to make tests, but we don’t recommend to use it in production.
An example of a database on a DreamHost shared server is this:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'superb_database',
'USER': 'databaseadmin',
'PASSWORD': 'somepassword',
'HOST': 'mysql.myserver.org',
'PORT': '',
}
}
The email settings are pretty straightforward, so we will not explain them here.
Warning
Django 1.4 still doesn’t have nice support for autoverified SSL emails, you will need to use secure (but not handshaked) TLS email addresses.
Note
This section is still on development.
Extensions are django applications that you can attach to e-cidadania to improve its functionalities. Currently e-cidadania doesn’t support a hotplug plugin system.
You can continue now to Deployment