Skip to content

ivannieto/PyDayGalicia-2017

 
 

Repository files navigation

PyDay Galicia 2017 Website

Web page made for PyDay Galicia 2017, developed with Django with ❤️.

Development

For development run this on your terminal into the project root folder:

    $ python3 -m venv .venv && \
        source .venv/bin/activate \
        bash ./run-local.sh

This will install all required dependencies and will start to serve on localhost:8000.

Deploy with Docker

To deploy using docker, first we've to create a .env file with the credentials of the database, secret key, etc.

    $ cp env.example .env

The available environment variables are:

  • POSTGRES_PASSWORD Postgres database password
  • POSTGRES_DB Postgres database name
  • DJANGO_SECRET_KEY Django secret key
  • DJANGO_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 server
  • DJANGO_EMAIL_HOST_USER User for SMTP server
  • DJANGO_EMAIL_HOST_PASSWORD Password for SMTP server
  • DJANGO_EMAIL_PORT Port for SMTP server

The 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.

    $ docker-compose up -d

About

Django Web App PyDay Galicia 2017

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 71.8%
  • Python 20.5%
  • HTML 6.5%
  • Other 1.2%