Closed
Bug 511027
Opened 16 years ago
Closed 16 years ago
settings-dist is lame
Categories
(Webtools Graveyard :: Cesium, defect)
Webtools Graveyard
Cesium
Tracking
(Not tracked)
RESOLVED
FIXED
1.0
People
(Reporter: jbalogh, Assigned: mhahnenberg)
Details
1. mv settings-dist settings.py
2. Put this at the bottom:
try:
from local_settings import *
except ImportError:
pass
3. Profit!
Updated•16 years ago
|
Summary: settings-dist is lame lame lame → settings-dist is lame
| Assignee | ||
Updated•16 years ago
|
Version: Trunk → 1.0
| Assignee | ||
Comment 1•16 years ago
|
||
Done. localsettings.py does not exist in the repository as an empty file. Perhaps it should?
Assignee: nobody → ambient.sounds
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•16 years ago
|
Target Milestone: --- → 1.0
Version: 1.0 → Trunk
Comment 2•16 years ago
|
||
We use -dist files so config files are kept out of the repository and don't get accidentally committed passwords and such. I'm just sayin'.
| Reporter | ||
Comment 3•16 years ago
|
||
First, you should call it local_settings.py because that's what other people use. Search for "django local_settings" vs. "django localsettings".
Second, it probably shouldn't exist in your repo. Ryan is going to be editing his, you're going to be editing yours, neither of them should go in the repo. Let local stay local.
Make sure you update the readme to tell people about local_settings. It would be cool if you had a section "put these things in local_settings.py and adjust accordingly" that looked like
DB_USER = ""
DB_HOST = ""
MEDIA_PREFIX = ""
...and so on.
I should have filed more bugs on you this summer, they get done so fast! ;)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 4•16 years ago
|
||
Changes have been made. Jeff, maybe you could review it to make sure it is satisfactory if you have the time? I didn't update the Readme, as that encompasses more changes than just what's in this bug. I'll file another bug for it.
| Reporter | ||
Comment 5•16 years ago
|
||
Looks good to me, although people may be sad that you removed all the comments about what those settings mean.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 6•16 years ago
|
||
Added the comments back and committed.
Updated•10 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•