main.py


SUBMITTED BY: Guest

DATE: April 8, 2013, 10:50 p.m.

FORMAT: Python

SIZE: 351 Bytes

HITS: 1135

  1. #!/usr/bin/env python
  2. import sys, os
  3. package_dir = "packages"
  4. package_dir_path = os.path.join(os.path.dirname(__file__), package_dir)
  5. sys.path.insert(0, package_dir_path)
  6. import bottle
  7. from app import views
  8. bottle.debug(True) # Only for debugging purposes, set to False in production
  9. bottle.run(server='gae')

comments powered by Disqus