创建新工程 添加了一些通用代码和数据库模型
This commit is contained in:
0
contest/__init__.py
Normal file
0
contest/__init__.py
Normal file
3
contest/admin.py
Normal file
3
contest/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
0
contest/migrations/__init__.py
Normal file
0
contest/migrations/__init__.py
Normal file
8
contest/models.py
Normal file
8
contest/models.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# coding=utf-8
|
||||
from django.db import models
|
||||
|
||||
from problem.models import AbstractProblem
|
||||
|
||||
|
||||
class ContestProblem(AbstractProblem):
|
||||
pass
|
||||
3
contest/tests.py
Normal file
3
contest/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
contest/views.py
Normal file
3
contest/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user