kezhenxu94 commented on issue #5285:
URL: https://github.com/apache/skywalking/issues/5285#issuecomment-671392867


   > I tested Django==3.1, apache-skywalking==0.2.0. it worked well 
@shuguang-dong
   > 
   > ```
   > import sys
   > import time
   > 
   > from skywalking import agent, config
   > 
   > from django.conf import settings
   > from django.conf.urls import url
   > from django.http import JsonResponse
   > 
   > 
   > config.service_name = "provider"
   > config.logging_level = "DEBUG"
   > agent.start()
   > 
   > 
   > settings.configure(
   >     DEBUG=True,
   >     ROOT_URLCONF=__name__,
   >     ALLOWED_HOSTS=['*'],
   > )
   > 
   > 
   > def index(request):
   >     time.sleep(0.5)
   >     return JsonResponse({"song": "Despacito", "artist": "Luis Fonsi"})
   > 
   > 
   > urlpatterns = (
   >     url("users", index),
   > )
   > 
   > 
   > if __name__ == "__main__":
   >     from django.core.management import execute_from_command_line
   > 
   >     execute_from_command_line(sys.argv)
   > ```
   > 
   > cmd: python3 test_django.py runserver 0.0.0.0:9090
   
   It's quite expected because we run the test cases over and over in the CI, 
and I'm pretty sure it's just a version incompatibility issue fixed by 
@Humbertzhang in https://github.com/apache/skywalking-python/pull/52 in the 
master branch now(not included in the 0.2.0), I'll close this for now and if 
you @shuguang-dong have any further question, please comment here


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to