Skip to content

Commit

Permalink
Added import from local_settings to override default settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
amarder committed Jun 22, 2011
1 parent 9cc46ff commit 60ebfea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions settings.py
Expand Up @@ -170,3 +170,10 @@
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'test_static/')
else:
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'static/')


try:
from local_settings import *
except ImportError:
print("You can override the default settings by adding a "
"local_settings.py file.")

0 comments on commit 60ebfea

Please sign in to comment.