#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "openssl.settings.test")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)

@@ -1,10 +1,11 @@
 #!
+ 
 /usr/bin
@@ -16,16 +16,17 @@
  python%0A
+%0A
 import o
@@ -31,227 +31,1485 @@
  os%0A
-import sys%0A%0Aif __name__ == %22__main__%22:%0A    os.environ.setdefault(%22DJANGO_SETTINGS_MODULE%22, %22openssl.settings.test%22)%0A%0A    from django.core.management import execute_from_command_line%0A%0A    execute_from_command_line(sys.argv
+%0A%0Afrom app import create_app%0A%0Aimport flask_s3%0A%0Afrom flask import send_from_directory%0Afrom flask_assets import ManageAssets%0Afrom flask_script import Manager%0Afrom flask_script import Shell%0A%0A%0Aapplication = create_app(%0A    'inform',%0A    os.getenv('FLASK_SETTINGS_MODULE',%0A              'app.config.DevConfig'))%0A%0A%0A@application.route('/assets/%3Cpath:file_uri%3E')%0Adef send_static(file_uri):%0A    %22%22%22Send static files.%0A%0A    Monkey patching%0A    The following handlers will be removed as soon as we migrate to S3.%22%22%22%0A%0A    return send_from_directory('static', file_uri)%0A%0A%0Amanager = Manager(application)%0Amanager.help_args = ('-h', '-?', '--help')%0A%0A%0Adef make_shell_context():%0A    %22%22%22%0A    Automatically import applicationlication objects into interactive%0A    shell.%0A    %22%22%22%0A    return dict(app=application)%0A%0A%0Amanager.add_command(%22shell%22, Shell(make_context=make_shell_context))%0Amanager.add_command(%22assets%22, ManageAssets())%0A%0A%0A@manager.command%0Adef runserver():%0A    %22%22%22 Start the server%22%22%22%0A    application.run()%0A%0A%0A@manager.command%0Adef test():%0A    %22%22%22%0A    Run the unit tests.%0A    %22%22%22%0A    import unittest%0A    tests = unittest.TestLoader().discover('tests')%0A    unittest.TextTestRunner(verbosity=2).run(tests)%0A%0A%0A@manager.command%0Adef collectstatic():%0A    %22%22%22 Uploads static assets to Amazon s3 %22%22%22%0A    application.logger.info(%22Starting static files uploads %22)%0A    flask_s3.create_all(application)%0A    application.logger.info(%22Static files upload complete%22)%0A%0A%0Aif __name__ == %22__main__%22:%0A    manager.run(
 )%0A

Update manage.py