Skip to content

Commit 45f00cc

Browse files
Changes as per Python3, new flask, setuptools, mod_wsgi and apache
1 parent 22a4e06 commit 45f00cc

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

Diff for: apache_wsgi.conf

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<VirtualHost *>
22

3-
WSGIScriptAlias / /Users/shalabhaggarwal/workspace/mydev/flask_catalog_deployment/app.wsgi
3+
WSGIScriptAlias / /home/ubuntu/workspace/cookbook11/Chapter-11/app.wsgi
44

5-
<Directory /Users/shalabhaggarwal/workspace/mydev/flask_catalog_deployment>
6-
Order allow,deny
5+
<Directory /home/ubuntu/workspace/cookbook11/Chapter-11>
6+
Require all granted
77
Allow from all
88
</Directory>
99

10-
Alias /static/uploads/ "/Users/shalabhaggarwal/workspace/mydev/flask_test_uploads/"
11-
<Directory "/Users/shalabhaggarwal/workspace/mydev/flask_test_uploads">
12-
Order allow,deny
10+
Alias /static/uploads/ "/home/ubuntu/workspace/cookbook11/Chapter-11/flask_test_uploads/"
11+
<Directory "/home/ubuntu/workspace/cookbook11/Chapter-11/flask_test_uploads">
12+
Require all granted
1313
Options Indexes
1414
Allow from all
1515
IndexOptions FancyIndexing

Diff for: app.wsgi

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
activate_this = '/Users/shalabhaggarwal/workspace/mydev/bin/activate_this.py'
2-
execfile(activate_this, dict(__file__=activate_this))
1+
activate_this = '/home/ubuntu/workspace/cookbook11/bin/activate_this.py'
2+
exec(open(activate_this).read(), dict(__file__=activate_this))
33

44
from my_app import app as application
55
import sys, logging

Diff for: my_app/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
app.config['WTF_CSRF_SECRET_KEY'] = 'random key for form'
2727
db = SQLAlchemy(app)
2828

29-
app.config['LOG_FILE'] = 'application.log'
29+
app.config['LOG_FILE'] = '/tmp/application.log'
3030

3131

3232
if not app.debug:

Diff for: setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616
],
1717
platforms='any',
1818
install_requires=[
19-
'flask',
19+
'Flask>=0.10.1',
2020
'flask-sqlalchemy',
21-
'flask-wtf'
21+
'flask-wtf',
22+
'flask-babel',
23+
'sentry-sdk',
24+
'blinker',
25+
'geoip2',
2226
],
2327
include_package_data=True,
2428
classifiers=[

0 commit comments

Comments
 (0)