From 0a56d27c3b0f590e0eef85666bb0d10d36041089 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Mon, 4 Dec 2023 07:28:02 +0100 Subject: basic django project --- rrd/__init__.py | 0 rrd/admin.py | 3 +++ rrd/apps.py | 6 ++++++ rrd/migrations/__init__.py | 0 rrd/models.py | 3 +++ rrd/tests.py | 3 +++ rrd/urls.py | 7 +++++++ rrd/views.py | 7 +++++++ 8 files changed, 29 insertions(+) create mode 100644 rrd/__init__.py create mode 100644 rrd/admin.py create mode 100644 rrd/apps.py create mode 100644 rrd/migrations/__init__.py create mode 100644 rrd/models.py create mode 100644 rrd/tests.py create mode 100644 rrd/urls.py create mode 100644 rrd/views.py (limited to 'rrd') diff --git a/rrd/__init__.py b/rrd/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/rrd/admin.py b/rrd/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/rrd/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/rrd/apps.py b/rrd/apps.py new file mode 100644 index 0000000..ef97edc --- /dev/null +++ b/rrd/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class RrdConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'rrd' diff --git a/rrd/migrations/__init__.py b/rrd/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/rrd/models.py b/rrd/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/rrd/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/rrd/tests.py b/rrd/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/rrd/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/rrd/urls.py b/rrd/urls.py new file mode 100644 index 0000000..5119061 --- /dev/null +++ b/rrd/urls.py @@ -0,0 +1,7 @@ +from django.urls import path + +from . import views + +urlpatterns = [ + path("", views.index, name="index"), +] diff --git a/rrd/views.py b/rrd/views.py new file mode 100644 index 0000000..5357b77 --- /dev/null +++ b/rrd/views.py @@ -0,0 +1,7 @@ +import django.http +from django.shortcuts import render + +# Create your views here. + +def index(request): + return django.http.HttpResponse("Hello, World") -- cgit v1.2.3