Monday, February 7, 2022

Re: How to retrieve the values of environment variables in cpanel?

I think you will have limited abilities without terminal but you can try it anyway .
check this

and for in your /home/user/django-project/

import sys, os
INTERP = "/home/user/django-project/django-env/bin/python3"
if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv)

from  project.wsgi import application

I hope this helps

On Tuesday, February 8, 2022 at 2:29:00 AM UTC+1 wrote:
Hi there, good night.   

Does anybody know how to set up environment variables in a cpanel shared hosting?

I've found the way to declare the variable name and the value through the "Setup Python App" section, but  I didn't find the way to retrieve the value in the settings file.

Please note that cpanel has no terminal.

Thanks in advance,

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment