root/trunk/djangoid/manage.py

Revision 8, 1.3 kB (checked in by nicolast, 5 years ago)

svn:ignore's, licensing stuff, some doc files. Tagging as 0.0.1

Line 
1 #Djangoid - Django-based OpenID server/provider
2 #Copyright (C) 2006  Nicolas Trangez <ikke nicolast be>
3 #
4 #This program is free software; you can redistribute it and/or modify
5 #it under the terms of the GNU General Public License as published by
6 #the Free Software Foundation; either version 2 of the License.
7 #
8 #This program is distributed in the hope that it will be useful,
9 #but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 #GNU General Public License for more details.
12 #
13 #You should have received a copy of the GNU General Public License
14 #along with this program; if not, write to the Free Software
15 #Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16 #
17 #EOL
18 #!/usr/bin/env python
19 from django.core.management import execute_manager
20 try:
21     import settings # Assumed to be in the same directory.
22 except ImportError:
23     import sys
24     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__)
25     sys.exit(1)
26
27 if __name__ == "__main__":
28     execute_manager(settings)
Note: See TracBrowser for help on using the browser.