This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"web":{"client_id":"629800045407-d23173op0sbcpkc118s0ejtj8evrsj8u.apps.googleusercontent.com","project_id":"headlinespa","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"88V2G1ELELAqsQbJmK0t7Dof","redirect_uris":["http://localhost:8000/login","http://localhost:8000/gconnect","http://ec2-18-184-157-0.eu-central-1.compute.amazonaws.com/login","http://ec2-18-184-157-0.eu-central-1.compute.amazonaws.com/gconnect"],"javascript_origins":["http://localhost:8000","http://18.184.157.0.xip.io","http://ec2-18-184-157-0.eu-central-1.compute.amazonaws.com"]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(venv) grader@ip-172-26-15-250:/var/www/catalogApp/catalog$ sudo cat __init__.py | |
#!/usr/bin/python | |
from flask import Flask, render_template, request, redirect | |
from flask import jsonify, url_for, flash, g | |
from sqlalchemy import create_engine, asc | |
from sqlalchemy.orm import sessionmaker | |
from functools import wraps | |
from database_setup import Category, Base, SpaItem, User | |
from flask import session as login_session | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(venv) grader@ip-172-26-15-250:/var/www/catalogApp/catalog$ sudo cat __init__.py | |
#!/usr/bin/python | |
from flask import Flask, render_template, request, redirect | |
from flask import jsonify, url_for, flash, g | |
from sqlalchemy import create_engine, asc | |
from sqlalchemy.orm import sessionmaker | |
from functools import wraps | |
from database_setup import Category, Base, SpaItem, User | |
from flask import session as login_session | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(venv) grader@ip-172-26-15-250:/var/www/catalogApp/catalog$ sudo tail -10 /var/log/apache2/error.log[Mon Sep 03 11:50:45.560328 2018] [wsgi:error] [pid 8562:tid 140066994042624] oauth_flow = flow_from_clientsecrets('client_secrets.json', scope='') | |
[Mon Sep 03 11:50:45.560330 2018] [wsgi:error] [pid 8562:tid 140066994042624] File "/var/www/catalogApp/catalog/venv/lib/python2.7/site-packages/oauth2client/_helpers.py", line 133, in positional_wrapper | |
[Mon Sep 03 11:50:45.560333 2018] [wsgi:error] [pid 8562:tid 140066994042624] return wrapped(*args, **kwargs) | |
[Mon Sep 03 11:50:45.560335 2018] [wsgi:error] [pid 8562:tid 140066994042624] File "/var/www/catalogApp/catalog/venv/lib/python2.7/site-packages/oauth2client/client.py", line 2135, in flow_from_clientsecrets | |
[Mon Sep 03 11:50:45.560338 2018] [wsgi:error] [pid 8562:tid 140066994042624] cache=cache) | |
[Mon Sep 03 11:50:45.560341 2018] [wsgi:error] [pid 8562:tid 140066994042624] File "/var/www/catalogApp/catalog/venv/lib/python2.7/site-packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"web":{"client_id":"629800045407-d23173op0sbcpkc118s0ejtj8evrsj8u.apps.googleusercontent.com","project_id":"headlinespa","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"88V2G1ELELAqsQbJmK0t7Dof","redirect_uris":["http://localhost:8000/login","http://localhost:8000/gconnect"],"javascript_origins":["http://localhost:8000"]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import make_response | |
import requests | |
app = Flask(__name__) | |
with app.open_resource('client_secrets.json') as f: | |
CLIENT_ID = json.load(f)['web']['client_id'] | |
# Connecting to the Database and create database session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import make_response | |
import requests | |
app = Flask(__name__) | |
with app.open_resource('client_secrets.json') as f: | |
CLIENT_ID = json.load(f)['web']['client_id'] | |
# Connecting to the Database and create database session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Sun Sep 02 07:36:39.711592 2018] [wsgi:error] [pid 1910:tid 140703886616320] oauth_flow = flow_from_clientsecrets('client_secrets.json', scope='') | |
[Sun Sep 02 07:36:39.711594 2018] [wsgi:error] [pid 1910:tid 140703886616320] File "/var/www/catalogApp/catalog/venv/lib/python2.7/site-packages/oauth2client/_helpers.py", line 133, in positional_wrapper | |
[Sun Sep 02 07:36:39.711597 2018] [wsgi:error] [pid 1910:tid 140703886616320] return wrapped(*args, **kwargs) | |
[Sun Sep 02 07:36:39.711600 2018] [wsgi:error] [pid 1910:tid 140703886616320] File "/var/www/catalogApp/catalog/venv/lib/python2.7/site-packages/oauth2client/client.py", line 2135, in flow_from_clientsecrets | |
[Sun Sep 02 07:36:39.711602 2018] [wsgi:error] [pid 1910:tid 140703886616320] cache=cache) | |
[Sun Sep 02 07:36:39.711605 2018] [wsgi:error] [pid 1910:tid 140703886616320] File "/var/www/catalogApp/catalog/venv/lib/python2.7/site-packages/oauth2client/clientsecrets.py", line 165, in loadfile | |
[Sun Sep 02 07:36:39.711608 2018] [wsgi:error] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"web":{"client_id":"629800045407-d23173op0sbcpkc118s0ejtj8evrsj8u.apps.googleusercontent.com","project_id":"headlinespa","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"88V2G1ELELAqsQbJmK0t7Dof","redirect_uris":["http://localhost:8000/login","http://localhost:8000/gconnect"],"javascript_origins":["http://localhost:8000"]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Sat Sep 01 02:34:40.875239 2018] [wsgi:error] [pid 21087:tid 140258104526592] [client 197.255.174.176:20879] Traceback (most recent call last): | |
[Sat Sep 01 02:34:40.875260 2018] [wsgi:error] [pid 21087:tid 140258104526592] [client 197.255.174.176:20879] File "/var/www/catalogApp/catalog.wsgi", line 7, in <module> | |
[Sat Sep 01 02:34:40.875297 2018] [wsgi:error] [pid 21087:tid 140258104526592] [client 197.255.174.176:20879] from catalog import app as application | |
[Sat Sep 01 02:34:40.875311 2018] [wsgi:error] [pid 21087:tid 140258104526592] [client 197.255.174.176:20879] ImportError: No module named catalog | |
[Sat Sep 01 02:34:49.709341 2018] [wsgi:error] [pid 21086:tid 140258154882816] [client 197.255.174.176:15029] mod_wsgi (pid=21086): Target WSGI script '/var/www/catalogApp/catalog.wsgi' cannot be loaded as Python module. | |
[Sat Sep 01 02:34:49.709367 2018] [wsgi:error] [pid 21086:tid 140258154882816] [client 197.255.174.176:15029] mod_wsgi (pid=21086): Exception occurred processing WSGI script '/var/www/c |
NewerOlder