Name: opencon-2016-app-code
Owner: SPARC
Description: Platform supporting OpenCon 2016 application and review process.
Created: 2016-11-07 21:13:00.0
Updated: 2017-11-18 20:32:53.0
Pushed: 2016-11-07 21:21:14.0
Size: 455
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements.devel.txt
# not needed in production.env
file to the directory where manage.py is.env
file: add SECRET_KEY
.env
file: add path to DJANGO_SETTINGS_MODULE
(default is opencon_project.settings.developer
)./manage.py add_airports
, ./manage.py add_institutions
, ./manage.py add_organizations
./manage.py add_countries
is not needed (because autocomplete was removed & countries are now in a dropdown menu)./manage.py migrate
./manage.py collectstatic
(needed in production for static file serving using WhiteNoise)./manage.py runserver
./manage.py createsuperuser
Note: Be absolutely sure to install up-to-date requirements from requirements.txt. For example, as of 2016-05-15, this project requires modified django-bootstrap-form
forked by @ZoltanOnody (otherwise on forms, the sequence “verbose_name -> help_text -> form field” will not be displayed in the correct order). If a different version of django-bootstrap-form
is already installed, uninstall and re-install it to display form fields correctly.
After changing the recalculate_ratings
function (in application/models.py
), e.g. when the the logic of moving ratings between round 1 and round 2 is modified, it's necessary to recalculate the values already stored in the database using ./manage.py recalculate_ratings
.