Django CMS default installation -


so, love django, it's not user friendly simple sites. and, installed django cms 2 (last stable), make in tutorial. meanwhile, want multilanguage site.

but, getting 404 error page. please check settings.py , urls.py. did wrong? why site doesn't auto redirect me en-us ? thank you, help.

error text

using urlconf defined in hackcoin.urls, django tried these url patterns, in order:  ^media/(?p<path>.*)$ ^static\/(?p<path>.*)$ ^en-us/  current url, , didn't match of these. 

settings.py

middleware_classes = ( ...    'cms.middleware.language.languagecookiemiddleware', )  languages = [     ('en', 'english'),     ('ru', 'russian'), ]  language_code = 'en-us' 

urls.py

from django.conf.urls.defaults import * django.conf.urls.i18n import i18n_patterns django.contrib import admin django.conf import settings  admin.autodiscover()  urlpatterns = i18n_patterns('',     url(r'^admin/', include(admin.site.urls)),     url(r'^', include('cms.urls')), )  if settings.debug:     urlpatterns = patterns('',     url(r'^media/(?p<path>.*)$', 'django.views.static.serve',         {'document_root': settings.media_root, 'show_indexes': true}),     url(r'', include('django.contrib.staticfiles.urls')), ) + urlpatterns 

try set language_code="en" , sure have django locale middleware installed


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -