diff --git a/profiles/urls.py b/profiles/urls.py new file mode 100644 index 0000000..a8d7128 --- /dev/null +++ b/profiles/urls.py @@ -0,0 +1,7 @@ +from django.conf.urls import url + +from . import views + +urlpatterns = [ + url(r'^edit/$', views.edit_profile, name='edit-profile'), +] diff --git a/profiles/views.py b/profiles/views.py new file mode 100644 index 0000000..840b1ff --- /dev/null +++ b/profiles/views.py @@ -0,0 +1,10 @@ +from django.shortcuts import render +from django import forms +from django.contrib.auth.decorators import login_required + + +@login_required +def edit_profile(request): + form = request.user.profile + + return render(request, 'profiles/edit.html', {'form': form}) diff --git a/templates/profiles/edit.html b/templates/profiles/edit.html new file mode 100644 index 0000000..14d0010 --- /dev/null +++ b/templates/profiles/edit.html @@ -0,0 +1,63 @@ +{% extends "base.html" %} + +{% block content %} + +