from django.shortcuts import render
from .models import Dpt_model
from .download import convert

def index(request):
    if request.method == "POST":
        dept = request.POST['department']
        fac = request.POST['faculty']

        model  =Dpt_model()
        model.department = dept
        model.faculties = fac
        # model.save()
        convert()
        print("success")
        return render(request,'home.html')
        
        
    return render(request,'home.html')

4c9dc58c6b7523644d1bd45d6c50774b753a9a7f
<mask token>

<mask token>


def index(request):
    if request.method == 'POST':
        dept = request.POST['department']
        fac = request.POST['faculty']
        model = Dpt_model()
        model.department = dept
        model.faculties = fac
        convert()
        print('success')
        return render(request, 'home.html')
    return render(request, 'home.html')

from django.shortcuts import render
from .models import Dpt_model
from .download import convert


def index(request):
    if request.method == 'POST':
        dept = request.POST['department']
        fac = request.POST['faculty']
        model = Dpt_model()
        model.department = dept
        model.faculties = fac
        convert()
        print('success')
        return render(request, 'home.html')
    return render(request, 'home.html')

from django.shortcuts import render
from .models import Dpt_model
from .download import convert

def index(request):
    if request.method == "POST":
        dept = request.POST['department']
        fac = request.POST['faculty']

        model  =Dpt_model()
        model.department = dept
        model.faculties = fac
        # model.save()
        convert()
        print("success")
        return render(request,'home.html')
        
        
    return render(request,'home.html')
