N
N
Niko True2015-11-26 17:40:05
Django
Niko True, 2015-11-26 17:40:05

How to override models in python?

I'm a newbie, maybe the question is trivially solved, but I can't find the answer in any way.
I installed the Pina-blog application and decided to connect ckeditor.
The gag occurred at the moment when it is necessary to define ckeditor in the models, but the mdoels.py file was not pulled into the directory with the application, probably it should be so.
I found this file in the virtual environment and saw this:

markup = models.CharField(max_length=25, choices=settings.PINAX_BLOG_MARKUP_CHOICES)

I understand that you can set the editor in settings.py, right?
But how exactly - I do not know, I ask for your help. I take the editor from here .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-11-26
@sim3x

Start simple https://docs.djangoproject.com/en/1.8/intro/tutorial01/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question