This is an API that contains the main functions. This will be forked into our main backend project.
Here is the overview of the repository's structure.
.
├── _main
│ ├── __init__.py
│ ├── __pycache__
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── .gitignore
├── LICENSE
├── manage.py
├── README.md
├── requirement.txt
└── <your-apps-directory>
Let's start this learn by creating your virtual environment (venv). Please refer to this link to see how to make it: https://gist.github.com/ryumada/c22133988fd1c22a66e4ed1b23eca233
pip install -r requirement.txt
django-admin startapp app-name
Register the package you want to use and the application you've created on settings.py
inside the _main
directory. Then find the INSTALLED_APPS
variable and insert the package name as the value.
python3 manage.py migrate
python3 manage.py createsuperuser --email admin@example.com --username admin
This is used to follow pep 8 coding standards.
autopep8 --recursive --in-place --aggressive tokens