#nei3rd-Python

1 messages · Page 1 of 1 (latest)

chilly swallow
#

that's a completely different error. Have you tried to see what value is that os.getenv("STATIC_DIR")?

ebon blade
#

yes, completely diff but same set of codes
these errors where after finding a workaround for updating the python version

chilly swallow
#

The error simply means your os.getenv("STATIC_DIR") is None. Are you setting it somewhere for your environment?

ebon blade
#

what does it mean > "setting it somewhere for your environment"

chilly swallow
#

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

ebon blade
#

its still on an online server

chilly swallow
#

I know, then you will need to figure it out how to setup environment variable, on that server/service provider

#

by their document 😄

ebon blade
#

copy, I understand

though, how will i know what variable to set in server environment?

chilly swallow
#

you need to set the STATIC_DIR as the code is using it

#

also you need to have that folder actually existed

ebon blade
#

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

chilly swallow
#

That depends on your host provider, really. Each host provider might have different ways

ebon blade
#

what does entail to "set"

if for example this was heroku, how do i "set"

#

it*

chilly swallow
ebon blade
#

ok, copy. have to do some reading

#

just for comparison and contrast, if this were aws, what do i "set"?

#

how do i "set"*

chilly swallow
#

It is , again, depends on AWS. For example AWS Lambda has this guide: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html

#

So it is really depended on who is the provider

ebon blade
#

copy on these

chilly swallow
#

Hi, I need to run for the day. Feel free to come back later and our fellows can help with different threads!

ebon blade
#

I was about to say also I'll be logging of, : )

thank you all the same

chilly swallow
#

good luck!