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
from django import forms | |
from django.contrib.auth.models import User | |
class SignUpForm(forms.ModelForm): | |
username = models.CharField( | |
widget=forms.EmailInput(), | |
label='Email address', | |
required=True, | |
max_length=150 | |
) |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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
# PS1='\[\e[1;92m\]\h: \W\$\[\e[0m\] ' | |
# colorize stuff | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# highlight $HOST:$PWD prompt | |
# PS1='\[\e[1m\]\h:\W\$\[\e[0m\] ' | |
#PS1="\[\033[35m\]\t\[\033[m\]-\[\033[36m\]\u:\[\033[33;1m\]\W\[\033[m\]\$ " |