6b962fa3e2
Update odsreg so that it runs with Django 1.8: - Move base files under an odsreg module, update .gitignore - Update module paths - Update manage.py to Django 1.8 version - Update instructions in README.rst - Remove 'null has no effect on ManyToManyField' warning Update odsreg so that it runs with Django 1.9: - Update management command arg handling - Use url instead of patterns in urls.py - Move from TEMPLATE_* variables to TEMPLATES Co-Authored-By: Tom Fifield <tom@openstack.org> Change-Id: Ic18bddd29053ca0187889bb8a371048b2ad3fdb9
11 lines
249 B
Python
Executable File
11 lines
249 B
Python
Executable File
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
|
|
if __name__ == "__main__":
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "odsreg.settings")
|
|
|
|
from django.core.management import execute_from_command_line
|
|
|
|
execute_from_command_line(sys.argv)
|