forked from django-fluent/django-fluent-contents
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop Django 1.5/1.6 compatibility and Python 2.6 support
There isn't much point in maintaining this, and it adds a burden to new contributors.
- Loading branch information
Showing
23 changed files
with
37 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1 @@ | ||
import django | ||
from django.conf import settings | ||
from django.core.exceptions import ImproperlyConfigured | ||
|
||
VERSION = (0, 1) | ||
|
||
if django.VERSION < (1, 7): | ||
# TODO: this needs to be ported to system checks | ||
# providing these checks at import time breaks Django 1.7 | ||
|
||
backendapp = 'disqus' | ||
|
||
# Do some settings checks. | ||
if backendapp not in settings.INSTALLED_APPS: | ||
raise ImproperlyConfigured("The '{0}' application is required to use the '{1}' plugin.".format(backendapp, 'disqusarea')) | ||
|
||
try: | ||
import disqus | ||
except ImportError: | ||
raise ImproperlyConfigured("The 'django-disqus' package is required to use the 'disqusarea' plugin.") | ||
|
||
for varname in ('DISQUS_API_KEY', 'DISQUS_WEBSITE_SHORTNAME'): | ||
if not getattr(settings, varname, None): | ||
raise ImproperlyConfigured("The '{0}' setting is required to use the '{1}' plugin.".format(varname, 'disqusarea')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
import django | ||
from django.conf import settings | ||
from django.core.exceptions import ImproperlyConfigured | ||
|
||
VERSION = (0, 1) | ||
|
||
if django.VERSION < (1, 7): | ||
# TODO: this needs to be ported to system checks | ||
# providing these checks at import time breaks Django 1.7 | ||
|
||
backendapp = 'form_designer' | ||
|
||
# Do some settings checks. | ||
if backendapp not in settings.INSTALLED_APPS: | ||
raise ImproperlyConfigured("The '{0}' application is required to use the '{1}' plugin.".format(backendapp, 'formdesignerlink')) | ||
|
||
try: | ||
import form_designer | ||
except ImportError as e: | ||
raise ImproperlyConfigured("The 'django-form-designer' package is required to use the 'formdesignerlink' plugin.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.