Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
7277253f
Commit
7277253f
authored
Apr 11, 2015
by
Mathieu Giraud
Committed by
Vidjil Team
Apr 12, 2015
Browse files
models/db.py, modules/defs.py.sample: setup email server
parent
41671714
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/db.py
View file @
7277253f
...
...
@@ -58,9 +58,9 @@ auth.define_tables(username=False, signature=False)
## configure email
mail
=
auth
.
settings
.
mailer
mail
.
settings
.
server
=
'logging'
or
'smtp.gmail.com:587'
mail
.
settings
.
sender
=
'you@gmail.com'
mail
.
settings
.
login
=
'username:password'
mail
.
settings
.
server
=
defs
.
SMTP_SERVER
mail
.
settings
.
sender
=
defs
.
FROM_EMAIL
mail
.
settings
.
login
=
None
## configure auth policy
auth
.
settings
.
registration_requires_verification
=
False
...
...
server/web2py/applications/vidjil/modules/defs.py.sample
View file @
7277253f
...
...
@@ -3,6 +3,12 @@
### This file must be named 'modules/defs.py' to be taken into account
###
### Email notifications for server errors
SMTP_SERVER = 'localhost'
# SMTP_SERVER = 'logging' # no mail
FROM_EMAIL = 'rbx@vidjil.org'
ADMIN_EMAILS = ['notifications@vidjil.org']
### address for the sql database
###
DB_ADDRESS = 'sqlite://storage.sqlite'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment