Skip to content

andrewjward/Django-One-Shot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django One-Shot

Complete the project specs from Learn.

Optional Debugging Tool Setup:

Install Django Debug Toolbar

This toolbar will help you have visibility such as over your context in templates and the queries that are running to get your model data.

https://django-debug-toolbar.readthedocs.io/en/latest/

Pip Install

python -m pip install django-debug-toolbar

Install the App

Add "debug_toolbar" to your INSTALLED_APPS setting:

INSTALLED_APPS = [
    # ...
    "debug_toolbar",
    # ...
]

Add to urls

Add django-debug-toolbar’s URLs to your project’s URLconf urls.py:

from django.urls import include, path

urlpatterns = [
    # ...
    path('__debug__/', include('debug_toolbar.urls')),
]

Add to MIDDLEWARE

Add it to your MIDDLEWARE setting in settings.py:

MIDDLEWARE = [
    # ...
    "debug_toolbar.middleware.DebugToolbarMiddleware",
    # ...
]

Add to INTERNAL_IPS

Add the following to settings.py:

INTERNAL_IPS = [
    # ...
    "127.0.0.1",
    # ...
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors