0

Please help me to solve this problem.

I installed Django-cms, I plan to do a monolingual site. When installing I still need to enter a language code. I introduced the RU.

The problem is that when loading any page it adds the following to the web address

/ru/ 

I need an address which isn't in the language code

Gerwin
  • 1,572
  • 5
  • 23
  • 51
Stackow3
  • 61
  • 1
  • 1
  • 5

1 Answers1

2

Original answer from @ppetrid in How to remove the language identifier from django-cms 2.4 URLs?

I know django-cms is already 3.x version but it should work,

replace this pattern registration:

urlpatterns = i18n_patterns('',
 url(r'^admin/', include(admin.site.urls)),
 url(r'^', include('cms.urls')),
)

with this:

from django.conf.urls import patterns

urlpatterns = patterns('',
  url(r'^admin/', include(admin.site.urls)),
  url(r'^', include('cms.urls')),
)
Community
  • 1
  • 1
Anzel
  • 19,825
  • 5
  • 51
  • 52