mirror of
https://github.com/DerTyp7/tealcode-django-python.git
synced 2025-10-30 20:57:07 +01:00
added Analytics
This commit is contained in:
0
TealCode/analytics/__init__.py
Normal file
0
TealCode/analytics/__init__.py
Normal file
3
TealCode/analytics/admin.py
Normal file
3
TealCode/analytics/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
TealCode/analytics/apps.py
Normal file
6
TealCode/analytics/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class AnalyticsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'analytics'
|
||||
0
TealCode/analytics/migrations/__init__.py
Normal file
0
TealCode/analytics/migrations/__init__.py
Normal file
3
TealCode/analytics/models.py
Normal file
3
TealCode/analytics/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
0
TealCode/analytics/static/analytics/base.css
Normal file
0
TealCode/analytics/static/analytics/base.css
Normal file
26
TealCode/analytics/templates/analytics/base.html
Normal file
26
TealCode/analytics/templates/analytics/base.html
Normal 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>
|
||||
4
TealCode/analytics/templates/analytics/index.html
Normal file
4
TealCode/analytics/templates/analytics/index.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{% extends "analytics/base.html" %}
|
||||
{% block content %}
|
||||
|
||||
{% endblock content %}
|
||||
3
TealCode/analytics/tests.py
Normal file
3
TealCode/analytics/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
6
TealCode/analytics/urls.py
Normal file
6
TealCode/analytics/urls.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.index, name="analytics-index"),
|
||||
]
|
||||
4
TealCode/analytics/views.py
Normal file
4
TealCode/analytics/views.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
def index(req):
|
||||
return render(req, 'analytics/index.html')
|
||||
Reference in New Issue
Block a user