把Accessories也弄成一个model,以便在manage.py shell里引用
This commit is contained in:
1
Accessories/__init__.py
Normal file
1
Accessories/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
__author__ = 'root'
|
||||||
@@ -5,5 +5,5 @@ django.setup()
|
|||||||
def add_exist_problem_to_contest(problems, contest_id):
|
def add_exist_problem_to_contest(problems, contest_id):
|
||||||
for problem in problems:
|
for problem in problems:
|
||||||
print problem.title
|
print problem.title
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user