Permalink
Browse files

merged

  • Loading branch information...
2 parents 35e08c0 + b2e1590 commit 25b1a0a242f67fe9f05efbeed7947652a7b367a1 @elijahr elijahr committed Oct 17, 2011
Showing with 11 additions and 6 deletions.
  1. +10 −4 README.md
  2. +1 −2 setup.py
View
@@ -3,18 +3,22 @@
Overview
--------
-django-host-settings is a small Django app which lets you easily manage settings for your development machines & servers.
+django-host-settings is a Django app which helps you create and load settings unique to each host running your Django project.
Installation
------------
+ $ easy_install django-host-settings
+
+or
+
$ git clone git://github.com/sandersnewmedia/django-host-settings.git
$ cd django-host-settings
$ python setup.py install
Usage
-----
-In your settings.py:
+In your `settings.py`:
INSTALLED_APPS = (
...
@@ -23,9 +27,11 @@ In your settings.py:
Then run these commands:
+ $ python manage.py createhostsettings
$ echo "import os" >> settings.py
$ echo "PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))" >> settings.py
$ echo "from django_host_settings.settings import *" >> settings.py
- $ python manage.py createhostsettings
+
+You can now override any settings in your own settings file, created in the `config/` directory of your project's root.
-You can now override any settings in your own settings file, created in the config/ directory.
+For instance, if your hostname is `sir-robin`, the `createhostsettings` command will create a file, `config/sir_robin.py` that you could define Django settings in, such as `DEBUG = True`. These settings will be loaded along with, and override, the settings defined in `settings.py`.
View
@@ -1,10 +1,9 @@
from setuptools import setup, find_packages
-packages = find_packages()
setup(
version = "0.2",
name = "django-host-settings",
- packages = packages,
+ packages = find_packages(),
author = "Elijah Rutschman",
author_email = "elijah@sandersnewmedia.com",
description = "A small Django app for managing local settings files for multiple hosts",

0 comments on commit 25b1a0a

Please sign in to comment.