space-accessstablestagetest-hooks
Last change
on this file was
a836fd4,
checked in by Alex Dehnert <adehnert@…>, 14 years ago
|
Unset SESSION_COOKIE_SECURE on dev servers
So, it turns out that SESSION_COOKIE_SECURE doesn't really
work right if you try to use it with a dev server, since that uses
HTTP (no SSL)...
|
-
Property mode set to
100644
|
File size:
850 bytes
|
Rev | Line | |
---|
[aa31d18] | 1 | DATABASES = { |
---|
| 2 | 'default' : { |
---|
| 3 | 'ENGINE' : 'django.db.backends.sqlite3', |
---|
| 4 | 'NAME' : 'asa-db.sqlite', |
---|
| 5 | }, |
---|
| 6 | } |
---|
| 7 | |
---|
| 8 | # Mail sending |
---|
| 9 | # See https://docs.djangoproject.com/en/dev/topics/email/#email-backends |
---|
| 10 | send_mail = True |
---|
| 11 | send_mail = False |
---|
| 12 | if send_mail: |
---|
| 13 | EMAIL_HOST = 'outgoing.mit.edu' |
---|
| 14 | else: |
---|
| 15 | # Display intermixed with the error messages |
---|
| 16 | EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
---|
| 17 | # Or send to a custom server |
---|
| 18 | #EMAIL_HOST = 'localhost' |
---|
| 19 | #EMAIL_PORT = 1025 |
---|
| 20 | # Run python -m smtpd -n -c DebuggingServer localhost:1025 |
---|
| 21 | |
---|
| 22 | # Make this unique, and don't share it with anybody. |
---|
| 23 | #SECRET_KEY = something |
---|
| 24 | # Generate the "something" with: |
---|
| 25 | # import random; ''.join([random.choice('abcdefghijklmnopqrstuvwxyz0123456789@#%&-_=+') for i in range(50)]) |
---|
| 26 | |
---|
[a836fd4] | 27 | SESSION_COOKIE_SECURE = False |
---|
| 28 | |
---|
[aa31d18] | 29 | DEBUG = False |
---|
| 30 | DEBUG = True |
---|
Note: See
TracBrowser
for help on using the repository browser.