WebFaction
Community site: login faq

Where and how to set up variables in environment which I usually set in .bash_profile on localhost, for example, 'NAME': os.environ['DB_NAME'],

Django

Thanks

asked 30 Oct, 21:29

eyram's gravatar image

eyram
113
accept rate: 0%

edited 30 Oct, 21:38


You can set them in .bash_profile, or at run-time, or within a shell script such as the 'start' script which comes with the installer.

permanent link

answered 30 Oct, 22:27

johns's gravatar image

johns ♦♦
5.0k29
accept rate: 23%

the last time I set it in .bash_profile it didn't work, one of the support techs fixed it for me and says I needed to set it in httpd.conf because i have to be logged in at all time for the apache server to read the variables

(30 Oct, 22:32) eyram eyram's gravatar image

Placing it in the start script will allow apache to use it.

(30 Oct, 22:44) johns ♦♦ johns's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×891
×1

question asked: 30 Oct, 21:29

question was seen: 83 times

last updated: 30 Oct, 22:44

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM