Group project for university.
- Python >= 3.4 https://www.python.org/downloads/
- Git https://confluence.atlassian.com/bitbucket/set-up-git-744723531.html
-
Clone the repository and change into it:
git clone https://github.com/leyyin/university-PC.git && cd university-PC
-
Create virtual environment:
virtualenv -p /usr/bin/python3 env
-
Activate environment:
source env/bin/activate
-
Install requirements:
pip install -r requirements.txt
See Common steps
below.
It is recommend to use the PowerShell command line in windows. (included by default from Windows 7)
-
Clone repository http://www.thegeekstuff.com/2012/02/git-for-windows/ and change into it with PowerShell.
-
Create virtual environment:
python3 -m venv env
-
Activate environment (assumes you have PowerShell, if not see alternatives):
env/Scripts/Activate.ps1
-
Install requirements:
pip install -r requirements.txt
See Common steps
below.
-
Copy
elearning/settings_local.EXAMPLE.py
toelearning/settings_local.py
and edit the settings to match your environment:cp elearning/settings_local.EXAMPLE.py elearning/settings_local.py
-
Create your database tables and insert default data (you must do this every time you change the models):
python manage.py init
WARNING!!! Be sure your virtual environment is activated.
Command:
python manage.py runserver_plus
Run python manage.py reset_db
Run python manage.py shell_plus
Run python manage.py createsuperuser --username=root --email=example@example.com
As the error itself displays (error is self-explanatory). Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
See Django 1.8 docs https://docs.djangoproject.com/en/1.8/ and the specification from the doc/
directory inside this
repository.