django-page-cms
django-page-cms copied to clipboard
Broken image, language and page settings issues
Hi,
1- Images in the pages list are broken and the selected language does not show.
2- Unable to display content area and seo option tools. Also, I get the warning when choosing a different template or language.
The warning is perfectly normal. It reloads the page without saving any changes you might have done. This is why you get this warning message
I also failed to reproduce any of the issues you reported. Could you please give more details on how you are running the software? Are you running the example CMS?
Thanks you for the answer. I using django v2.2.7, work in localhost. I had the same problems when I installed it from scratch outside my project.
Could give a precise instructions on how you did use and install the CMS? What are your running? Are you using virtualenv? Windows, mac or Linux? Which version of the CMS did you install? Package or local build?
I'm install it according to the documents.
I'm using; virtualenv, Windwos 10, Django 2.2.7
Are you using an old version of IE like IE11?
I see javascript error in the admin with IE11 (SEO options thing)... This CMS doesn't try very hard to be compatible with old IE...
But the rest seemed to work fine with me on a fresh install on Windows 7, latest Python version
![Screenshot 2020-01-03 at 14 30 51](https://user-images.githubusercontent.com/66927/71725920-d2066400-2e35-11ea-9a18-d92137ce4cd0.png)
I am not using IE. I'm using Chrome. He works for you. I have a problem, but I can't solve it.
Here are the codes I added:
urls.py
path('pages', include('pages.urls')),
settings.py
INSTALLED_APPS = [
'mptt',
'pages',
'taggit',
]
TEMPLATE_CONTEXT_PROCESSORS = (
'pages.context_processors.media',
)
PAGE_USE_SITE_ID = True
SITE_ID = 1
PAGE_DEFAULT_TEMPLATE = 'pages/index.html'
# Default language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'tr'
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
# here is all the languages supported by the CMS
PAGE_LANGUAGES = (
('de', gettext_noop('German')),
('fr', gettext_noop('Français')),
('en', gettext_noop('US English')),
('tr', gettext_noop('TR Turkish')),
)
# copy PAGE_LANGUAGES
languages = list(PAGE_LANGUAGES)
# redefine the LANGUAGES setting in order to be sure to have the correct request.LANGUAGE_CODE
LANGUAGES = languages
PAGE_TEMPLATES = (
('pages/nice.html', 'nice one'),
('pages/cool.html', 'cool one'),
)
PAGE_HIDE_ROOT_SLUG = True
PAGE_SHOW_END_DATE = True
PAGE_SHOW_START_DATE = True
PAGE_TAGGING = True
If the images do not load, maybe do a little bit of investigation. Open the images link in your browser to see where they are supposed to be and why they are not there...
Did you collect static files? Did you setup https://docs.djangoproject.com/en/3.0/ref/contrib/staticfiles/ correctly?
Could you do a bit of browser debugging with the SEO things? Do you get any errors in the browser console?