⚠This repository is archived 🗄
PyCon CZ taking place in Prague for its third edition.
PyCon CZ website is using Python 3.5/Django for the backend, NodeJS for bundling frontend assets and Postgresql as a database.
Setup dev environment
run following commands to setup project for local development:
You can either use sqlite database, if you only need to work with static pages and styles, in which case, you don't need to setup anything. Or, if you need to work with dynamic apps, you need to use postgresql.
Prepare postgresql database: user
pyconcz, password empty, database
E.g. on Mac:
$ createuser --pwprompt pyconcz $ createdb -Opyconcz -Eutf8 pyconcz
python3 -m venv env
pip install -r requirements-dev.txt
You only need this if you work with styles or images.
For styles and images processing to work, you need to have
node.js and gulp-cli installed globally (
sudo npm install gulp-cli -g)
Inside root directory (the same directory where
manage.py is) run
You can run your dev server manually on http://localhost:8000 with:
./manage.py runserver --settings=pyconcz_2017.settings.local
To start development with static files being processed run
gulp. It will also start dev server for you.
Open http://localhost:3000 and you should see development version of website with automatic compiling and reloading.
/static/img is replaced with
processed content of
So don't edit anything inside
After each production build, you have to commit newly generated CSS and image files. Old files are automatically replaced.
npm run build
git add pyconcz_2017/static
fab production deploy to deploy to production or
fab beta deploy to deploy to beta site.
This work is licensed under a MIT