Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.19 KB

Install_instructions.md

File metadata and controls

37 lines (28 loc) · 1.19 KB

Install instructions

Walk through

  1. Install python 2.7 or 3.X if not already installed
  2. Install pip, if not already installed
  3. Make sure python and pip are in your path
  4. clone or download the repo from gituhub
  5. cd into the folder where manage.py is located

NOTE: You can use virtualenv if you want, or just install the requirements anyways.

  1. Run pip install -r requirements.txt to install the requirements
  2. Get the database setup with defaults:
  • python manage.py makemigrations
  • python manage.py migrate
  • python manage.py loaddata contenttypes admin auth dashboard sessions
  • sudo python manage.py collectstatic
  1. Start the server:
  • You could use nginx or apache
  • or, just run python manage.py runserver 0.0.0.0:8000
    • You can specify any port. It doesn't have to be 8000
  • or, uwsgi --http :8000 --module my_dashboard.wsgi if you are using MacOS or linux
  1. Navigate to localhost:8000
  2. Enjoy!

If you would like to run this site as public facing (i.e. can access it from work) you will need to add the hostname or IP to the ALLOWED_HOST section of /my_dashboard/settings.py and maybe some DNS stuff

EXAMPLE:

ALLOWED_HOSTS = { 'REPLACE_WITH_HOSTNAME_OR_IP', }