- Open an empty project file in Visual Studio Code
- First, create python virtual environment by following the steps shown on this website: https://sourabhbajaj.com/mac-setup/Python/virtualenv.html
- Activate python virtual environment: source venv/bin/activate
- Install Django: pip install Django
- Install Django Rest Framework: pip install djangorestframework
- To create a project in Django: django-admin startproject FYPRecordingApp
- Change directories to FYPRecordingApp: cd FYPRecordingApp
- Run the development server: python manage.py runserver
- To create app, write: python manage.py startapp “appname”
- To create Django superuser: python manage.py createsuperuser
- To make a database, create model in the models.py
- If any changes are made to models, serializers, view, e.t.c, migrate changes into the Django development server by following these two commands: python manage.py makemigrations and python manage.py migrate
- To use your external IP addres, first add your IP addres to ALLOWED_HOSTS in settings.py
- cd into your directory and run the following command to start the development server on your external IP addres: python manage.py runserver 116.86.130.58:8000 (replace the IP address with your own)