To anyone else that gets this error by following the old documentation, get_profile()
has been depreciated in django 1.7.
Instead you can just access the userprofile from the user as below..
u_p = user.userprofile
where userprofile
is the name of your UserProfile
class
You can also change to use the newer documentation by clicking on the desired version in the bottom right corner