Web page made for PyConES 2019, made with Django with :heart:.
.. image:: https://travis-ci.org/python-spain/PyConES-2017.svg?branch=master :target: https://travis-ci.org/python-spain/PyConES-2017
To deploy using docker, first we've to create a .env
file with the
credentials of the database, secret key, etc.
.. code-block:: bash
$ cp env.example .env
$ cp docker-compose.yml.example docker-compose.yml
The available environment variables are:
POSTGRES_PASSWORD
Postgres database passwordPOSTGRES_DB
Postgres database nameDJANGO_SECRET_KEY
Django secret keyDJANGO_SETTINGS_MODULE
Django settings module (eg. config.settings.production
)DATABASE_URL
Url to connect to the database (eg. config.settings.production
)DJANGO_ALLOWED_HOSTS
Host names allowed, separated by commas (eg. localhost,2017.es.pycon.org
))DJANGO_EMAIL_HOST
Host for SMTP serverDJANGO_EMAIL_HOST_USER
User for SMTP serverDJANGO_EMAIL_HOST_PASSWORD
Password for SMTP serverDJANGO_EMAIL_PORT
Port for SMTP serverThe default values are ready to run the containers in a development machine using production configuration. Then, we've have to use Docker Compose to bring it up.
.. code-block:: bash
$ ./deploy.sh
Some configuration can be enabled/dissabled on the options admin page:
activated_tickets_sale_page
: 1/0 Tickets optioninfo_available
: 1/0 availability of the information pageschedule_opened
: 1/0 Determines if the schedule is open or not