~ronnie.vd.c/erato/client-side-textarea-sync

« back to all changes in this revision

Viewing changes to art_website/settings.py

  • Committer: Martin Owens
  • Date: 2010-10-20 20:08:18 UTC
  • mfrom: (2.1.3 erato)
  • Revision ID: doctormo@gmail.com-20101020200818-ndastvlqkw13ph9j
Merge in additions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright 2010, Martin Owens and Adnane Belmadiaf.
 
3
#
 
4
# This program is free software: you can redistribute it and/or modify
 
5
# it under the terms of the GNU Affero General Public License as
 
6
# published by the Free Software Foundation, either version 3 of the
 
7
# License, or (at your option) any later version.
 
8
#
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU Affero General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU Affero General Public License
 
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
#
 
17
 
1
18
# Django settings for art_website project.
2
19
 
3
20
import os, platform
7
24
# Far too clever trick to know if we're running on the deployment server.
8
25
DEVELOPMENT_MODE = (platform.node() != "art.ubuntu")            
9
26
if DEVELOPMENT_MODE:
10
 
   DEBUG = True
 
27
        DEBUG = True
11
28
else:
12
 
   DEBUG = False
 
29
        DEBUG = False
13
30
 
14
31
TEMPLATE_DEBUG = DEBUG
15
32
STATIC_SERVE = True
118
135
 
119
136
import logging
120
137
try:
121
 
  from local_settings import *
 
138
        from local_settings import *
122
139
except ImportError:
123
 
  logging.warning("No local_settings.py were found. See INSTALL for instructions.")
 
140
        logging.warning("No local_settings.py were found. See INSTALL for instructions.")