Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.contrib.auth import authenticate, login, logout
- from django.shortcuts import render, render_to_response, get_object_or_404, redirect
- from django.contrib.auth.decorators import login_required
- from django.contrib.auth.models import User
- from django.views.generic import DetailView
- from django.http import HttpResponse
- from django.http import Http404
- # Modules
- from userprofile.models import Profile
- class HomeProfile(DetailView):
- context_object_name = "profile"
- template_name = "profile/presentation.html",
- def get_queryset(self):
- profile = user.get_profile() #error
- return profile #error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement