/dpb

Homepage for Deutscher Pfadfinderbund

Primary LanguagePythonMIT LicenseMIT

DPB

CircleCI

Development

This is a Python3 Django project. The requirements are defined in requirements.txt. Use a virtualenv for it since this is the best practice.

Assuming /usr/local/bin/python3 is the path to your python3 binary and python is an alias to python3:

$ cd /path/to/this/project
$ pipenv install
$ python manage.py runserver

The server is now accessible under http://localhost:8000

Create Superuser

Currently, the database is checked in. Since this project is not in production mode, this is okay.

You can add another superuser to the database with:

$ python manage.py createsuperuser

Requirements for Deployment Server

Started too late to write it down...

PIL

Before installing PIL via pip, install the following lib:

$ sudo apt-get install libjpeg-dev

If PIL was already installed, reinstall it with:

$ pip install -I pillow

Bower

Some apps, like django-scheduler require Bower. Just install it with:

$ sudo npm install -g bower