-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
(commands are assuming Ubuntu. translate apt-get and systemctl to the equivalents for other distros)
(I likely forgot some things, please add on)
Python 3.6 sudo apt-get install python3
MySQL: sudo apt-get install mysql-server
* Will prompt for a root password while setting up, this is optional
Pip: sudo apt-get install python3-pip
Django my complain without these:
sudo apt-get install libmysqlclient-dev
pip3 install mysqlclient
Run sudo pip3 install -r requirements.txt
in the root directory of the project to automatically install all required python libraries
Enable and start mysql server:
sudo systemctl enable mysqld
sudo systemctl start mysqld
Run mysql: sudo mysql -u root -p
Create database in mysql: CREATE DATABASE BlueDawnAnalysis;
Run migrations (initialize the database): ./manage.py migrate
Database settings are contained in the file website/settings.py. Here you can change any information that is needed for you locally, like password for mysql.
./manage.py runserver
: Run the server. Website can be accessed on 127.0.0.1:8000 or localhost:8000.
./managepy createsuperuser
: Create a superuser account on the website.