Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-wiki
Commits
a47c6da8
Commit
a47c6da8
authored
Feb 21, 2013
by
Juan Diego Caballero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Email Notifications Implementation"
This reverts commit
700bb6e9
.
parent
700bb6e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
django_notify/settings.py
+2
-6
testproject/testproject/db/prepopulated.db
+0
-0
testproject/testproject/settings.py
+0
-2
No files found.
django_notify/settings.py
View file @
a47c6da8
...
...
@@ -18,11 +18,6 @@ ENABLE_ADMIN = getattr(django_settings, "NOTIFY_ENABLE_ADMIN", False)
# to a proper SMTP server, just leave it off...
SEND_EMAILS
=
getattr
(
django_settings
,
"NOTIFY_SEND_EMAILS"
,
False
)
DEFAULT_EMAIL
=
'notifications@django-wiki.org'
#NOTIFY_SLEEP_TIME must be greater than 0 to allow for Garbage Collection
NOTIFY_SLEEP_TIME
=
10
# You can always make up more numbers... they simply identify which notifications
# to send when invoking the script, and the number indicates how many hours
# to minimum pass between each notification.
...
...
@@ -32,11 +27,12 @@ DAILY = 24-1 # Subtract 1, because the job finishes less than 24h before the nex
WEEKLY
=
7
*
24
-
1
INTERVALS
=
getattr
(
django_settings
,
"NOTIFY_INTERVALS"
,
[(
INSTANTLY
,
_
(
u'instant'
)),
[(
INSTANTLY
,
_
(
u'instant
ly
'
)),
(
DAILY
,
_
(
u'daily'
)),
(
WEEKLY
,
_
(
u'weekly'
))])
INTERVALS_DEFAULT
=
INSTANTLY
# Minimum logging and digital garbage! Don't save too much crap!
# After how many days should viewed notifications be deleted?
...
...
testproject/testproject/db/prepopulated.db
View file @
a47c6da8
No preview for this file type
testproject/testproject/settings.py
View file @
a47c6da8
...
...
@@ -4,8 +4,6 @@ PROJECT_PATH = os_path.abspath(os_path.split(__file__)[0])
DEBUG
=
True
TEMPLATE_DEBUG
=
DEBUG
EMAIL_BACKEND
=
'django.core.mail.backends.filebased.EmailBackend'
EMAIL_FILE_PATH
=
'
%
s/app-messages'
%
(
PROJECT_PATH
)
# change this to a proper location
ADMINS
=
(
# ('Your Name', 'your_email@example.com'),
...
...
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