initial project
This commit is contained in:
commit
e1b5e95e0e
19 changed files with 289 additions and 0 deletions
0
source/apps/ctf/__init__.py
Normal file
0
source/apps/ctf/__init__.py
Normal file
3
source/apps/ctf/admin.py
Normal file
3
source/apps/ctf/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
source/apps/ctf/apps.py
Normal file
6
source/apps/ctf/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class CtfConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'apps.ctf'
|
0
source/apps/ctf/migrations/__init__.py
Normal file
0
source/apps/ctf/migrations/__init__.py
Normal file
3
source/apps/ctf/models.py
Normal file
3
source/apps/ctf/models.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
13
source/apps/ctf/templates/ctf/base/base.html
Normal file
13
source/apps/ctf/templates/ctf/base/base.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
{% block head %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
7
source/apps/ctf/templates/ctf/homepage.html
Normal file
7
source/apps/ctf/templates/ctf/homepage.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% extends "ctf/base/base.html" %}
|
||||
|
||||
{% block title %}Homepage{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
Homepage
|
||||
{% endblock %}
|
3
source/apps/ctf/tests.py
Normal file
3
source/apps/ctf/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
7
source/apps/ctf/urls.py
Normal file
7
source/apps/ctf/urls.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from django.urls import path
|
||||
|
||||
from source.apps.ctf import views
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.homepage, name='homepage'),
|
||||
]
|
5
source/apps/ctf/views.py
Normal file
5
source/apps/ctf/views.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
async def homepage(request):
|
||||
return render(request, "ctf/homepage.html")
|
Loading…
Add table
Add a link
Reference in a new issue