Init
This commit is contained in:
0
app/app_site/__init__.py
Normal file
0
app/app_site/__init__.py
Normal file
3
app/app_site/admin.py
Normal file
3
app/app_site/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
app/app_site/apps.py
Normal file
6
app/app_site/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class AppSiteConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'app_site'
|
||||
0
app/app_site/migrations/__init__.py
Normal file
0
app/app_site/migrations/__init__.py
Normal file
3
app/app_site/models.py
Normal file
3
app/app_site/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
2
app/app_site/templates/app_site/home.html
Normal file
2
app/app_site/templates/app_site/home.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "app_site/layout.html" %}
|
||||
|
||||
2
app/app_site/templates/app_site/layout.html
Normal file
2
app/app_site/templates/app_site/layout.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
3
app/app_site/tests.py
Normal file
3
app/app_site/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
8
app/app_site/urls.py
Normal file
8
app/app_site/urls.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import HomeView
|
||||
|
||||
app_name = "app_site"
|
||||
urlpatterns = [
|
||||
path('', HomeView.as_view(), name='home'),
|
||||
]
|
||||
5
app/app_site/views.py
Normal file
5
app/app_site/views.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
class HomeView(TemplateView):
|
||||
template_name = "app_site/home.html"
|
||||
Reference in New Issue
Block a user