(;) Semicolon Math is a platform that offers math contests every month with 2 easy, 2 medium, and 2 hard AIME level problems. The format is similar to contests you will find on some competitive programming contests. https://scmath.herokuapp.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
713 B

from django.shortcuts import render, redirect
from django.contrib.auth import views as auth_views
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.decorators import login_required
from django.contrib import messages
def register(request):
if request.method == 'POST':
form = UserCreationForm(request.POST)
if form.is_valid():
messages.success(request, 'Account created! You can login now')
return redirect('login')
form = UserCreationForm()
return render(request, 'users/register.html', {'form': form})
def profile(request):
return render(request, 'users/profile.html')