Skip to content
Snippets Groups Projects
Commit 3ed42d8b authored by Nathan Bills's avatar Nathan Bills
Browse files

Updated the app init for setting up paths for a virtual environment. Also...

Updated the app init for setting up paths for a virtual environment. Also adding the WSGI config file.
parent b3f66622
No related branches found
No related tags found
No related merge requests found
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0, '/var/www/MyMovieLibrary/')
from project import app as application
\ No newline at end of file
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
__version__ = '0.1' __version__ = '0.1'
import sys
sys.path.append('../pytmdb3/')
sys.path.append('/usr/local/lib/python2.7/dist-packages/')
sys.path.append('/usr/lib/python2.7/dist-packages/')
from functools import wraps from functools import wraps
from flask import Flask, session, redirect, url_for, request, render_template from flask import Flask, session, redirect, url_for, request, render_template
from flask_debugtoolbar import DebugToolbarExtension from flask_debugtoolbar import DebugToolbarExtension
from flask.ext.mongoengine import MongoEngine from flask.ext.mongoengine import MongoEngine
import sys
sys.path.append('../pytmdb3/')
from tmdb3 import set_key from tmdb3 import set_key
...@@ -16,7 +19,7 @@ app.config['MONGODB_SETTINGS'] = {'DB': 'my_movie_library'} ...@@ -16,7 +19,7 @@ app.config['MONGODB_SETTINGS'] = {'DB': 'my_movie_library'}
app.config['SMTP_USER'] = "" app.config['SMTP_USER'] = ""
app.config['SMTP_PASSWORD'] = "" app.config['SMTP_PASSWORD'] = ""
app.config['SMTP_SERVER'] = "smtp.gmail.com:587" app.config['SMTP_SERVER'] = "smtp.gmail.com:587"
app.config['TMDB_API_KEY'] = "" app.config['TMDB_API_KEY'] = "542606a6ccff81a0337dc370a0cbfc37"
set_key(app.config['TMDB_API_KEY']) set_key(app.config['TMDB_API_KEY'])
# app.config["MONGODB_SETTINGS"] = {'DB': "my_movie_library", # app.config["MONGODB_SETTINGS"] = {'DB': "my_movie_library",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment