def initialize_database(request): database = DB() database.initialization() # User.objects.initialize() # Product.objects.initialize() # Department.objects.initialize() return redirect('/')
def initializeDatabase(request): database = DB() database.initialization() return redirect(reverse('index')+ '?message=Database initialized')