Browse Source

Set DEBUG = False as default, edit README.md file

Rogdham 11 years ago
parent
commit
2c96aad6f7
2 changed files with 8 additions and 2 deletions
  1. 7 0
      README
  2. 1 2
      coin/settings.py

+ 7 - 0
README

@@ -37,6 +37,13 @@ Install dependencies. On Debian, you will probably need the
 You should now be able to run `python manage.py` (within the
 virtualenv, obviously) without error.
 
+The `coin/settings_local.py` file is ignore by Git: feel free to override any
+setting by writing into that file. For example, to override the `DEBUG`
+settings:
+
+    echo '# -*- coding: utf-8 -*-' > coin/settings_local.py
+    echo 'DEBUG = TEMPLATE_DEBUG = True' >> coin/settings_local.py
+
 
 More information
 ================

+ 1 - 2
coin/settings.py

@@ -8,8 +8,7 @@ from custom.coin_posix_group_type import CoinPosixGroupType
 # Django settings for coin project.
 
 PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
+DEBUG = TEMPLATE_DEBUG = False
 
 ADMINS = (
     # ('Your Name', 'your_email@example.com'),