Home > Software design >  .Env file in Django project
.Env file in Django project

Time:04-12

I write this lines in .env file in django project to link my project to my Data base but visual code make a problem to the file

enter image description here

CodePudding user response:

Remove "export" from your .env file.

DB_NAME=IncomSpendsDB
DB_USER=postgres
DB_PASSWORD='0000000'
DB_HOST=localhost

https://djangocentral.com/environment-variables-in-django/

  • Related