Django Project Guide
Django Project Guide
Ensure you have Python installed (preferably 3.8+). Then, install Django using pip:
Example:
myproject/
- manage.py
- myproject/
- __init__.py
- settings.py
- urls.py
- asgi.py
- wsgi.py
cd myproject
Step 4: Run the Development Server
Open a browser and go to http://127.0.0.1:8000/, and you should see the Django welcome page.
Example:
blog/
- migrations/
- __init__.py
- admin.py
- apps.py
- models.py
- tests.py
- views.py
Step 6: Register the App in settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',