Code for DjangoCon Europe 2017 website
HTML Python CSS JavaScript Shell Smarty Other
Latest commit ecba5a3 Feb 17, 2017 @yakky yakky Minor style fixes


DjangoCon Europe 2017

This is the project for the website.

Run locally

  • Make sure that you have Python 3.5 installed on your system.

  • Set up your project:

    git clone  # Clone the project
  • Edit djangocon_europe/.env key according to your environment. See an example below.

  • Set up your virtualenv:

    virtualenv --python=/usr/bin/python3.5 env                    # Start a virtualenv
    . env/bin/activate                                            # Use the virtualenv
    pip install --upgrade pip                                     # Use a current pip version
    pip install pip-tools
    pip-sync                                                      # Install dependencies
  • Set up the Django project:

    python migrate
    python runserver

Example .env file

Configuration uses django-environ. Please refer to its document for the configuration details.



How this site works

DjangoCon Europe 2017 website heavily relies on django CMS for most of its features.

As a primer, have a look at:

Expected pages

The template expects that the following pages exits:

  • Home page (with reverse id "home")
  • Code of Conduct page (reverse id "coc")
  • Blog page (reverse id "blog")
  • Manifesto page (reverse id "manifesto")

Before browsing the site, go to http://localhost:8000/admin/cms/page/ and create the pages / edit the advanced properties of the existing pages to set the reverse id.

Default pages

The initial_pages.json file includes the above pages to help you bootstrapping the website.

To load the pages run:

python loaddata initial_pages.json

Compile sass files

We use compass to compiles scss files to css:

compass compile

After that collectstatic files:

python collectstatic -l


All the code except file in styles and djangocon_europe/static/img directories are released with BSD-3 clauses

Files in styles and djangocon_europe/static/img are not reusable without prior consent.