Add more details to package page

This commit is contained in:
rubenwardy
2018-03-20 02:17:33 +00:00
parent d17535fc78
commit d3484d96e1
5 changed files with 76 additions and 9 deletions

View File

@@ -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):