diff --git a/configuration_template b/configuration_template new file mode 100644 index 0000000..089748c --- /dev/null +++ b/configuration_template @@ -0,0 +1,5 @@ +{ +"mail_login": "", +"mail_password" : "", +"encrypt_key": "" +} \ No newline at end of file diff --git a/main.py b/main.py index 575d75b..d5db8ea 100644 --- a/main.py +++ b/main.py @@ -49,6 +49,19 @@ def base(): return redirect('/projects') +@app.route('/project//task/new') +def new_task_project(id_project): + if current_user.is_authenticated: + data_session = db_session.create_session() + current_project = data_session.query(Projects).filter(Projects.id == id_project).first() + if current_project: + pass + else: + abort(404) + else: + return redirect('/login') + + @app.route('/project//edit', methods=['GET', 'POST']) def edit_project(id_project): if current_user.is_authenticated: