teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

変更

2019/05/22 04:27

投稿

django
django

スコア19

title CHANGED
File without changes
body CHANGED
@@ -139,7 +139,7 @@
139
139
  のようなエラーがでます。
140
140
  pythonを使い始めてまだ間もないのでわかる方お願いいたします。
141
141
 
142
- [自分が参考にしているURLです。](https://github.com/skyway/skyway-peer-authentication-samples/tree/master/python)
142
+ [自分が参考にしているURLです。](https://github.com/skyway/skyway-peer-authentication-samples/blob/master/README.jp.md)
143
143
 
144
144
  ###エラー追記
145
145
  ```

3

修正

2019/05/22 04:27

投稿

django
django

スコア19

title CHANGED
File without changes
body CHANGED
@@ -11,6 +11,11 @@
11
11
  ### 該当のソースコード
12
12
 
13
13
  ```views
14
+ from flask import request,redirect,url_for,render_template,flash,session
15
+ from Flask_app import app
16
+
17
+ 一部省略
18
+
14
19
  import hashlib
15
20
  import hmac
16
21
  import time

2

追記

2019/05/22 04:25

投稿

django
django

スコア19

title CHANGED
File without changes
body CHANGED
@@ -134,4 +134,35 @@
134
134
  のようなエラーがでます。
135
135
  pythonを使い始めてまだ間もないのでわかる方お願いいたします。
136
136
 
137
- [自分が参考にしているURLです。](https://github.com/skyway/skyway-peer-authentication-samples/tree/master/python)
137
+ [自分が参考にしているURLです。](https://github.com/skyway/skyway-peer-authentication-samples/tree/master/python)
138
+
139
+ ###エラー追記
140
+ ```
141
+ TypeError
142
+ TypeError: __init__() missing 1 required positional argument: 'server'
143
+
144
+ Traceback (most recent call last)
145
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\app.py", line 2328, in __call__
146
+ return self.wsgi_app(environ, start_response)
147
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\app.py", line 2314, in wsgi_app
148
+ response = self.handle_exception(e)
149
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\app.py", line 1760, in handle_exception
150
+ reraise(exc_type, exc_value, tb)
151
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\_compat.py", line 36, in reraise
152
+ raise value
153
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\app.py", line 2311, in wsgi_app
154
+ response = self.full_dispatch_request()
155
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\app.py", line 1834, in full_dispatch_request
156
+ rv = self.handle_user_exception(e)
157
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\app.py", line 1737, in handle_user_exception
158
+ reraise(exc_type, exc_value, tb)
159
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\_compat.py", line 36, in reraise
160
+ raise value
161
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\app.py", line 1832, in full_dispatch_request
162
+ rv = self.dispatch_request()
163
+ File "C:\Users\T\Anaconda3\envs\Flask\lib\site-packages\flask\app.py", line 1818, in dispatch_request
164
+ return self.view_functions[rule.endpoint](**req.view_args)
165
+ File "C:\Users\T\Desktop\Flask\Flask_app\Flask_app\views.py", line 20, in skyway
166
+ instance = PostHandler('test','test')
167
+ TypeError: __init__() missing 1 required positional argument: 'server'
168
+ ```

1

変更

2019/05/22 02:33

投稿

django
django

スコア19

title CHANGED
File without changes
body CHANGED
@@ -37,7 +37,7 @@
37
37
  #################################################
38
38
 
39
39
  def main():
40
- server = HTTPServer(('127.0.0.1', 5000), PostHandler)
40
+ server = HTTPServer(('localhost '、8080), PostHandler)
41
41
  print( 'Starting server, use <Ctrl-C> to stop')
42
42
  server.serve_forever()
43
43