Closed Bug 511027 Opened 16 years ago Closed 16 years ago

settings-dist is lame

Categories

(Webtools Graveyard :: Cesium, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

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!
Summary: settings-dist is lame lame lame → settings-dist is lame
Version: Trunk → 1.0
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
Target Milestone: --- → 1.0
Version: 1.0 → Trunk
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'.
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 → ---
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.
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 ago16 years ago
Resolution: --- → FIXED
Added the comments back and committed.
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.