Chapter3.1 Our First Django App, and Our First Unit Test

This commit is contained in:
Jason Zhu 2020-10-15 17:43:46 +11:00
parent 76a8bf8aed
commit 4671fcd24d
7 changed files with 17 additions and 0 deletions

0
src/lists/__init__.py Normal file
View File

3
src/lists/admin.py Normal file
View File

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

5
src/lists/apps.py Normal file
View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class ListsConfig(AppConfig):
name = 'lists'

View File

3
src/lists/models.py Normal file
View File

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

3
src/lists/tests.py Normal file
View File

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

3
src/lists/views.py Normal file
View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.