Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

T模式下不能登陆 #4

Open
yishenggudou opened this issue May 26, 2013 · 1 comment
Open

T模式下不能登陆 #4

yishenggudou opened this issue May 26, 2013 · 1 comment

Comments

@yishenggudou
Copy link

我在aws上部署了twip
使用T模式
可是老不能登陆

202.108.14.240 - - [26/May/2013 12:33:37] "POST /twip/t/oauth/access_token HTTP/1.1" 500 -

setting文件如下

#!/usr/bin/env python
# vim: set fileencoding=utf-8 :

from __future__ import unicode_literals,\
    absolute_import, division, print_function

TWITTER_CONSUMER_KEY = 'dasdasdfasd'
TWITTER_CONSUMER_SECRET = '***************'
DEBUG = True
SECRET_KEY = str('')

twip文件

#!/usr/bin/env python
# vim: set fileencoding=utf-8 :

from __future__ import unicode_literals,\
    absolute_import, division, print_function

from flask import Flask
from flask.ext.twip import Twip
from flask.ext.twip.backend import FileBackend
from flask.ext.twip.environment import WSGIEnvironment

if __name__ == '__main__':
    app = Flask(__name__)
    app.config.from_object('settings')
    be = FileBackend(folder='/tmp/twip')
    twip = Twip(app, backend=be, environment=WSGIEnvironment)
    app.run(
        debug=False,
        host='0.0.0.0',
    )
@yegle
Copy link
Member

yegle commented Jun 17, 2013

Right now I haven't tested the transparent mode with any client. It's hard to find a client which supports twip t-mode nowadays.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants