django-ninja icon indicating copy to clipboard operation
django-ninja copied to clipboard

Project ‘url.py’ setup problem, ninja.errors.ConfigError: Looks like you created multiple NinjaAPIs

Open wu-clan opened this issue 3 years ago • 0 comments

my Ninja==0.16.1, Django==3.2.4

In url, I added routing mode under Ninja, but i have only one Ninja, now happend error, It was identified as multiple Ninja

image image

I found the problem, now Django DEBUG=True, so , I annotated # STATIC_ROOT = BASE_DIR / 'static', but i'm using STATIC_ROOT in url, although it cannot be found, but it is allowed in Django. For Ninja, it should be allowed, but there was an error!

If I open # STATIC_ROOT = BASE_DIR / 'static', There will be no problem with routing. I think this problem needs to be checked.

wu-clan avatar Dec 28 '21 07:12 wu-clan