This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SplitDateInput(forms.MultiWidget): | |
""" | |
Виджет для ввода даты с 3 полями. | |
""" | |
def __init__(self, attrs=None): | |
widgets = [ | |
forms.TextInput(attrs=attrs), # день | |
forms.Select(attrs=attrs, choices=MONTHS.items()), # месяц | |
forms.TextInput(attrs=attrs), # год | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y install git | |
sudo apt-get -y install curl | |
sudo apt-get -y install postgresql | |
sudo apt-get -y install libpq-dev | |
sudo apt-get -y install python-dev | |
sudo apt-get -y install libjpeg8-dev | |
sudo apt-get -y install libfreetype6-dev | |
curl http://python-distribute.org/distribute_setup.py | sudo python | |
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python |
NewerOlder