Open marksweb opened 6 years ago
page-detail
is the fundamental django cms view and hasn't changed in ages.
Could you post INSTALLED_APPS and urls.py?
Is plain django CMS working nicely in the "boring" way?
@yakky Yeah the CMS works just fine. I set up a demo project with divio's api & react app then installed this app on that project after you told me about it last night. I'm trying to get the two setup in the same project so I can compare them to see what approach we may be able to take.
I couldn't find the page-detail
URL/view while searching CMS so wondered if something had changed - I'm not as knowledgable about the internals as I'd like to be.
INSTALLED_APPS = [
'djangocms_admin_style',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.sitemaps',
'django.contrib.staticfiles',
'django.contrib.messages',
'cms',
'menus',
'sekizai',
'treebeard',
'djangocms_text_ckeditor',
'djangocms_style',
'djangocms_column',
'filer',
'easy_thumbnails',
'cmsplugin_filer_image',
'cmsplugin_filer_file',
'cmsplugin_filer_folder',
'cmsplugin_filer_teaser',
'cmsplugin_filer_utils',
'cmsplugin_filer_video',
'djangocms_googlemap',
'djangocms_inherit',
'djangocms_link',
# 'reversion',
'example_site',
'plugins',
'rest_framework',
# 'djangocms_rest_api',
'djangocms_rest_view',
'djangocms_rest_view.client',
'corsheaders',
]
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib.sitemaps.views import sitemap
from django.views.static import serve
from cms.sitemaps import CMSSitemap
admin.autodiscover()
urlpatterns = [
url(r'^sitemap\.xml$', sitemap,
{'sitemaps': {'cmspages': CMSSitemap}}),
url(r'^select2/', include('django_select2.urls')),
]
urlpatterns += i18n_patterns(
url(r'^admin/', admin.site.urls),
# url(r'^api/', include('djangocms_rest_api.urls', namespace='api')),
url(r'^api/', include('djangocms_rest_view.urls', namespace='api')),
url(r'^rest/', include('djangocms_rest_view.client.urls')),
url(r'^', include('cms.urls')),
)
# This is only needed when using runserver.
if settings.DEBUG:
urlpatterns = [
url(r'^media/(?P<path>.*)$', serve, # NOQA
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
] + staticfiles_urlpatterns() + urlpatterns # NOQA
:thinking:
Just trying to get the app setup to see if it meets some requirements for a project & I'm seeing
reverse('page-detail', args=(obj.pk,))
from the navigation & page serializers.Is this URL expected in CMS & perhaps existed in an older version of CMS?
I'm using;
Full traceback