-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
views.py DetailView #10
Comments
Are you saying that you imported the requirements.txt into your environment and built this project as-is from github and it didn't work? |
No that's not what I'm saying. Just saying I followed the tutorial exactly
up to this point and it wouldn't work, even when I copy/pasted the views.py
verbatim. I had to use the specific import, that's all
…On Tue, 20 Mar 2018, 21:50 Hamish Willee, ***@***.***> wrote:
Are you saying that you imported the requirements.txt into your
environment and built this project as-is from github and it didn't work?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AX5UXFLW4Km5Qfu_frxPFbhhClyOM9_Sks5tgXnBgaJpZM4SyMLM>
.
|
Many apologies. I completely forgot about this. The documentation does correctly show how to do this: from django.views import generic
class BookDetailView(generic.DetailView):
model = Book As you see, the Detail view is in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spent the longest time on this, I had to specifically import Detail View like so
from django.views.generic.detail import DetailView
from django.views import generic
doesn't seem to work, throwing this:
I'm using python 3.6 and django 2.02 (on ubuntu 16.04)
The text was updated successfully, but these errors were encountered: