<filename>Projects/basicforms/basicapp/views.py
from django.shortcuts import render
from basicapp import forms

def index(request):
    return render(request, 'basicapp/index.html')

def form_name_view(request):
    form = forms.FormName()

    if request.method == "POST":
        form = forms.FormName(request.POST)
        if form.is_valid():
            # Print to console
            print("Form validated successfully")
            print("name: ", form.cleaned_data["name"])
            print("email: ", form.cleaned_data["email"])
            print("text: ", form.cleaned_data["text"])

    return render(request, 'basicapp/form_page.html', {'form': form})

<filename>Projects/basicforms/basicapp/views.py
from django.shortcuts import render
from basicapp import forms

def index(request):
    return render(request, 'basicapp/index.html')

def form_name_view(request):
    form = forms.FormName()

    if request.method == "POST":
        form = forms.FormName(request.POST)
        if form.is_valid():
            # Print to console
            print("Form validated successfully")
            print("name: ", form.cleaned_data["name"])
            print("email: ", form.cleaned_data["email"])
            print("text: ", form.cleaned_data["text"])

    return render(request, 'basicapp/form_page.html', {'form': form})

# Print to console