Skip to content
This repository was archived by the owner on Feb 27, 2021. It is now read-only.
This repository was archived by the owner on Feb 27, 2021. It is now read-only.

Object of type 'WSGIRequest' is not JSON serializable #24

@yaserrahimi

Description

@yaserrahimi

my code:


@background(schedule=60)
def g_trends(request):
	get_trends()
	return HttpResponse('hello')

when i run code in django and i get to my url for that function i get this error:
Object of type 'WSGIRequest' is not JSON serializable
how can i fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions