Design an encrypted time-limited API on Client/Server side

2016-06-09 Thread Philip Lee
I am planning design an encrypted time-limited API on both Client and Server sides, the server side is written in Django, the client side is a GUI program which call the API by import requests c = requests.post("http://127.0.0.1:8000/VideoParser/;, data={'videoUrl': videoUrl }) The way it

Django doesn't email reporting an internal server error (HTTP status code 500)

2016-12-28 Thread Philip Lee
Please help! The question are also posted here http://stackoverflow.com/questions/41363888/django-doesnt-email-reporting-an-internal-server-error-http-status-code-500 I could send mail using the following code E:\Python\django-test\LYYDownloaderServer>python manage.py shell Python 3.5.2

using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread Philip Lee
I also posted The question here http://stackoverflow.com/questions/43185804/using-httphandler-cause-django-server-side-shows-http-400-and-invalid-http-host I am using HTTPHandler to send logging messages to a Django Web

The Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-03 Thread Philip Lee
I am using HTTPHandler to send logging messages to a Django Web server with The following code, > > import logging > import logging.handlers > logger = logging.getLogger('mylogger') > http_handler = logging.handlers.HTTPHandler('localhost:8000', > '/VideoParser/lYYDownloaderClientLog')#,