Browse Source

add entry point for uwsgi

master
cinnaboot 7 years ago
parent
commit
6cbd71fcf0
  1. 1
      .gitignore
  2. 2
      video_metadata/views/file_listing.py
  3. 6
      wsgi_test.py

1
.gitignore vendored

@ -1,3 +1,4 @@
instance/* instance/*
__pycache__/ __pycache__/
tags tags
*.swp

2
video_metadata/views/file_listing.py

@ -13,7 +13,7 @@ bp = Blueprint('file_listing', __name__)
class path_entry: class path_entry:
def __init__(self): def __init__(self):
self.base_name = '' self.base_name = ''
self.rel_path = '' self.rel_path = '' # NOTE: fs path relative to config['MOVIE_DIR']
self.file_extension = '' self.file_extension = ''
self.is_dir = False self.is_dir = False
self.depth = 0 self.depth = 0

6
wsgi_test.py

@ -0,0 +1,6 @@
#!/bin/python
import video_metadata
app = video_metadata.create_app()
Loading…
Cancel
Save