Skip to content
Snippets Groups Projects
Commit 91fc4ad7 authored by Felix Chadwick-Smith's avatar Felix Chadwick-Smith
Browse files

Merge branch 'master' into 'main'

modified the add_project route in your Flask application to include flash...

See merge request !24
parents 69020cec 2459122c
No related branches found
No related tags found
1 merge request!24modified the add_project route in your Flask application to include flash...
......@@ -67,11 +67,11 @@ def add_project():
new_project = Project(title=title, description=description)
db.session.add(new_project)
db.session.commit()
return redirect(url_for('Home'))
return render_template('add_project.html', form=form) # Pass the form to the template
flash('Project added successfully!', 'success') # Flash success message
return redirect(url_for('home'))
return render_template('add_project.html', form=form)
# Updated route for serving the 'my-cv.docx' file
@app.route('/download_cv')
def download_cv():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment