-
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.
- updated `pyproject.toml` - Added `dashboard` app
- Loading branch information
1 parent
44431ef
commit 4982568
Showing
10 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
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,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
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,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class DashboardConfig(AppConfig): | ||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "dashboard" |
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,3 @@ | ||
from django.db import models | ||
|
||
# Create your models here. |
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,22 @@ | ||
{% extends 'base/base_page.html' %} | ||
|
||
{% comment %} dashboard/dashboard.html {% endcomment %} | ||
|
||
{% block title %}Dashboard{% endblock title %} | ||
|
||
|
||
{% block body %} | ||
|
||
<h1>Dashboard</h1> | ||
|
||
<br> | ||
<div> | ||
<a href="{% url 'devices:group_list' %}">My Device Groups</a> | ||
</div> | ||
|
||
<br> | ||
<div> | ||
<a href="{% url 'devices:device_list' %}">My Devices</a> | ||
</div> | ||
|
||
{% endblock body %} |
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,3 @@ | ||
from django.test import TestCase | ||
|
||
# Create your tests here. |
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,11 @@ | ||
from django.urls import path | ||
|
||
|
||
from . import views | ||
|
||
|
||
app_name = "dashboard" | ||
|
||
urlpatterns = [ | ||
path("", views.DashboardView.as_view(), name="dashboard"), | ||
] |
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,9 @@ | ||
|
||
from django.shortcuts import render | ||
from django.views.generic import TemplateView | ||
|
||
# Create your views here. | ||
|
||
|
||
class DashboardView(TemplateView): | ||
template_name = "dashboard/dashboard.html" |
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,9 @@ | ||
|
||
> from django.shortcuts import render | ||
> from django.views.generic import TemplateView | ||
|
||
# Create your views here. | ||
|
||
|
||
> class DashboardView(TemplateView): | ||
> template_name = "dashboard/dashboard.html" |
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