Peter Nguyen z5019537
Michael Thanh Tran z5062007
Tutorial Time: Tuesday 11am - 1pm
Tutor: Ali Darejeh
Python3
not installed? run:sudo apt-get install python3.6
in the terminalpip
not installed? run:sudo apt-get install python3-pip
Python3
not installed? Download at: "https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe"- Upon starting installation, click checkbox "Add Path 3.6 to PATH" to run in Command Prompt
- Open Command Prompt (Easiest through search bar) and run
python --version
, the output should bePython 3.6.8
if the installation was successful
- Install
pipenv
by runningpython -m pip install pipenv
- Go to the root directory of the project folder. run
cd .../.../capstone-project-216
(Linux) (The directory which containsrequirements.txt
)- Windows uses "\" instead of "/"
- run:
pip install -r requirements.txt
- run:
cd src
- run:
python manage.py makemigrations main
andpython manage.py makemigrations authentication
- run:
python manage.py migrate
- run:
python manage.py loaddata fixtures.json
- run:
python manage.py runserver [OPTION: --insecure]
- NOTE: 404 pages will not be handled because debug mode is currently set to
DEBUG=True
, for the sake of displaying property images when uploaded. To see how 404 pages are handled debug mode needs to be offDEBUG=False
and ran with--insecure
in the command. Staticfiles will not be served whenDEBUG = False
, since production web server takes care of these files.--insecure
mode allows to access staticfiles files during development. Follow the note below to help changeDEBUG
mode
- NOTE: 404 pages will not be handled because debug mode is currently set to
- Copy url given in the terminal and paste it in browser to open web application
- e.g. http://127.0.0.1:8000/ or something like that
Note: Database will be empty and registering accounts and listing property is needed to populate searched results, property listing and list of bookings. If the layout is plain or no images are displayed when uploaded due to DEBUG = False
, cd src
and within settings.py
, change DEBUG=FALSE
into DEBUG = TRUE
. It is currently set to off to handle 404 pages.