Reputation: 61
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
Upvotes: 0
Views: 319
Reputation: 20543
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')),
)
Upvotes: 2