From 9f2ce9d7c5b74a504c2b375a5928a6518b746236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sat, 20 Feb 2016 05:18:12 +0100 Subject: [PATCH] Adding profile update functionality --- .gitignore | 1 + bornhack/templates/base.html | 2 + profiles/forms.py | 11 +++++ .../templates/profiles/profile_detail.html | 5 +++ profiles/templates/profiles/profile_form.html | 20 ++++++++++ profiles/urls.py | 5 ++- profiles/views.py | 40 ++++++++++++++----- 7 files changed, 71 insertions(+), 13 deletions(-) create mode 100644 profiles/forms.py create mode 100644 profiles/templates/profiles/profile_form.html diff --git a/.gitignore b/.gitignore index ee6cf3bb..f6170ce7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ __pycache__/ db.sqlite3 *.sw* .env +*.pyc diff --git a/bornhack/templates/base.html b/bornhack/templates/base.html index 9c988265..46349dbb 100644 --- a/bornhack/templates/base.html +++ b/bornhack/templates/base.html @@ -1,4 +1,5 @@ {% load static from staticfiles %} +{% load bootstrap3 %} @@ -49,6 +50,7 @@
+ {% bootstrap_messages %} {% block content %}{% endblock %}