From 8562ea5e80d31ab119887950cc9782527d3fd062 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Thu, 10 Feb 2022 19:16:28 +1100 Subject: [PATCH] heh broke my site by forgetting to git add again --- .gitignore | 3 ++- comment/__init__.py | 0 comment/admin.py | 3 +++ comment/apps.py | 6 ++++++ comment/migrations/__init__.py | 0 comment/models.py | 3 +++ comment/tests.py | 3 +++ comment/urls.py | 7 +++++++ comment/views.py | 11 +++++++++++ 9 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 comment/__init__.py create mode 100644 comment/admin.py create mode 100644 comment/apps.py create mode 100644 comment/migrations/__init__.py create mode 100644 comment/models.py create mode 100644 comment/tests.py create mode 100644 comment/urls.py create mode 100644 comment/views.py diff --git a/.gitignore b/.gitignore index 3638ff1..4d42670 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,7 @@ cover/ local_settings.py db.sqlite3 db.sqlite3-journal +migrations/ # Flask stuff: instance/ @@ -138,4 +139,4 @@ dmypy.json # Cython debug symbols cython_debug/ -rakka.conf \ No newline at end of file +rakka.conf diff --git a/comment/__init__.py b/comment/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/comment/admin.py b/comment/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/comment/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/comment/apps.py b/comment/apps.py new file mode 100644 index 0000000..c364f39 --- /dev/null +++ b/comment/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class CommentConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'comment' diff --git a/comment/migrations/__init__.py b/comment/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/comment/models.py b/comment/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/comment/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/comment/tests.py b/comment/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/comment/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/comment/urls.py b/comment/urls.py new file mode 100644 index 0000000..9ea9165 --- /dev/null +++ b/comment/urls.py @@ -0,0 +1,7 @@ +from django.urls import include, path +from . import views + +urlpatterns=[ + path('',views.look,name='look'), + path('new',views.submit,name='new'), +] \ No newline at end of file diff --git a/comment/views.py b/comment/views.py new file mode 100644 index 0000000..6ab0384 --- /dev/null +++ b/comment/views.py @@ -0,0 +1,11 @@ +from django.shortcuts import render +from rakka.utils import rerender +# Create your views here. + +@rerender +def look(): + pass + +@rerender +def submit(): + pass \ No newline at end of file