Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Chaitanya Sai
Thanks for your reply guys. I figured it out. I have typo of serializer name in serilizers.py which is causing the error. Damn, I spend 4 hours into this. On Wed, Jul 22, 2020 at 11:22 AM Liu Zheng wrote: > Hi, > > Probably not enough to look at urls.py files only. My guess: Do you use >

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Liu Zheng
Hi, Probably not enough to look at urls.py files only. My guess: Do you use ‘reverse’ function anywhere in covid app? If so, here’s a circular import: urls.py imports covid urls -> covid urls import covid views -> one covid view uses reverse -> reverse import urls.py of the project (to look up

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread sandeep kumar
I have faced this issue atleast 100 times..:) Her are the steps (sorry, I could not find a better way): 1. comment urls in urls.py (inside individual app) 2. check if you still have issue 2a. if you do not have issue, then you probably have not defined views for some of the urls 2b. if you still

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-22 Thread Chaitanya Sai
Hello Django users, Is there not even single person who can solve this issue?? On Tue, Jul 21, 2020 at 8:09 PM Sai wrote: > I am working Django rest framework api project, where I had multiple apps > in the project. I got a circular import error when I am adding the app URLs > to

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Chaitanya Sai
Can any one Look into this thing ?? On Tue, Jul 21, 2020 at 8:09 PM Sai wrote: > I am working Django rest framework api project, where I had multiple apps > in the project. I got a circular import error when I am adding the app URLs > to the main URLs. I Tried everything checked spellings,

Re: How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Mike Dewhirst
On 22/07/2020 10:08 am, Sai wrote: > I am working Django rest framework api project, where I had multiple > apps in the project. I got a circular import error when I am adding > the app URLs to the main URLs. I Tried everything checked spellings, > checked app structure but no use. Its been really

How to trace circular import error Django never solved!! Please sort this out.

2020-07-21 Thread Sai
I am working Django rest framework api project, where I had multiple apps in the project. I got a circular import error when I am adding the app URLs to the main URLs. I Tried everything checked spellings, checked app structure but no use. Its been really frustrating with issue..please help to