-
Notifications
You must be signed in to change notification settings - Fork 3
Installation and Deployment Information
In order to run FSJAwards, you will need to install the software required by this program. Installation instructions are as follows.
Install Python3 with
sudo apt-get install python3
or install Python 2.7 with
sudo apt-get install python
Install Pip for Python3 with
sudo apt install python3-pip
or Python 2.7 with
sudo apt install python-pip
Install Django Filters for Python3 with
pip3 install django-filter
or for Python 2.7 with
pip install django-filter
Install Widget Tweaks for Python3 with
pip3 install django-widget-tweaks
or for Python 2.7 with
pip install django-widget-tweaks
Install xlwt for Python3 with
pip3 install xlwt
or for Python 2.7 with
pip install xlwt
Located in FSJ_django20_project/FSJ_django20project/
Navigate to the bottom of settings.py
Enter a gmail account into EMAIL_HOST_USER and the emails password into EMAIL_HOST_PASSWORD
Example:
EMAIL_HOST_USER = 'example@gmail.com'
EMAIL_HOST_PASSWORD = examplepassword
In order to deploy FSJAwards on a local or remote machine, please follow the steps below
Use the included manage.py file to create a migration for the relational database. Navigate to the folder containing manage.py and run the following command from the terminal
python3 manage.py makemigrations
or if you are using Python 2.7, run
python manage.py makemigrations
Migrate the changes you made with the following command
python3 manage.py migrate
or if you are using Python 2.7, run
python manage.py migrate
Create a superuser account for the site with the following command
python3 manage.py createsuperuser
or if you are using Python 2.7, run
python manage.py createsuperuser
and follow the onscreen prompts to create a superuser account
Start the server with the following command
python3 manage.py runserver
or if you are using Python 2.7, run
python manage.py runserver