⚠ This repository is archived🗄 https://cz.pycon.org/2016/ is now served as a static website. Look for it in the repo for PyCon CZ 2019 (or further years).
PyConCZ 2016
PyCon CZ is coming back to Brno for it's second edition on 28-30th October 2016.
Contributing
PyCon CZ website is using Python 3.5/Django for the backend, NodeJS/webpack for bundling frontend assets and Postgresql as a database.
Setup dev environment
Manually
Inside pyconcz_2016 directory,
run following commands to setup project for local development:
-
Prepare postgresql database: user
pyconcz, password empty, databasepyconczE.g. on Mac:
$ createuser --pwprompt pyconcz $ createdb -Opyconcz -Eutf8 pyconcz -
python3 -m venv env -
pip install -r requirements-dev.txt -
./manage.py migrate -
./manage.py runserver
If and only if you also want to work with styles and javascript, you need to have node.js.
Inside root directory (the same directory where manage.py is) run following commands:
- Add following line to your
/etc/hostsfile:127.0.0.1 lan.pycon.cz. npm installnpm start
Now open http://lan.pycon.cz:8000 and you should have development version of website with webpack hot reloading enabled.
Building
You only need this when you changed styles. Webpack creates static files with unique filenames (appending file hash). After each production build, you have to commit new files. Don't care about the old ones at the moment.
npm run build(ordocker-compose run webpack npm run buildwhen using docker)git add pyconcz_2016/static_build
License
This work is licensed under a MIT