This project is based on the W3Schools Django tutorial and demonstrates how to create web applications using Django.
# Create a virtual environment
python -m venv myenv
# Activate the virtual environment
# Windows
myenv\Scripts\activate.bat
# Unix/MacOS
source myenv/bin/activate
pip install django
django-admin startproject myproject
cd myproject
python manage.py startapp myapp
Edit the settings.py
file inside myproject
directory and add myapp
:
INSTALLED_APPS = [
...
'myapp',
]
python manage.py migrate
python manage.py runserver
Now, open your browser and go to http://127.0.0.1:8000/
.
For more details, visit the W3Schools Django tutorial. 😊