Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName japanesepractice.local
- ServerAlias www.japanesepractice.local
- WSGIDaemonProcess japanesepractice user=leonardo group=leonardo threads=5
- WSGIScriptAlias / /var/www/japanesepractice.local/japanese.wsgi
- <Directory /var/www/japanesepractice.local>
- WSGIProcessGroup japanesepractice
- WSGIApplicationGroup %{GLOBAL}
- Order allow,deny
- Allow from all
- </Directory>
- Alias /static/ /var/www/japanesepractice.local/static
- <Directory /var/www/japanesepractice.local/static>
- Order allow,deny
- Allow from all
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
- # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
- # -*- coding: utf-8 -*-
- from flask import Flask
- from flask import render_template
- from flask import request
- from service import kanjiservice
- app = Flask(__name__)
- @app.route('/')
- def homepage():
- return render_template('index.html')
- #!/usr/bin/python2
- activate_this = '/var/www/japanesepractice.local/venv/bin/activate_this.py'
- execfile(activate_this, dict(__file__=activate_this))
- import sys
- sys.path.insert(0, '/var/www/japanesepractice.local')
- from app import app as application
Add Comment
Please, Sign In to add comment