Django CMS 2.4.x Documentation
7 django cms Documentation, Release 2.4.3-support https://docs.djangoproject.com/en/dev/topics/i18n/translation/#internationalization-in-url-patterns If you are still running django 1.3 you are able to SessionMiddleware. • Be sure that the cms.urls is included in a i18n_patterns: from django.conf.urls.defaults import * from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django.conf 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/(0 码力 | 104 页 | 709.98 KB | 6 月前3Django CMS 3.0.x Documentation
powers sites both large and small. Here are a few of the key features: • robust internationalisation (i18n) support for creating multilingual sites • virtually unlimited undo history, allowing editors to revert Activate Django I18N / L10N setting: yes • Install and configure reversion support: yes • Languages to enable. Option can be provided multiple times, or as a comma separated list: en, de • Optional default context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.i18n', 'django.core.context_processors.request', 'django.core.context_processors.media', 'django.core.context_processors0 码力 | 180 页 | 1.56 MB | 6 月前3Django CMS 3.11.10 Documentation
powers sites both large and small. Here are a few of the key features: robust internationalisation (i18n) support for creating multilingual sites front-end editing, providing rapid access to the content management are not migrating a version 3 project Add to settings.py: LANGUAGES = [ ("en", "English"), ("de", "German"), ("it", "Italian"), ] LANGUAGE_CODE = "en" pip install psycopg2 # for Postgres "context_processors": [ ... "django.template.context_processors.i18n", Middleware in your MIDDLEWARE [https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-MIDDLEWARE]0 码力 | 493 页 | 1.44 MB | 6 月前0.03Django CMS 2.2.x Documentation
TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.i18n', 'django.core.context_processors.request', 'django.core.context_processors.media', 'django.core.context_processors are available: • WYM_TOOLS • WYM_CONTAINERS • WYM_CLASSES • WYM_STYLES • WYM_STYLESHEET 1.5.4 I18N and L10N CMS_HIDE_UNTRANSLATED Default: True By default django CMS hides menu items that are not yet translated Defines the languages available in django CMS. Example: CMS_LANGUAGES = ( ('fr', gettext('French')), ('de', gettext('German')), ('en', gettext('English')), ) Note: Make sure you only define languages which0 码力 | 76 页 | 627.98 KB | 6 月前3django cms 3.1.x Documentation
sites both large and small. Here are a few of the key features: • robust internationalisation (i18n) support for creating multilingual sites • virtually unlimited undo history, allowing editors to revert Activate Django I18N / L10N setting: yes • Install and configure reversion support: yes • Languages to enable. Option can be provided multiple times, or as a comma separated list: en, de • Optional default Table of contents django cms Documentation, Release 3.1.8.dev1 'django.core.context_processors.i18n', 'django.core.context_processors.request', 'django.core.context_processors.media', 'django.core.context_processors0 码力 | 200 页 | 1.63 MB | 1 年前3Django CMS 2.3.x Documentation
TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.i18n', 'django.core.context_processors.request', 'django.core.context_processors.media', 'django.core.context_processors are available: • WYM_TOOLS • WYM_CONTAINERS • WYM_CLASSES • WYM_STYLES • WYM_STYLESHEET 2.3.4 I18N and L10N CMS_HIDE_UNTRANSLATED Default: True By default django CMS hides menu items that are not yet translated Defines the languages available in django CMS. Example: CMS_LANGUAGES = ( ('fr', gettext('French')), ('de', gettext('German')), ('en', gettext('English')), ) Note: Make sure you only define languages which0 码力 | 92 页 | 666.41 KB | 6 月前3Django CMS 2.4.x Documentation
Configuration 3.1. Required Settings 3.2. Basic Customization 3.3. Editor configuration 3.4. I18N and L10N 3.5. Media Settings 3.6. URLs 3.7. Advanced Settings 4. Navigation 4.1. show_menu 4.2. show_menu_below_id helpers. For django 1.4 more infos can be found here: https://docs.djangoproject.com/en/dev/topics/i18n/translation/#internationalizati on-in-url-patterns If you are still running django 1.3 you are able SessionMiddleware. Be sure that the cms.urls is included in a i18n_patterns: from django.conf.urls.defaults import * from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django0 码力 | 156 页 | 727.78 KB | 6 月前3django cms 3.10.x Documentation
sites both large and small. Here are a few of the key features: • robust internationalisation (i18n) support for creating multilingual sites • front-end editing, providing rapid access to the content ordering ). Add the poll URL configuration to urlpatterns in the project’s urls.py: urlpatterns += i18n_patterns( re_path(r'^admin/', include(admin.site.urls)), re_path(r'^polls/', include('polls.urls')) and must include the language in LANGUAGE_CODE. For example: LANGUAGES = [ ('en', 'English'), ('de', 'German'), ] (For simplicity’s sake, at this stage it is worth changing the default en-us in that0 码力 | 296 页 | 1.79 MB | 1 年前3django cms 4.1.x Documentation
sites both large and small. Here are a few of the key features: • robust internationalisation (i18n) support for creating multilingual sites • front-end editing, providing rapid access to the content and must include the language in LANGUAGE_CODE. For example: LANGUAGES = [ ("en", "English"), ("de", "German"), ("it", "Italian"), ] LANGUAGE_CODE = "en" (For simplicity’s sake, at this stage it is TEMPLATES = [ { ... "OPTIONS": { "context_processors": [ ... "django.template.context_processors.i18n", "sekizai.context_processors.sekizai", ], }, }, ] 5.2. Django/Python compatibility table 19 django0 码力 | 357 页 | 1.99 MB | 1 年前3django cms 4.1.1 Documentation
sites both large and small. Here are a few of the key features: • robust internationalisation (i18n) support for creating multilingual sites • front-end editing, providing rapid access to the content and must include the language in LANGUAGE_CODE. For example: LANGUAGES = [ ("en", "English"), ("de", "German"), ("it", "Italian"), ] LANGUAGE_CODE = "en" (For simplicity’s sake, at this stage it is TEMPLATES = [ { ... "OPTIONS": { "context_processors": [ ... "django.template.context_processors.i18n", "sekizai.context_processors.sekizai", ], }, }, ] 5.2. Django/Python compatibility table 19 django0 码力 | 361 页 | 2.00 MB | 1 年前3
共 93 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10