Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Django-site
Django-site
Help Me
Looking For Suggestions
18 changes: 18 additions & 0 deletions myCalendar/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,21 @@ def short(self):

class Meta:
verbose_name_plural = "entries"
TestMode = True
def some_function():
global TestMode
TestMode = False
some_function()
print(TestMode) <--Returns False
var_one = 123
def func_one(var_one):
var_one = 234
var_three = 'abc'

var_two = 456


def func_two():
var_four = 123
print(dir())
func_two()
3 changes: 2 additions & 1 deletion polls/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def was_published_recently(self):

class Choice(models.Model):
question = models.ForeignKey(Question)
choice_text = models.CharField(max_length=200)
choice_textmax = models.CharField(max_length=200)
choice_textmin = models.CharField(min_length=200)
votes = models.IntegerField(default=0)

def __str__(self):
Expand Down