A Simple example app

This commit is contained in:
Edward Robinson
2012-10-25 19:32:48 +01:00
parent 4a99b039f5
commit 428e6fd44d
3 changed files with 21 additions and 0 deletions
View File
+20
View File
@@ -0,0 +1,20 @@
from flask import Flask, render_template_string
from flask_s3 import FlaskS3, create_all
app = Flask(__name__)
app.config['S3_BUCKET_NAME'] = 'mybucketname'
app.config['USE_S3_DEBUG'] = True
s3 = FlaskS3(app)
@app.route('/')
def index():
template_str = """{{ url_for('static', filename="foo.js") }}"""
return render_template_string(template_str)
def upload_all():
create_all(app, user='MY_AWS_ID', password='MY_AWS_SECRET')
if __name__ == '__main__':
app.run(debug=True)
+1
View File
@@ -0,0 +1 @@
exciting ex.js