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
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;








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.










share|improve this question






















  • 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

















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.










share|improve this question






















  • 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













0












0








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












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
);



);













draft saved

draft discarded


















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.



















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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
4fODPFrjZ,nR9 xX966ltv8iX8hy3r7PB,KF 0pzoDX9k

Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현