D
D
Dmitry2015-07-03 14:51:16
Django
Dmitry, 2015-07-03 14:51:16

Why does ckeditor use a relative page path and not an absolute one?

The address of the page where I am in the admin panel:
site.com/admin/article/title
I am editing an article, I click to upload a photo, select from the server and a 404 page opens up for me at this address:
site.com/admin/article/title/ckeditor/browse
Of course 404 , because I don't have such a URL, the page should have opened:
site.com/ckeditor/browse
And now, if I take this link and paste it into the browser, then everything opens fine.
At the same time, on the test server, everything works fine, but on the production server, there is such a strange behavior, the settings are identical.
For some reason, it does not open at an absolute address, but at a relative one to this page.
I checked the documentation, I did not find instructions there for pages to open with respect to what.
urls.py

urlpatterns = patterns('',
    url(r'^ckeditor/', include('ckeditor.urls')),
)

I use: python(django1.7), django-ckeditor

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-07-03
@sim3x

in the model to which the editor attached the method

def get_absolute_url(self):
    return reverse(.....)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question