(request)
return redirect(reverse("project_edit", kwargs=dict(uid=project.uid)))
View used create an empty project belonging to request.user.
    Input is validated with a form and actual creation is routed through auth.create_project.
View used create an empty project belonging to request.user.
    Input is validated with a form and actual creation is routed through auth.create_project.
View used create an empty project belonging to request . user . Input is validated with a form and actual creation is routed through auth . create_project .
def project_create(request):
    """
    View used create an empty project belonging to request.user.
    Input is validated with a form and actual creation is routed through auth.create_project.
    """
    user = request.user
    project = auth.create_project(user=user, text="Project information goes here. ", name="Project")

    # Ensure project name is unique.
    project.name = f"{project.name} {project.id}"
    project.text = f"Add more information on {project.name}"
    project.save()

    messages.success(request, "A new project has been created. Please set the project details")
    return redirect(reverse("project_edit", kwargs=dict(uid=project.uid)))
def project_create ( request ) : user = request . user project = auth . create_project ( user = user , text = "Project information goes here. " , name = "Project" ) # Ensure project name is unique. project . name = f"{project.name} {project.id}" project . text = f"Add more information on {project.name}" project . save ( ) messages . success ( request , "A new project has been created. Please set the project details" ) return redirect ( reverse ( "project_edit" , kwargs = dict ( uid = project . uid ) ) )