Skip to content

Commit

Permalink
Reformated a long line in manage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kardan committed Apr 15, 2013
1 parent 687039b commit 45efe6a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions akvo/manage.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Akvo RSR is covered by the GNU Affero General Public License.
See more details in the license.txt file located at the root folder of the
Akvo RSR module. For additional details on the GNU license please
see < http://www.gnu.org/licenses/agpl.html >.
"""

#!/usr/bin/env python

from django.core.management import execute_manager

try:
import settings # Assumed to be in the same directory.
import settings
except ImportError as e:
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__)
message = """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.stderr.write(message)
sys.stderr.write("\nImportError: " + str(e) + "\n")
sys.exit(1)

Expand Down

0 comments on commit 45efe6a

Please sign in to comment.