File tree 4 files changed +32
-1
lines changed
project_template/project_name
4 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 2
2
Twitter Integration
3
3
===================
4
4
5
+ .. deprecated :: 5.0
6
+ :mod: `mezzanine.twitter ` has been deprecated and will be removed in a
7
+ future version.
8
+
5
9
The :mod: `mezzanine.twitter ` application exposes the ability to consume,
6
10
store, and display your own tweets on your site in an efficient manner,
7
11
as well as the ability to send tweets when publishing new content to
Original file line number Diff line number Diff line change 238
238
"mezzanine.blog" ,
239
239
"mezzanine.forms" ,
240
240
"mezzanine.galleries" ,
241
- "mezzanine.twitter" ,
241
+ # "mezzanine.twitter",
242
242
# 'mezzanine.accounts',
243
243
]
244
244
Original file line number Diff line number Diff line change
1
+ from django .apps import AppConfig
2
+
3
+
4
+ class TwitterConfig (AppConfig ):
5
+
6
+ name = "mezzanine.twitter"
7
+
8
+ def ready (self ):
9
+ from . import checks # noqa
Original file line number Diff line number Diff line change
1
+ from django .core .checks import Warning , register
2
+
3
+ from mezzanine .conf import settings
4
+
5
+ TWITTER_DEPRECATED = Warning (
6
+ "'mezzanine.twitter' is deprecated and will be removed in a future version" ,
7
+ id = "mezzanine.twitter.W001" ,
8
+ )
9
+
10
+
11
+ @register ()
12
+ def check_twitter (app_configs , ** kwargs ):
13
+ issues = []
14
+
15
+ if "mezzanine.twitter" in settings .INSTALLED_APPS :
16
+ issues .append (TWITTER_DEPRECATED )
17
+
18
+ return issues
You can’t perform that action at this time.
0 commit comments