There's exactly no command that you need to achieve what you are asking
here. The "settings.py" file is a file -like the name suggests- that
contains settings for your django web application. This includes database
pointers, database credentials, applications in your site, and all those
things
def contact(request):
if request.method == 'POST':
#checks if the request method was a post, i.e. if the form has been
submitted
#and initializes the form with the data that was submitted
form = ContactForm(request.POST)
if form.is_valid():
#if form validation passed, do y
2 matches
Mail list logo