translateorgza / pootle forked from julen/pootle
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
df92b54
nekral (author)
Mon May 25 03:43:24 -0700 2009
pootle / manage.py
| 097e7f1f » | winterstream | 2008-12-12 | 1 | #!/usr/bin/env python | |
| 2 | # -*- coding: utf-8 -*- | ||||
| 3 | # | ||||
| 6afc736f » | friedelwolff | 2009-05-12 | 4 | # Copyright 2008-2009 Zuza Software Foundation | |
| 5 | # | ||||
| 6 | # This file is part of Pootle. | ||||
| 7 | # | ||||
| 8 | # This program is free software; you can redistribute it and/or modify | ||||
| 097e7f1f » | winterstream | 2008-12-12 | 9 | # it under the terms of the GNU General Public License as published by | |
| 10 | # the Free Software Foundation; either version 2 of the License, or | ||||
| 11 | # (at your option) any later version. | ||||
| 6afc736f » | friedelwolff | 2009-05-12 | 12 | # | |
| 13 | # This program is distributed in the hope that it will be useful, | ||||
| 097e7f1f » | winterstream | 2008-12-12 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
| 16 | # GNU General Public License for more details. | ||||
| 17 | # | ||||
| 18 | # You should have received a copy of the GNU General Public License | ||||
| 6afc736f » | friedelwolff | 2009-05-12 | 19 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
| 097e7f1f » | winterstream | 2008-12-12 | 20 | ||
| 97a9090e » | alaaosh | 2009-04-29 | 21 | import syspath_override | |
| f8e8dae6 » | alaaosh | 2009-04-09 | 22 | ||
| 097e7f1f » | winterstream | 2008-12-12 | 23 | from django.core.management import execute_manager | |
| 24 | try: | ||||
| 6afc736f » | friedelwolff | 2009-05-12 | 25 | from pootle import settings | |
| 097e7f1f » | winterstream | 2008-12-12 | 26 | except ImportError: | |
| 27 | import sys | ||||
| 6afc736f » | friedelwolff | 2009-05-12 | 28 | sys.stderr.write("""Error: Can't find the file 'settings.py' in the directory containing %r. | |
| 29 | It appears you've customized things. | ||||
| 30 | |||||
| 31 | You'll have to run django-admin.py, passing it your settings module. | ||||
| 32 | (If the file settings.py does indeed exist, it's causing an ImportError somehow.)""" % __file__) | ||||
| 097e7f1f » | winterstream | 2008-12-12 | 33 | sys.exit(1) | |
| 34 | |||||
| 35 | if __name__ == "__main__": | ||||
| 36 | execute_manager(settings) | ||||
