-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from stuartmaxwell:debugging-app
Debugging-app
- Loading branch information
Showing
9 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Debugging app.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""App configuration for debugging_app.""" | ||
|
||
from django.apps import AppConfig | ||
|
||
|
||
class DebuggingAppConfig(AppConfig): | ||
"""App configuration.""" | ||
|
||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "debugging_app" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
|
||
{% block title %}Debugging App{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<h1>Debugging App</h1> | ||
<div class="highlight"> | ||
<pre><code style="padding: 0">{% for key, value in request.META.items %}<span class="k">{{ key }}</span><span class="p">: </span><span class="s2">{{ value }}</span> | ||
{% endfor %}</code></pre> | ||
</div> | ||
|
||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"""URLs for debugging app.""" | ||
|
||
from django.conf import settings | ||
from django.urls import path | ||
|
||
from debugging_app.views import debugging_app | ||
|
||
app_name = "debugging_app" | ||
|
||
urlpatterns = [ | ||
path(settings.DEBUGGING_APP_PATH, debugging_app, name="debugging_app"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""Views for the debugging_app app.""" | ||
|
||
from django.http import HttpRequest, HttpResponse | ||
from django.shortcuts import render | ||
|
||
|
||
def debugging_app(request: HttpRequest) -> HttpResponse: | ||
"""View function for the debugging page.""" | ||
context = {"meta": request.META} | ||
return render(request, "debugging_app/debugging.html", context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters