aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/_testproject/manage.py
diff options
context:
space:
mode:
authorSimon Law <simon.law@ecometrica.com>2012-07-24 15:14:12 -0400
committerSimon Law <simon.law@ecometrica.com>2012-07-24 15:14:12 -0400
commitbde096a028c2705b8f56fb5fdcbbaed4b318862d (patch)
tree8b9245948d43bac6c1755b0739d13b579f7419e3 /wkhtmltopdf/_testproject/manage.py
parent8e53c5bc5db462f6e39404c73ac96ec0cbb6a6c7 (diff)
downloaddjango-wkhtmltopdf-bde096a028c2705b8f56fb5fdcbbaed4b318862d.tar.gz
django-wkhtmltopdf-bde096a028c2705b8f56fb5fdcbbaed4b318862d.tar.bz2
django-wkhtmltopdf-bde096a028c2705b8f56fb5fdcbbaed4b318862d.zip
Move testproject to wkhtmltopdf._testproject.
Avoid polluting the global library namespace with testproject. Instead, since wkhtmltopdf tests use it, we install it within under a "private" name. --HG-- rename : testproject/__init__.py => wkhtmltopdf/_testproject/__init__.py rename : testproject/manage.py => wkhtmltopdf/_testproject/manage.py rename : testproject/requirements.txt => wkhtmltopdf/_testproject/requirements.txt rename : testproject/settings.py => wkhtmltopdf/_testproject/settings.py rename : testproject/templates/footer.html => wkhtmltopdf/_testproject/templates/footer.html rename : testproject/templates/sample.html => wkhtmltopdf/_testproject/templates/sample.html rename : testproject/urls.py => wkhtmltopdf/_testproject/urls.py
Diffstat (limited to 'wkhtmltopdf/_testproject/manage.py')
-rw-r--r--wkhtmltopdf/_testproject/manage.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/wkhtmltopdf/_testproject/manage.py b/wkhtmltopdf/_testproject/manage.py
new file mode 100644
index 0000000..3e4eedc
--- /dev/null
+++ b/wkhtmltopdf/_testproject/manage.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+from django.core.management import execute_manager
+import imp
+try:
+ imp.find_module('settings') # Assumed to be in the same directory.
+except ImportError:
+ import sys
+ sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
+ sys.exit(1)
+
+import settings
+
+if __name__ == "__main__":
+ execute_manager(settings)