initial project

This commit is contained in:
faraphel 2025-01-23 07:53:29 +01:00
commit e1b5e95e0e
19 changed files with 289 additions and 0 deletions

View file

3
source/apps/ctf/admin.py Normal file
View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
source/apps/ctf/apps.py Normal file
View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class CtfConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'apps.ctf'

View file

View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View 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>

View 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
View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

7
source/apps/ctf/urls.py Normal file
View 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
View file

@ -0,0 +1,5 @@
from django.shortcuts import render
# Create your views here.
async def homepage(request):
return render(request, "ctf/homepage.html")