Browse Source

Display of the development header now depends on the DEBUG setting - added comments to custom settings

master
Niklas Brachmann 11 years ago
parent
commit
f363333655
  1. 2
      cash/templates/cash/base.html
  2. 9
      lugcash2/settings.py

2
cash/templates/cash/base.html

@ -49,9 +49,11 @@ @@ -49,9 +49,11 @@
</head>
<body>
{% if debug %}
<div style="position: absolute; top: 110px; right: 43%; color: #ff0000; font-size: 36px; font-weight: bold;">
DEVELOPMENT
</div>
{% endif %}
<div id="outbox">

9
lugcash2/settings.py

@ -159,7 +159,16 @@ LOGGING = { @@ -159,7 +159,16 @@ LOGGING = {
}
}
# Which remote IPs should be considered 'internal' to get more
# verbose output when in debug mode
INTERNAL_IPS = ('127.0.0.1')
# URL on which the login-page resides - required for automatic
# redirection
LOGIN_URL = '/login/'
# URL to which the user shoul be redirect after successful login
LOGIN_REDIRECT_URL = '/'
# Add custom context processors
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + ('cash.views.user_context_processor',)

Loading…
Cancel
Save