Fixing imports in urls.py and adding get_absolute_url() to UserProfile class.