how can I serialize ckeditor “richtextfield” in django rest api?How to disable admin-style browsable interface of django-rest-framework?Django REST framework: non-model serializerDjango Rest Framework File UploadDjango Rest Framework - Could not resolve URL for hyperlinked relationship using view name “user-detail”How to serialize hierarchical relationship in Django RESTAdditional field while serializing django rest frameworkdjango-rest-framework 3.0 create or update in nested serializerSerializers in django rest frameworkSerializing a Django form using django-rest-framework-bracesDjango REST - Serialize User.get_all_permissions

Multi tool use
Are there any double stars that I can actually see orbit each other?
Alternatives to using writing paper for writing practice
Doing research in academia and not liking competition
Was adding milk to tea started to reduce employee tea break time?
Meaning of slash chord without anything left of the slash
Behavior of the zero and negative/sign flags on classic instruction sets
Published paper containing well-known results
Do native speakers use ZVE or CPU?
Can a continent naturally split into two distant parts within a week?
Why hasn't the U.S. government paid war reparations to any country it attacked?
Is a public company able to check out who owns its shares in very detailed format?
Cubic programming and beyond?
Access files in Home directory from live mode
Add region constraint to Graphics
Why is the total number of hard disk sectors shown in fdisk not the same as theoretical calculation?
Is killing off one of my queer characters homophobic?
Does Google Maps take into account hills/inclines for route times?
Console-based BlackJack in C# - Follow-Up
Would letting a multiclass character rebuild their character to be single-classed be game-breaking?
Could the crash sites of the Apollo 11 and 16 LMs be seen by the LRO?
Redox reactions redefined
Is it rude to tell recruiters I would only change jobs for a better salary?
Possible isometry groups of open manifolds
Is `curl something | sudo bash -` a reasonably safe installation method?
how can I serialize ckeditor “richtextfield” in django rest api?
How to disable admin-style browsable interface of django-rest-framework?Django REST framework: non-model serializerDjango Rest Framework File UploadDjango Rest Framework - Could not resolve URL for hyperlinked relationship using view name “user-detail”How to serialize hierarchical relationship in Django RESTAdditional field while serializing django rest frameworkdjango-rest-framework 3.0 create or update in nested serializerSerializers in django rest frameworkSerializing a Django form using django-rest-framework-bracesDjango REST - Serialize User.get_all_permissions
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a field in models that is richtextfield and I want to add it to the views using serializer. it worked fine in the admin page but not in the browser page.
I am using django rest framework, I am planning to use front end framework.
I don't know exactly how the field will look like in CreateAPIView.
django-rest-framework ckeditor
|
show 1 more comment
I have a field in models that is richtextfield and I want to add it to the views using serializer. it worked fine in the admin page but not in the browser page.
I am using django rest framework, I am planning to use front end framework.
I don't know exactly how the field will look like in CreateAPIView.
django-rest-framework ckeditor
Can you describe why it's not working in the browser page? It'll be helpful if you can provide your Model and Serializer, and View (, Viewset or Router) classes.
– Dwight Gunning
Mar 26 at 6:44
actually, I am facing another problem, all my views are giving me 404: ("detail": "Not found."), I am using CreateAPIView, RetrieveUpdateDestroyAPIView, I am not using viewsets. it was working before adding new models and ckeditor so I am supposing that its fault.
– omeraiman
Mar 26 at 6:58
Assuming you're requesting the 'retrieve' endpoint for a specific model (usually with an id/pk in the URL) you'll want to check the url is correct, the request is authenticated properly / permissions are appropriate on the View, and that the Model you're retrieving actually exists in the database.
– Dwight Gunning
Mar 26 at 7:07
after digging deeper in this issue I got this: GET /favicon.ico HTTP/1.1" 404 2773 I installed django favicon but still not working, do you know a solution, please?
– omeraiman
Mar 26 at 18:12
1
Thank you @dwight for helping me solving the problem. The issue was in the urls priorities, I gave the same first name for all(profile/create, update, view), I changed the createview url making it create/profile, and it worked. Another issue poped out, the user_id i was requesting to fill the profile field, i was using StringField with defaultuser I changed it to hiddenField, then it worked perfectly.
– omeraiman
Mar 26 at 22:28
|
show 1 more comment
I have a field in models that is richtextfield and I want to add it to the views using serializer. it worked fine in the admin page but not in the browser page.
I am using django rest framework, I am planning to use front end framework.
I don't know exactly how the field will look like in CreateAPIView.
django-rest-framework ckeditor
I have a field in models that is richtextfield and I want to add it to the views using serializer. it worked fine in the admin page but not in the browser page.
I am using django rest framework, I am planning to use front end framework.
I don't know exactly how the field will look like in CreateAPIView.
django-rest-framework ckeditor
django-rest-framework ckeditor
asked Mar 26 at 6:09


omeraimanomeraiman
357 bronze badges
357 bronze badges
Can you describe why it's not working in the browser page? It'll be helpful if you can provide your Model and Serializer, and View (, Viewset or Router) classes.
– Dwight Gunning
Mar 26 at 6:44
actually, I am facing another problem, all my views are giving me 404: ("detail": "Not found."), I am using CreateAPIView, RetrieveUpdateDestroyAPIView, I am not using viewsets. it was working before adding new models and ckeditor so I am supposing that its fault.
– omeraiman
Mar 26 at 6:58
Assuming you're requesting the 'retrieve' endpoint for a specific model (usually with an id/pk in the URL) you'll want to check the url is correct, the request is authenticated properly / permissions are appropriate on the View, and that the Model you're retrieving actually exists in the database.
– Dwight Gunning
Mar 26 at 7:07
after digging deeper in this issue I got this: GET /favicon.ico HTTP/1.1" 404 2773 I installed django favicon but still not working, do you know a solution, please?
– omeraiman
Mar 26 at 18:12
1
Thank you @dwight for helping me solving the problem. The issue was in the urls priorities, I gave the same first name for all(profile/create, update, view), I changed the createview url making it create/profile, and it worked. Another issue poped out, the user_id i was requesting to fill the profile field, i was using StringField with defaultuser I changed it to hiddenField, then it worked perfectly.
– omeraiman
Mar 26 at 22:28
|
show 1 more comment
Can you describe why it's not working in the browser page? It'll be helpful if you can provide your Model and Serializer, and View (, Viewset or Router) classes.
– Dwight Gunning
Mar 26 at 6:44
actually, I am facing another problem, all my views are giving me 404: ("detail": "Not found."), I am using CreateAPIView, RetrieveUpdateDestroyAPIView, I am not using viewsets. it was working before adding new models and ckeditor so I am supposing that its fault.
– omeraiman
Mar 26 at 6:58
Assuming you're requesting the 'retrieve' endpoint for a specific model (usually with an id/pk in the URL) you'll want to check the url is correct, the request is authenticated properly / permissions are appropriate on the View, and that the Model you're retrieving actually exists in the database.
– Dwight Gunning
Mar 26 at 7:07
after digging deeper in this issue I got this: GET /favicon.ico HTTP/1.1" 404 2773 I installed django favicon but still not working, do you know a solution, please?
– omeraiman
Mar 26 at 18:12
1
Thank you @dwight for helping me solving the problem. The issue was in the urls priorities, I gave the same first name for all(profile/create, update, view), I changed the createview url making it create/profile, and it worked. Another issue poped out, the user_id i was requesting to fill the profile field, i was using StringField with defaultuser I changed it to hiddenField, then it worked perfectly.
– omeraiman
Mar 26 at 22:28
Can you describe why it's not working in the browser page? It'll be helpful if you can provide your Model and Serializer, and View (, Viewset or Router) classes.
– Dwight Gunning
Mar 26 at 6:44
Can you describe why it's not working in the browser page? It'll be helpful if you can provide your Model and Serializer, and View (, Viewset or Router) classes.
– Dwight Gunning
Mar 26 at 6:44
actually, I am facing another problem, all my views are giving me 404: ("detail": "Not found."), I am using CreateAPIView, RetrieveUpdateDestroyAPIView, I am not using viewsets. it was working before adding new models and ckeditor so I am supposing that its fault.
– omeraiman
Mar 26 at 6:58
actually, I am facing another problem, all my views are giving me 404: ("detail": "Not found."), I am using CreateAPIView, RetrieveUpdateDestroyAPIView, I am not using viewsets. it was working before adding new models and ckeditor so I am supposing that its fault.
– omeraiman
Mar 26 at 6:58
Assuming you're requesting the 'retrieve' endpoint for a specific model (usually with an id/pk in the URL) you'll want to check the url is correct, the request is authenticated properly / permissions are appropriate on the View, and that the Model you're retrieving actually exists in the database.
– Dwight Gunning
Mar 26 at 7:07
Assuming you're requesting the 'retrieve' endpoint for a specific model (usually with an id/pk in the URL) you'll want to check the url is correct, the request is authenticated properly / permissions are appropriate on the View, and that the Model you're retrieving actually exists in the database.
– Dwight Gunning
Mar 26 at 7:07
after digging deeper in this issue I got this: GET /favicon.ico HTTP/1.1" 404 2773 I installed django favicon but still not working, do you know a solution, please?
– omeraiman
Mar 26 at 18:12
after digging deeper in this issue I got this: GET /favicon.ico HTTP/1.1" 404 2773 I installed django favicon but still not working, do you know a solution, please?
– omeraiman
Mar 26 at 18:12
1
1
Thank you @dwight for helping me solving the problem. The issue was in the urls priorities, I gave the same first name for all(profile/create, update, view), I changed the createview url making it create/profile, and it worked. Another issue poped out, the user_id i was requesting to fill the profile field, i was using StringField with defaultuser I changed it to hiddenField, then it worked perfectly.
– omeraiman
Mar 26 at 22:28
Thank you @dwight for helping me solving the problem. The issue was in the urls priorities, I gave the same first name for all(profile/create, update, view), I changed the createview url making it create/profile, and it worked. Another issue poped out, the user_id i was requesting to fill the profile field, i was using StringField with defaultuser I changed it to hiddenField, then it worked perfectly.
– omeraiman
Mar 26 at 22:28
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55350799%2fhow-can-i-serialize-ckeditor-richtextfield-in-django-rest-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55350799%2fhow-can-i-serialize-ckeditor-richtextfield-in-django-rest-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
mmrXPMeAmzsl HWg3xJQf6Y3S7ExaJui3RzUuA,PAyu5x 832y 9TRDjlJMHnID 58jBJ ntCZhBtfAs,I3oi,p5WOY
Can you describe why it's not working in the browser page? It'll be helpful if you can provide your Model and Serializer, and View (, Viewset or Router) classes.
– Dwight Gunning
Mar 26 at 6:44
actually, I am facing another problem, all my views are giving me 404: ("detail": "Not found."), I am using CreateAPIView, RetrieveUpdateDestroyAPIView, I am not using viewsets. it was working before adding new models and ckeditor so I am supposing that its fault.
– omeraiman
Mar 26 at 6:58
Assuming you're requesting the 'retrieve' endpoint for a specific model (usually with an id/pk in the URL) you'll want to check the url is correct, the request is authenticated properly / permissions are appropriate on the View, and that the Model you're retrieving actually exists in the database.
– Dwight Gunning
Mar 26 at 7:07
after digging deeper in this issue I got this: GET /favicon.ico HTTP/1.1" 404 2773 I installed django favicon but still not working, do you know a solution, please?
– omeraiman
Mar 26 at 18:12
1
Thank you @dwight for helping me solving the problem. The issue was in the urls priorities, I gave the same first name for all(profile/create, update, view), I changed the createview url making it create/profile, and it worked. Another issue poped out, the user_id i was requesting to fill the profile field, i was using StringField with defaultuser I changed it to hiddenField, then it worked perfectly.
– omeraiman
Mar 26 at 22:28