added Analytics

This commit is contained in:
DerTyp187
2021-11-17 11:28:08 +01:00
parent f8ac7d60ff
commit 938859f5aa
16 changed files with 134 additions and 8 deletions

View File

View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class AnalyticsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'analytics'

View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@@ -0,0 +1,26 @@
{% load static %}
<!DOCTYPE html>
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{% static 'main/css/fonts.css' %}">
<link rel="stylesheet" href="{% static 'main/css/base.css' %}">
<title>TealCode | Analytics</title>
</head>
<body>
<header>
<h1 style="cursor:pointer;" onclick="window.open('/analytics/', '_self')">TealCode | Analytics</h1>
<div>
<a href="/">TealCode</a>
</div>
</header>
<main>
{% block content %}{% endblock %}
</main>
</body>
</html>

View File

@@ -0,0 +1,4 @@
{% extends "analytics/base.html" %}
{% block content %}
{% endblock content %}

View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@@ -0,0 +1,6 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name="analytics-index"),
]

View File

@@ -0,0 +1,4 @@
from django.shortcuts import render
def index(req):
return render(req, 'analytics/index.html')