Start main app
This commit is contained in:
parent
eab48b216e
commit
64576a7f09
10 changed files with 31 additions and 1 deletions
0
main/__init__.py
Normal file
0
main/__init__.py
Normal file
3
main/admin.py
Normal file
3
main/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
main/apps.py
Normal file
6
main/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class MainConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'main'
|
0
main/migrations/__init__.py
Normal file
0
main/migrations/__init__.py
Normal file
3
main/models.py
Normal file
3
main/models.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
main/tests.py
Normal file
3
main/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
7
main/urls.py
Normal file
7
main/urls.py
Normal 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
6
main/views.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.http import HttpResponse
|
||||
from django.shortcuts import render
|
||||
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("Hello, world.")
|
Loading…
Add table
Add a link
Reference in a new issue