Skip to content

Commit

Permalink
Fix date birth input
Browse files Browse the repository at this point in the history
  • Loading branch information
ksamnole committed Jun 20, 2021
1 parent 037425b commit d60afef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assessor/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get('SECRET_KEY')
DEBUG = False
DEBUG = int(os.environ.get("DEBUG", default=0))
# 'DJANGO_ALLOWED_HOSTS' должен быть в виде одной строки с хостами разделенными символом пробела
# Для примера: 'DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]'
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS").split(' ')
Expand Down
3 changes: 1 addition & 2 deletions main/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class Meta:
'class': 'form-control',
'placeholder': '01.01.1999',
'type': 'date',
'min': '1900-01-01',
'value': '1900-01-01'
'min': '1900-01-01'
}),
'city': TextInput(attrs={
'class': 'form-control',
Expand Down

0 comments on commit d60afef

Please sign in to comment.