Prosjektarbeid IT1901 H17
Django 1.11.3
Python 3.6.2
Argon2 password hasher (skriv 'pip install django[argon2]' i terminal)
BCrypt password hasher ('skriv pip install bcrypt' i terminal)
- Go to https://www.anaconda.com/download/
- Download Python 3.6 version for appropriate platform
- In terminal type 'conda install django', follow instructions given in shell, this should install everything you need
- Clone project into your folder
- To start up site on you computer go project root in terminal. Type python manage.py runserver
- Set project root to the first directory in this project named festival to avoid unresolved reference errors
- Set project interpreter to the python version previously downloaded with anaconda
All html pages should extend base.html All html pages are placed into the directory named templates All static files (css/js/images etc) are placed into the corresponding subdirectory of directory named static Views are linked to in each app, each apps view is included in the projects root file urls.py
pip install virtualenvwrapper
git clone https://github.com/Mikkel94/IT1901-prosjekt.git
cd IT1901-prosjekt
mkvirtualenv festival
workon festival
pip install -r requirements.txt
- Follow guide above to setup environment
- In django root folder:
- python manage.py makemigrations
- python manage.py migrate
- python manage.py loaddata init
- Go to url: localhost:8000/admin
- Log in with usr: Admin, pw: Test123test
- Go to Employees model here, and you will see all the usernames you can use, names correspond to their position as workers at the festival.
- All passwords are Test123test. 7 More info about the database that is also readable is in the file init.json.