initial
This commit is contained in:
0
django_project/default/__init__.py
Normal file
0
django_project/default/__init__.py
Normal file
3
django_project/default/admin.py
Normal file
3
django_project/default/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
django_project/default/apps.py
Normal file
6
django_project/default/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DefaultConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'default'
|
0
django_project/default/migrations/__init__.py
Normal file
0
django_project/default/migrations/__init__.py
Normal file
3
django_project/default/models.py
Normal file
3
django_project/default/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
5
django_project/default/templates/about.html
Normal file
5
django_project/default/templates/about.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>About HV3</h1>
|
||||
{% endblock content %}
|
5
django_project/default/templates/home.html
Normal file
5
django_project/default/templates/home.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>HV3</h1>
|
||||
{% endblock content %}
|
3
django_project/default/tests.py
Normal file
3
django_project/default/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
8
django_project/default/urls.py
Normal file
8
django_project/default/urls.py
Normal file
@ -0,0 +1,8 @@
|
||||
from django.urls import path
|
||||
from .views import HomePageView, AboutPageView
|
||||
|
||||
urlpatterns = [
|
||||
path("", HomePageView.as_view(), name="home"),
|
||||
path("about/", AboutPageView.as_view(), name="about"),
|
||||
]
|
||||
|
9
django_project/default/views.py
Normal file
9
django_project/default/views.py
Normal file
@ -0,0 +1,9 @@
|
||||
from django.shortcuts import render
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
# Create your views here.
|
||||
class HomePageView(TemplateView):
|
||||
template_name = "home.html"
|
||||
|
||||
class AboutPageView(TemplateView):
|
||||
template_name = "about.html"
|
Reference in New Issue
Block a user