Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

django forms set class

class UserLoginForm(forms.Form):
    username = forms.CharField(widget=forms.TextInput(
        attrs={
        'class':'form-control',
        'placeholder':'Username'
        }
    ))
    password = forms.CharField(widget=forms.PasswordInput(
        attrs={
        'class':'form-control',
        'placeholder':'Password'
        }
    ))
Comment

PREVIOUS NEXT
Code Example
Python :: long to_bytes python how to use it 
Python :: days of week 
Python :: pandas add days to date 
Python :: how to check if column has na python 
Python :: python sort a list of tuples 
Python :: python time.strptime milliseconds 
Python :: intall python3 in linux 
Python :: convert pandas series from str to int 
Python :: Tk.destroy arguments 
Python :: how to get size of folder python 
Python :: how to create a list from csv python 
Python :: how to make my jupyter prin full array 
Python :: pyqt5 set window icon 
Python :: what to do in python when you get pygame.Surface object is not callable 
Python :: how to put a text file into a list python 
Python :: pandas filter string contain 
Python :: pandas dataframe set datetime index 
Python :: python 2.7 ubuntu command 
Python :: numpy array with random numbers 
Python :: pandas replace nonetype with empty string 
Python :: remove first row of dataframe 
Python :: plt.plot width line 
Python :: python flask query params 
Python :: convert mp3 to wav python 
Python :: python get newest file in directory 
Python :: syntax to update sklearn 
Python :: how to generate a random number python 
Python :: remove web linnks from string python 
Python :: arrondi supérieur python 
Python :: how to send whatsapp message with python 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =