Skip to content

This project is based on the W3Schools Django tutorial and demonstrates how to create web applications using Django.

License

Notifications You must be signed in to change notification settings

whdev36/django-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Tutorial

This project is based on the W3Schools Django tutorial and demonstrates how to create web applications using Django.

Getting Started

1. Create and Activate a Virtual Environment

# Create a virtual environment
python -m venv myenv

# Activate the virtual environment
# Windows
myenv\Scripts\activate.bat

# Unix/MacOS
source myenv/bin/activate

2. Install Django

pip install django

3. Create a Django Project

django-admin startproject myproject
cd myproject

4. Create an App

python manage.py startapp myapp

5. Add the App to Installed Apps

Edit the settings.py file inside myproject directory and add myapp:

INSTALLED_APPS = [
    ...
    'myapp',
]

6. Apply Migrations

python manage.py migrate

7. Run the Development Server

python manage.py runserver

Now, open your browser and go to http://127.0.0.1:8000/.

Additional Resources

For more details, visit the W3Schools Django tutorial. 😊

About

This project is based on the W3Schools Django tutorial and demonstrates how to create web applications using Django.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published