from django.conf import settings
#from django.contrib.auth.forms import UserCreationForm,
from django.shortcuts import redirect, render
from accounts.forms import SignupForm

def signup(request):
    if request.method== 'POST':
        form = SignupForm(request.POST)
        if form.is_valid():
            form.save()
            return redirect(settings.LOGIN_URL)
    else:
        form = SignupForm()
    return render(request, 'accounts/signup.html', {
        'form':form,
        })


def profile(request):
    return render(request, 'accounts/profile.html')


ea9c0f7df4aefde87b40eca06bb07f07aa4ca132
<mask token>

<mask token>


def signup(request):
    if request.method == 'POST':
        form = SignupForm(request.POST)
        if form.is_valid():
            form.save()
            return redirect(settings.LOGIN_URL)
    else:
        form = SignupForm()
    return render(request, 'accounts/signup.html', {'form': form})


<mask token>

<mask token>


def signup(request):
    if request.method == 'POST':
        form = SignupForm(request.POST)
        if form.is_valid():
            form.save()
            return redirect(settings.LOGIN_URL)
    else:
        form = SignupForm()
    return render(request, 'accounts/signup.html', {'form': form})


def profile(request):
    return render(request, 'accounts/profile.html')

from django.conf import settings
from django.shortcuts import redirect, render
from accounts.forms import SignupForm


def signup(request):
    if request.method == 'POST':
        form = SignupForm(request.POST)
        if form.is_valid():
            form.save()
            return redirect(settings.LOGIN_URL)
    else:
        form = SignupForm()
    return render(request, 'accounts/signup.html', {'form': form})


def profile(request):
    return render(request, 'accounts/profile.html')

from django.conf import settings
#from django.contrib.auth.forms import UserCreationForm,
from django.shortcuts import redirect, render
from accounts.forms import SignupForm

def signup(request):
    if request.method== 'POST':
        form = SignupForm(request.POST)
        if form.is_valid():
            form.save()
            return redirect(settings.LOGIN_URL)
    else:
        form = SignupForm()
    return render(request, 'accounts/signup.html', {
        'form':form,
        })


def profile(request):
    return render(request, 'accounts/profile.html')

