pip install django django-admin startproject [project name] cd [project name] python manage.py startapp [app name] python manage.py makemigrations python manage.py migrate pip install pip-tools pip freeze touch requirements.in pip-compile --output-file=requirements.txt requirements.in pip install -r requirements.txt From here, you shouldn’t install packages using pip install
Every time you want to add a package, you need to go through the following steps:
- Add the package name to requirements.in
- Compile the requirements using
pip-compile --output-file=requirements.txt requirements.in - Install the requirements using
pip install -r requirements.txt - Commit both
requirements.txtandrequirements.into your remote repository. - By committing
requirements.txtas well asrequirements.in, you won’t have to recompile the requirements when setting up your project on another machine.
This project consist two sub projects:
- crud_app (Backend and Frontend by built in API module)
- server (Backend by using the DRF)
This project is for using the Django Rest Framework(DRF).