🚲DjangoCon Europe 2019 website
Clone or download
benjaoming Merge pull request #101 from dawnwages/feature/sponsor_brochure_009
correct Speech2Text, Child Care and Sprint sponsor, add DKK currency …
Latest commit 8b5d53d Jan 17, 2019

README.rst

Getting started

Here are the essential parts of this project's file structure. The first, dceu2019/ contains a Django project and hugo_site/ contains the Hugo project for static site generation (the main site):

.
β”œβ”€β”€ dceu2019  # <= Django project
β”‚Β Β  β”œβ”€β”€ db.sqlite3  # <= NOT in repo
β”‚Β Β  β”œβ”€β”€ __init__.py
β”‚Β Β  β”œβ”€β”€ manage.py
β”‚Β Β  β”œβ”€β”€ MANIFEST.in
β”‚Β Β  β”œβ”€β”€ media
β”‚Β Β  β”œβ”€β”€ README.md
β”‚Β Β  β”œβ”€β”€ setup.cfg
β”‚Β Β  β”œβ”€β”€ setup.py
β”‚Β Β  β”œβ”€β”€ src
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dceu2019
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ apps
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  └── __init__.py
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ locale
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ settings
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ base.py
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dev.py
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ local.py  # <= NOT in repo
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ pretalx.py
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”‚Β Β  └── production.py
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ static
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ templates
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ urls.py
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── wsgi.py
β”‚Β Β  β”‚Β Β  └── __init__.py
β”‚Β Β  └── staticfiles
β”‚Β Β      └── ...
└── hugo_site  # <= Hugo project
 Β Β  β”œβ”€β”€ content  # <= This is where all the content lives!
 Β Β  β”‚Β Β  └── ...
 Β Β  └── themes
 Β Β      └── dceu2019  # <= The theme
 Β Β          β”œβ”€β”€ layouts  # <= HTML templates
 Β Β          β”œβ”€β”€ static  # <= CSS etc
 Β Β          └── ...

Developing the Hugo site

We use a static main site because we want to archive the main conference website as easily as possible. We are using the default version of Hugo for Ubuntu 18.04, so to generate and run the main site, just do:

# Install Hugo
$ sudo apt install hugo

# Go to project directory
$ cd hugo_site

# Run dev server
$ hugo server

Developing the Django project

The Django project will be used before and during the conference for planning purposes: Talk submissions, scheduling, and ticket holder services such as ride sharing and accommodation sharing.

You can install and work on a development version following these steps:

# Create a Python 3.6+ virtualenv (virtualenvwrapper)
$ mkvirtualenv -p python3

# Install project & dependencies in "editable" mode (-e), with the [dev]
# dependency subset.
# You should repeat this command when you pull in new changes which can
# contain new requirements or version upgrades
$ pip install -e "dceu2019[dev]"

# Try invoking the Django main management script
$ python dceu2019/manage.py

# ...you will be told that it has created a local.py file. You might want to
# edit this now or later depending on your needs.

# When ready, run migrations.
$ python dceu2019/manage.py migrate

# Initialize PreTalx: Creates a superuser etc.
$ python dceu2019/manage.py init

# Now you can run the development server
$ python dceu2019/manage.py runserver

# Point your browser to localhost:8000/ and you'll see an empty schedule