django-ninja
django-ninja copied to clipboard
Project ‘url.py’ setup problem, ninja.errors.ConfigError: Looks like you created multiple NinjaAPIs
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
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.