This repository has been archived by the owner on Jul 21, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
312 additions
and
507 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,22 @@ | ||
# coding=utf-8 | ||
""" | ||
Django 1.2 - 1.6 compatible manage.py | ||
Modify this script to make your own manage.py | ||
""" | ||
__author__ = 'Alisue <lambdalisue@hashnote.net>' | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
|
||
if __name__ == '__main__': | ||
# add extra sys.path | ||
root = os.path.abspath(os.path.dirname(__file__)) | ||
extra_paths = (root, os.path.join(root, 'src')) | ||
for extra_path in extra_paths: | ||
if extra_path in sys.path: | ||
sys.path.remove(extra_path) | ||
sys.path.insert(0, extra_path) | ||
# set DJANGO_SETTINGS_MODULE | ||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.settings') | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings") | ||
try: | ||
# django 1.4 and above | ||
# https://docs.djangoproject.com/en/1.4/releases/1.4/ | ||
from django.core.management import execute_from_command_line | ||
execute_from_command_line(sys.argv) | ||
except ImportError: | ||
from django.core.management import execute_manager | ||
settings = __import__(os.environ['DJANGO_SETTINGS_MODULE']) | ||
execute_manager(settings) | ||
# The above import may fail for some other reason. Ensure that the | ||
# issue is really that Django is missing to avoid masking other | ||
# exceptions on Python 2. | ||
try: | ||
import django | ||
except ImportError: | ||
raise ImportError( | ||
"Couldn't import Django. Are you sure it's installed and " | ||
"available on your PYTHONPATH environment variable? Did you " | ||
"forget to activate a virtual environment?" | ||
) | ||
raise | ||
execute_from_command_line(sys.argv) |
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,3 +1 @@ | ||
sphinx | ||
numpydoc | ||
sphinx_rtd_theme |
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,2 +1 @@ | ||
django-override-settings | ||
mock | ||
mock; python_version < '3.3' |
This file was deleted.
Oops, something went wrong.
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,10 +0,0 @@ | ||
import django | ||
if django.VERSION < (1, 6): | ||
# Django 1.5 and earlier use a different test method and the followings | ||
# are required to be exposed | ||
from permission.tests.test_backends import * | ||
from permission.tests.test_handlers import * | ||
from permission.tests.test_utils import * | ||
from permission.tests.test_logics import * | ||
from permission.tests.test_decorators import * | ||
from permission.tests.test_templatetags import * | ||
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,8 +0,0 @@ | ||
import django | ||
if django.VERSION < (1, 6): | ||
# Django 1.5 and earlier use a different test method and the followings | ||
# are required to be exposed | ||
from permission.tests.test_decorators.test_functionbase import * | ||
from permission.tests.test_decorators.test_methodbase import * | ||
from permission.tests.test_decorators.test_classbase import * | ||
from permission.tests.test_decorators.test_permission_required import * | ||
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.