added cors headers to settings file, and changed request.post to json.loads(request.body) for frontend #2
Loading…
Reference in a new issue
No description provided.
Delete branch "updateviews"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I updated the
Please approve.
@ -4,3 +4,3 @@from api.views.base import BaseViewfrom web.models.category import Categoryimport jsonimport json needs to be at the top of the file, in alphabetical order... there are three blocks of imports separated by blank space in between, first is python native packages, then third party packages, then packages we create.
fix in all files
@ -32,6 +32,7 @@ ALLOWED_HOSTS = []# Application definitionINSTALLED_APPS = ["corsheaders", # add before other appsremove ai comments, here and below
changes requested