#nei3rd-Python
1 messages · Page 1 of 1 (latest)
that's a completely different error. Have you tried to see what value is that os.getenv("STATIC_DIR")?
yes, completely diff but same set of codes
these errors where after finding a workaround for updating the python version
The error simply means your os.getenv("STATIC_DIR") is None. Are you setting it somewhere for your environment?
what does it mean > "setting it somewhere for your environment"
That's environment setting, specific to the environment running it. For example if you are running your code on a Heroku node, there will be somewhere to set the environment in Heroku UI
if you run on your local, you will need to set it as an environment variable in your local machine
its still on an online server
I know, then you will need to figure it out how to setup environment variable, on that server/service provider
by their document 😄
copy, I understand
though, how will i know what variable to set in server environment?
you need to set the STATIC_DIR as the code is using it
also you need to have that folder actually existed
would it possible to know how I actually set the STATIC_DIR, the step by step in doing so?
how do I set "set" STATIC_DIR
That depends on your host provider, really. Each host provider might have different ways
ok, copy. have to do some reading
just for comparison and contrast, if this were aws, what do i "set"?
how do i "set"*
It is , again, depends on AWS. For example AWS Lambda has this guide: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html
You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that is stored in a function's version-specific configuration. The Lambda runtime makes environment variables available to your code and sets additional environment variables that contain information about the ...
So it is really depended on who is the provider
copy on these
Hi, I need to run for the day. Feel free to come back later and our fellows can help with different threads!
I was about to say also I'll be logging of, : )
thank you all the same
good luck!