Add useragent parsing
This commit is contained in:
parent
2b92acbc2a
commit
77bbcdd210
2 changed files with 4 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
|||
from sanic import Sanic
|
||||
from sanic_useragent import SanicUserAgent
|
||||
from lantern.route import main_route
|
||||
import os
|
||||
|
||||
app = Sanic(__name__)
|
||||
SanicUserAgent.init_app(app)
|
||||
|
||||
|
||||
def main():
|
||||
|
|
3
setup.py
3
setup.py
|
@ -5,7 +5,8 @@ setup(
|
|||
name="lantern",
|
||||
version="1.0",
|
||||
install_requires=[
|
||||
"sanic==0.4.1"
|
||||
"sanic==0.4.1",
|
||||
"sanic-useragent==0.1.2"
|
||||
],
|
||||
entry_points="""
|
||||
[console_scripts]
|
||||
|
|
Reference in a new issue