[Django] Make a pull-down menu

As follows

forms.py


from django import forms

CHOICE = (
	('', 'Please choose from the choices><'),
	('0', 'cute'),
	('1', 'cool'),
	('2', 'passion'),
)

def SampleForm(forms.Form):
	select = forms.ChoiceField(widget=forms.Select, choices=CHOICE)

Yes

Recommended Posts

[Django] Make a pull-down menu
Make a filter with a django template
Make a squash game
Create a Django schedule
Django drop-down menu implementation
Make a function decorator
Make a distance matrix
I'll make a password!
Start a Django project
Make a Nyan button
Make a Tetris-style game!
Make a Base64 decoder
Make the model a string on a Django HTML template
Let's make a Discord Bot.
Make a Blueqat backend ~ Part 1
Make a Blueqat backend ~ Part 2
I want to make a blog editor with django admin
Create a homepage with django
Make a Mac menu bar resident weather app with rumps!
Make a LINE BOT (chat)
Make a bookmarklet in Python
Make a fortune with Python
Make Responder a daemon (service)
Create a Django login screen
Django beginners make simple apps 4
Let's make a rock-paper-scissors game
Make a fire with kdeplot
Make a math drill print
If you know Python, you can make a web application with Django
Make a scraping app with Python + Django + AWS and change jobs
Let's make a remote rumba [Hardware]
How to make a Japanese-English translation
Make a Santa classifier from a Santa image
Let's make a remote rumba [Software]
Make a Tweet box for Pepper
Let's make a GUI with python.
Steps to create a Django project
Make a sound with Jupyter notebook
Django: Import a class from a string
Let's make a spot sale service 2
Deploy a Django application with Docker
How to make a slack bot
Let's make a breakout with wxPython
Let's make a spot sale service 1
How to make a crawler --Advanced
How to make a recursive function
Django Tips-Create a ranking site with Django-
Make C compilation a little easier
Implement a Django app on Hy
python / Make a dict from a list.
[Python] Make the function a lambda function
Make a recommender system with python
Build a web application with Django
How to make a deadman's switch
[Blender] How to make a Blender plugin
Make Flask a Cloud Native application
Let's make a graph with python! !!
Let's make a supercomputer with xCAT
How to make a crawler --Basic
Make a model iterator with PySide
Make a nice graph with plotly