from django.shortcuts import render
from .form import UserRegister
# Create your views here.
def dashboard(request):
    if(request.method=='POST'):
        fm=UserRegister()
        if fm.is_valid():
            fm.save()
    else:
        fm=UserRegister()
        return render(request,'dashboard/addUser.html',{'form':fm})


d5e85401caa63b47537be5afd709a019c404f4e4
<mask token>

<mask token>


def dashboard(request):
    if request.method == 'POST':
        fm = UserRegister()
        if fm.is_valid():
            fm.save()
    else:
        fm = UserRegister()
        return render(request, 'dashboard/addUser.html', {'form': fm})

from django.shortcuts import render
from .form import UserRegister


def dashboard(request):
    if request.method == 'POST':
        fm = UserRegister()
        if fm.is_valid():
            fm.save()
    else:
        fm = UserRegister()
        return render(request, 'dashboard/addUser.html', {'form': fm})

from django.shortcuts import render
from .form import UserRegister
# Create your views here.
def dashboard(request):
    if(request.method=='POST'):
        fm=UserRegister()
        if fm.is_valid():
            fm.save()
    else:
        fm=UserRegister()
        return render(request,'dashboard/addUser.html',{'form':fm})

