diff --git a/db.sqlite3 b/db.sqlite3 index a6b4d47..519d861 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/profile_images/me.jpg b/profile_images/me.jpg deleted file mode 100644 index 5a05a94..0000000 Binary files a/profile_images/me.jpg and /dev/null differ diff --git a/profile_images/me_RMLRaw3.jpg b/profile_images/me_RMLRaw3.jpg deleted file mode 100644 index 5a05a94..0000000 Binary files a/profile_images/me_RMLRaw3.jpg and /dev/null differ diff --git a/qa/models.py b/qa/models.py index 7b2678b..192105b 100644 --- a/qa/models.py +++ b/qa/models.py @@ -27,7 +27,7 @@ class UserProfile(models.Model): # The additional attributes we wish to include. website = models.URLField(blank=True) - picture = models.ImageField(upload_to='static/profile_images', blank=True) + picture = models.ImageField(upload_to='profile_images', blank=True) # Override the __unicode__() method to return out something meaningful! def __unicode__(self): diff --git a/qa/templates/qa/index.html b/qa/templates/qa/index.html index 2653577..39f13a3 100644 --- a/qa/templates/qa/index.html +++ b/qa/templates/qa/index.html @@ -116,6 +116,7 @@
+ @@ -161,6 +162,7 @@
+

Total Questions: {{ totalcount }}

@@ -194,16 +196,25 @@

Unanswered Questions

+ {% if user.is_authenticated %} + +
+
+ +

{{ user.first_name }} {{ user.last_name }}

+ My Profile | + Logout +
+
+ {% else %} + Login | Sign Up
+ {% endif %} +

- {% if user.is_authenticated %} - Logged in as {{ user.username }} ( My Profile | Logout ) - {% else %} - Login - {% endif %} - | Admin Panel
+Admin Panel