diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2023-12-04 07:28:02 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2023-12-29 07:29:12 +0100 |
commit | 0a56d27c3b0f590e0eef85666bb0d10d36041089 (patch) | |
tree | 22fb8c828ddf05919a2b19fa010f30a3be95e667 /rrd | |
parent | baf3dc2691ea92ffb09ba107cb7abf2bb737122a (diff) |
basic django project
Diffstat (limited to 'rrd')
-rw-r--r-- | rrd/__init__.py | 0 | ||||
-rw-r--r-- | rrd/admin.py | 3 | ||||
-rw-r--r-- | rrd/apps.py | 6 | ||||
-rw-r--r-- | rrd/migrations/__init__.py | 0 | ||||
-rw-r--r-- | rrd/models.py | 3 | ||||
-rw-r--r-- | rrd/tests.py | 3 | ||||
-rw-r--r-- | rrd/urls.py | 7 | ||||
-rw-r--r-- | rrd/views.py | 7 |
8 files changed, 29 insertions, 0 deletions
diff --git a/rrd/__init__.py b/rrd/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rrd/__init__.py 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 --- /dev/null +++ b/rrd/migrations/__init__.py 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") |