mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-17 14:30:26 +00:00
Added new get_permissions_codename check for permissions in upcoming Django 1.8. Refactored all version checks. All checks are done in tuple format instead of checking for a django major and minor version number. Removed unused RequestFactory in tests.
15 lines
441 B
Python
15 lines
441 B
Python
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
|
|
# Adds the adminsortable package from the cloned repository instead of
|
|
# site_packages
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
if __name__ == "__main__":
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
|
|
"python3_sample_project.settings")
|
|
|
|
from django.core.management import execute_from_command_line
|
|
|
|
execute_from_command_line(sys.argv)
|