SHARE
TWEET

Untitled

a guest Feb 11th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .htaccess :
  2.  
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteRule ^(media/.*)$ - [L]
  6. RewriteRule ^(admin_media/.*)$ - [L]
  7. RewriteRule ^(flask\.wsgi/.*)$ - [L]
  8. RewriteRule ^(.*)$ flask/flask.wsgi/$1 [QSA,PT,L]
  9.  
  10. flask.wsgi:
  11.  
  12. import os, sys
  13.  
  14. # edit your username below
  15. sys.path.append("/home/headrx/public_html/flask");
  16.  
  17. sys.path.insert(0, os.path.dirname(__file__))
  18. from myapp import app as application
  19.  
  20. # make the secret code a little better
  21. application.secret_key = 'secret'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top