diff --git a/blog/forms.py b/blog/forms.py
new file mode 100644
index 0000000..95951d1
--- /dev/null
+++ b/blog/forms.py
@@ -0,0 +1,8 @@
+
+from django import forms
+from .models import Post
+
+class PostForm(forms.ModelForm):
+ class Meta:
+ model = Post
+ fields = ['title', 'content']
diff --git a/blog/templates/blog/base.html b/blog/templates/blog/base.html
index 57130bb..e6e9cce 100644
--- a/blog/templates/blog/base.html
+++ b/blog/templates/blog/base.html
@@ -5,7 +5,21 @@
My Blog is shiny
- My Blog
+ My Blog
+{% if request.user.username %}
+ Welcome, {{ request.user.username }}!
+ Logout
+ nav
+{% if template_name != 'home.html' %}
+ home |
+{% endif %}
+ dashboard
+{% else %}
+ nav
+ Login |
+ Register
+{% endif %}
+ posts
{% block content %}
{% endblock %}
diff --git a/blog/templates/blog/dashboard.html b/blog/templates/blog/dashboard.html
index 3e33727..aeabd3b 100644
--- a/blog/templates/blog/dashboard.html
+++ b/blog/templates/blog/dashboard.html
@@ -6,13 +6,25 @@
Dashboard
Welcome, {{ request.user.username }}!
+ home|
Logout
Your Posts
{% for post in posts %}
- - {{ post.title }}
+ -
+ {{ post.title }}
+ Edit
+ Delete
+
{% endfor %}
+ Add a New Post
+
+