- Install mysql server
sudo apt-get install mysql-server
-
Create a user in mysql. How to create a new user on mysql and grant access.
-
Install linux dependencies.
sudo apt-get install python-mysqldb libmysqlclient-dev python-dev
- Go the to the directory excel_2019_django_cms/excel_2019_django_cms and duplicate the file secret.py.example with the name secret.py and give configurations there.
- Create and activate a virtual environment
virtualenv -p python3 env
source env/bin/activate
- Install python dependencies
pip install -r requirements.txt
- Make migrations
python manage.py makemigrations
python manage.py migrate
- Run the server
python manage.py runserver
https://docs.djangoproject.com/en/2.2/
https://www.django-rest-framework.org/
https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html