Hi Ramandeep, On 08/10/2018 07:36 AM, Ramandeep Kaur wrote:
> strange thing is that it indicates the error in line 395 which is in > the end where i dont write any code. It looks like your error is not closing the call to url() here:
url('^api/v1/calls/beneficiary/(?P<beneficiary_pk>\w+)/$', # BeneficiaryCallsView.as_view(), # name='beneficiary_calls'), url('^api/v1/calls/caller/(?P<caller_pk>\w+)/$', # CallerCallsView.as_view(), # name='caller_calls'),
The interpreter will try to look for the matching end ')' and give error out when it doesn't find that at the end of the file.
Errors like these can indeed be a bit hard to track down. Which editor are you using?
If you use an editor that understands Python, it can be quite a lot easier to debug these things in my experience or even avoid them in the first place.
I heard good things about pycharm, but I don't have any experience with that myself (I use emacs).
Don't know if that would have helped you here. Just a suggestion. Kind regards, Kasper Laudrup -- 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/556bdf45-8daf-4b4d-4657-de696b8e5d2f%40stacktrace.dk. For more options, visit https://groups.google.com/d/optout.