Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.13 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.13 KB

SMS

Setting Up Backend

Setup PostgreSQL

Create a python3 virtual environment

python3 -m venv sms19-env
source env/bin/activate
pip install -r requirements.txt

Apply Migrations

python manage.py makemigrations
python manage.py makemigrations main
python manage.py migrate
python manage.py migrate main

Create a superuser for Django

python manage.py createsuperuser

Run the server

python manage.py runserver 0.0.0.0:8000

Verify that the Server being used is MySql

./manage.py shell
>>> from django.db import connection
>>> connection.vendor

Note

  • Migrate after every pull from the repository

Contribution

  • Please raise issues if the above procedure does not work for your system.
  • Feel free to make necessary changes.
  • Please migrate before running the server.