clusterify / clusterify

Propose small coding projects and team up with others to realize them.

This URL has Read+Write access

webiest (author)
Wed May 13 23:25:07 -0700 2009
commit  a2204deae251e22c75b71e5877d743e604aa7568
tree    3616265edefb49c27dcca4cbd37e6b8d365c4d0a
parent  13e44b0f35ed72b13be27b99d5a3634e785998a6
clusterify / manage.py
100644 12 lines (10 sloc) 0.546 kb
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python
from django.core.management import execute_manager
try:
    import 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(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
    sys.exit(1)
 
if __name__ == "__main__":
    execute_manager(settings)