Wrote a check in django, but enter data or something, what's the problem?

Wrote a check in django, but I enter details and nothing happens, tell me what's the problem?

Code logic
from django.shortcuts import render, redirect
from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages

def register(request):
 if request.method == "POST":
 form = UserCreationForm(request.POST)
 if form.is_valid():
 username = form.cleaned_data.get('username')
 messages.success(request, f User {username} was successfully created!')
 return redirect('blog-home')
else:
 form = UserCreationForm()
 return render(request, 'users/registration.html', {'form': form, 'title': 'user Registration'})


Code the registration page
{% extends 'blog/main.html'%}
 {% block main_sections %}
 <div class="form-sections">
 <h2>Log on</h2>
 <form method="POST">
 {% csrf_token %}
 {{ form.as_p }}
 <button type="submit" class="btn btn-outline-warning">Register</button>
</form>
</div>
 {% endblock main_sections %}


 {% block aside_news_sections %}
 <h3><b>10 facts about your health</b></h3>
 <img src="https://news.tut.by/society/640246.html" class="img-thumbnail mb-1">
 <p>When I'm worried about your health then see a lot. We present you 10 facts about your health</p>
 <a href="https://news.tut.by/society/640246.html" target="_blank">
 <button class="btn btn-warning">View</button>
</a>
 {% endblock aside_news_sections %}
March 23rd 20 at 19:06
1 answer
March 23rd 20 at 19:08
there is no form.save()

Find more questions by tags Django