Add more details to package page
This commit is contained in:
@@ -7,8 +7,13 @@ import flask_menu as menu
|
||||
from flask.ext import markdown
|
||||
from sqlalchemy import func
|
||||
from werkzeug.contrib.cache import SimpleCache
|
||||
from urllib.parse import urlparse
|
||||
cache = SimpleCache()
|
||||
|
||||
@app.template_filter()
|
||||
def domain(url):
|
||||
return urlparse(url).netloc
|
||||
|
||||
# TODO: remove on production!
|
||||
@app.route('/static/<path:path>')
|
||||
def send_static(path):
|
||||
|
||||
Reference in New Issue
Block a user