[Fixed]-Creating .env file on the root of the project

26๐Ÿ‘

โœ…

  1. What(where) is the root part of the project, is it part of the project where are settings?

    • Where your manage.py file is (that is your project root directory).
  2. What kind of file should .env be? (python package I suppose)

    • .env is a text file not a package.
  3. Should name of the file be simply .env (or something.env)?

    • Just .env
  4. Is .env file going to be imported in settings file?

    • No need to import, python-decouple automatically picks variables from there.

Read more about Where the settings data are stored? and Usage of python-decouple.

๐Ÿ‘คAamir Rind

Leave a comment