I am following a tutorial on building a simple website using django. I am at the stage of preparing my website for deployment. However, when I try to enter
export READ_DOT_ENV_FILE=True
into the terminal, I get the error message:
export : The term 'export' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ export READ_DOT_ENV_FILE=True
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (export:String) [], CommandNotFoundE
xception
+ FullyQualifiedErrorId : CommandNotFoundException
I am a windows user, and the tutorial person is a mac user. I don't know why I am getting this error, and I hope you guys could help me export this code. Here are some codes in my settings file for your reference:
READ_DOT_ENV_FILE = env.bool('READ_DOT_ENV_FILE', default=False)
if READ_DOT_ENV_FILE:
environ.Env.read_env()
Thanks a lot!