Add contact app

This commit is contained in:
Nyymix 2025-02-02 20:27:04 +02:00
parent 467f2396ca
commit 875c2c63d5
12 changed files with 43 additions and 2 deletions

0
contact/__init__.py Normal file
View file

3
contact/admin.py Normal file
View file

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

6
contact/apps.py Normal file
View file

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

View file

3
contact/models.py Normal file
View file

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

View file

@ -0,0 +1,9 @@
{% extends "base_dark.html" %}
<!-- Title -->
{% block title %} Gallery : Contact {% endblock %}
<!-- Content -->
{% block content %}
Contact me!
{% endblock %}

3
contact/tests.py Normal file
View file

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

9
contact/urls.py Normal file
View file

@ -0,0 +1,9 @@
from django.urls import path
from . import views
app_name = 'contact'
urlpatterns = [
path('', views.Main.as_view(), name='main_url'),
]

6
contact/views.py Normal file
View file

@ -0,0 +1,6 @@
from django.shortcuts import render
from django.views.generic import TemplateView
class Main(TemplateView):
template_name = "contact/main.html"