Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken image, language and page settings issues #187

Open
trueman61 opened this issue Dec 21, 2019 · 8 comments
Open

Broken image, language and page settings issues #187

trueman61 opened this issue Dec 21, 2019 · 8 comments

Comments

@trueman61
Copy link

trueman61 commented Dec 21, 2019

Hi,

1- Images in the pages list are broken and the selected language does not show.

Broken Image and Language

2- Unable to display content area and seo option tools. Also, I get the warning when choosing a different template or language.

Content, Seo Area and Other

@batiste
Copy link
Owner

batiste commented Dec 24, 2019

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

@batiste
Copy link
Owner

batiste commented Dec 24, 2019

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?

@trueman61
Copy link
Author

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.

@batiste
Copy link
Owner

batiste commented Dec 31, 2019

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?

@trueman61
Copy link
Author

I'm install it according to the documents.

I'm using;
virtualenv,
Windwos 10,
Django 2.2.7

@batiste
Copy link
Owner

batiste commented Jan 3, 2020

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

@trueman61
Copy link
Author

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

@batiste
Copy link
Owner

batiste commented Jan 5, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants