Skip to content
Snippets Groups Projects
Select Git revision
  • 61e1fd7ea0703c9e2096f6fae310df4cdb659c57
  • master default protected
  • datepicker-non-cdn
  • dev-and-graphics
  • readable-ak-times
  • feature-constraint-checking-wip
  • feature-constraint-checking
7 results

setup.sh

Blame
  • Forked from KIF / AKPlanning
    1120 commits behind the upstream repository.
    Benjamin Hättasch's avatar
    Benjamin Hättasch authored
    Adapt settings
    Add i18n urls to central url conf
    Add language chooser to base.html
    Adapt readme and utils
    61e1fd7e
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    setup.sh 636 B
    #!/usr/bin/env bash
    # Setup AKPlanning
    # execute as Utils/check.sh
    
    # abort on error, print executed commands
    set -ex
    
    # remove old virtualenv
    rm -rf env/
    
    # Setup Python Environment
    # Requires: Virtualenv, appropriate Python installation
    virtualenv env -p python3.7
    source env/bin/activate
    pip install --upgrade setuptools pip wheel
    pip install -r requirements.txt
    
    # Setup database
    python manage.py migrate
    
    # Prepare static files and translations
    python manage.py collectstatic --noinput
    python manage.py compilemessages
    
    # Create superuser
    # Credentials are entered interactively on CLI
    python manage.py createsuperuser
    
    deactivate