我正在使用Sourcetree git客户端和git lab.我是版本控制的新手.有没有办法丢弃我的提交并返回.我还没推过那个提交.
我收到此错误...
“设置”类型的对象不是 JSON 可序列化的
这是我的代码
from django.conf import settings
import json
def get_settings(request):
responce = settings.__dict__
return HttpResponse(json.dumps(responce),content_type='application/json')
Run Code Online (Sandbox Code Playgroud)