This the urls.py as created by installer:
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from cms.sitemaps import CMSSitemap
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
admin.autodiscover()
urlpatterns = [
url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap',
{'sitemaps': {'cmspages': CMSSitemap}}),
url(r'^select2/', include('django_select2.urls')),
]
urlpatterns += i18n_patterns('',
url(r'^admin/', include(admin.site.urls)), # NOQA
url(r'^', include('cms.urls')),
)
# This is only needed when using runserver.
if settings.DEBUG:
urlpatterns = [
url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
] + staticfiles_urlpatterns() + urlpatterns
On Sunday, February 5, 2017 at 2:59:57 PM UTC-5, GCA Black wrote:
>
> Hey All,
> I'm missing something simple here; I cannot seem to figure out how to
> enforce login to view pages (user login/registration), does this
> functionality have to be done at the django level and not django-cms? I
> used the djangocms installer, and in the admin I'm able to turn on view
> permissions on a page, but once I log out and browse to the page, I get a
> 404 error saying the in the site urls.py there is no pattern matching
> accounts/login -- what and where do I need to add, enable this? Help will
> be greatly appreciated!
>
--
Message URL:
https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id
Unsubscribe: send a message to
[email protected]
---
You received this message because you are subscribed to the Google Groups
"django CMS developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/django-cms-developers/bcee721b-ffa2-4b0c-b0b5-12c1b1b24951%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.