Start main app

This commit is contained in:
Nyymix 2025-08-09 18:25:13 +03:00
parent eab48b216e
commit 64576a7f09
10 changed files with 31 additions and 1 deletions

0
main/__init__.py Normal file
View file

3
main/admin.py Normal file
View file

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

6
main/apps.py Normal file
View file

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

View file

3
main/models.py Normal file
View file

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

3
main/tests.py Normal file
View file

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

7
main/urls.py Normal file
View file

@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
]

6
main/views.py Normal file
View file

@ -0,0 +1,6 @@
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return HttpResponse("Hello, world.")