I can't manage to figure out why I consistently get a syntax error when 
attempted to 
use objects.all or objects.get.

>From my code in view.py

>>from books.models    import Interests 

The Interests model imports without a problem, 
but when I try to access the model with any of the following I get syntax 
errors.

>> interests_obj = Interests.objects.get(pk=1)

>> interests_obj = Interests.objects.all()
  


Please advise 


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/78bbd8ae-b782-40d2-8ec6-c2e4cc085dd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to