摘要: 1 import socketserver 2 3 class MySocket(socketserver.BaseRequestHandler): 4 5 def handle(self): 6 7 self.request.sendall(bytes('不要连我', encoding='utf-8')) 8 9 while T... 阅读全文
posted @ 2018-05-29 21:33 BensonChang 阅读(98) 评论(0) 推荐(0) 编辑
摘要: aricle.tpl 文件内容 <!DOCTYPE html> <html lang="en"><head> <meta charset="UTF-8"> <title></title></head><body> <table border="1"> <thead> <tr> <th>ID</th> 阅读全文
posted @ 2018-05-29 19:59 BensonChang 阅读(119) 评论(0) 推荐(0) 编辑
摘要: CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/1", "OPTIONS": { "CLIENT_CLASS": "django_redis 阅读全文
posted @ 2018-05-29 15:45 BensonChang 阅读(163) 评论(0) 推荐(0) 编辑