joke2k / django-environ

Django-environ allows you to utilize 12factor inspired environment variables to configure your Django application.
https://django-environ.rtfd.org
MIT License
2.96k stars 315 forks source link

UserWarning: Engine not recognized from url : sqlite3 #496

Open azataiot opened 10 months ago

azataiot commented 10 months ago

When I run my project, I'm seeing this warning:

UserWarning: Engine not recognized from url: {'NAME': 'sqlite:///db.sqlite3" ', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', 'ENGINE': ''}
  warnings.warn(f'Engine not recognized from url: {config}')

my settings seems valid, also it shows that the engine is correctly picked up as 'django.db.backens.sqlite3'

2023-09-06-at-12 49 30

I have a .env file with this content in the project root:

LOG_LEVEL="info"
DATABASE_URL="sqlite:///db.sqlite3" #postgres://postgres:postgres@localhost:5432/django
azataiot commented 10 months ago

also one interesting thing is this warning shows twice,

2023-09-06-at-12 51 48

sergeyklay commented 9 months ago

Hello @azataiot,

Thank you for reporting this issue. I've just tested your example with the latest version, and everything seems to be working fine on my end. Could you please try updating to the latest version and let me know if the issue persists?

azataiot commented 9 months ago

Hello @azataiot,

Thank you for reporting this issue. I've just tested your example with the latest version, and everything seems to be working fine on my end. Could you please try updating to the latest version and let me know if the issue persists?

Thanks, let me update the package and try again.