Django Project Creation Guide (3)
Django Project Creation Guide (3)
Before starting, create a folder to keep all project files organized. You can
name it anything you like. For example:
● On Linux/Mac (Terminal):
mkdir my_django_project
● cd my_django_project
Django projects are composed of apps. Create an app within the project:
This will generate a new app named yaapiyal within the project.
This file ensures Django runs properly on Google App Engine. Create
main.py and add the following:
This file tells Google App Engine how to run the project. Create app.yaml
and add:
● runtime: python39
● git --version
If not installed:
● Ubuntu/Debian:
sudo apt update && sudo apt install git
● Mac:
brew install git
● Windows: Download from git-scm.com
● cd /path/to/your/django/app
● touch .gitignore
# Python
*.pyc
*.pyo
__pycache__/
# Environment
.env
*.env
# Logs
*.log
# IDEs/Editors
.vscode/
.idea/
# Others
.DS_Store
# Django
/static/
/media/