Thanks for the reply.

Looking at the line before the problem
had to do with End of line formatting going
between Windows and Linux editors.

Will take your advice in the future and post more trace back
information.

Thanks.


On 3/13/2016 10:11 PM, Daniel Roseman wrote:
On Sunday, 13 March 2016 20:01:52 UTC, NoviceSortOf wrote:


    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



If you're asking about an error, you should post it, along with the full traceback, so we can see where it is coming from.

Often a syntax error is due to a problem on the previous line, such as an unclosed parenthesis.
--
DR.
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/u3lIohyO2vc/unsubscribe. To unsubscribe from this group and all its topics, send an email to django-users+unsubscr...@googlegroups.com <mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
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/7af75ce3-2706-49e8-94ef-c8988104a7d4%40googlegroups.com <https://groups.google.com/d/msgid/django-users/7af75ce3-2706-49e8-94ef-c8988104a7d4%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/56E5F0A3.1000406%40well.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to