Django CMS 3.11.10 Documentation
for a more consistent user experience. In the INSTALLED_APPS, before django.contrib.admin, add: Language settings django CMS requires you to set the LANGUAGES [https://docs.djangoproject.com/en/4.2/re you want your project to serve, and must include the language in LANGUAGE_CODE [https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-LANGUAGE_CODE]. For example: "django.contrib.sites", "cms" simplicity’s sake, at this stage it is worth changing the default en-us in that you’ll find in the LANGUAGE_CODE setting to en.) Database django CMS like most Django projects requires a relational database0 码力 | 493 页 | 1.44 MB | 6 月前0.03Django CMS 4.1.x Documentation
for a more consistent user experience. In the INSTALLED_APPS, before django.contrib.admin, add: Language settings django CMS requires you to set the LANGUAGES [https://docs.djangoproject.com/en/4.2/re you want your project to serve, and must include the language in LANGUAGE_CODE [https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-LANGUAGE_CODE]. For example: (For simplicity’s sake, at this this stage it is worth changing the default en-us in that you’ll find in the LANGUAGE_CODE setting to en.) Database django CMS like most Django projects requires a relational database backend. Each django0 码力 | 518 页 | 1.66 MB | 6 月前3django cms 4.1.x Documentation
"djangocms_admin_style", Language settings django CMS requires you to set the LANGUAGES setting. This should list all the languages you want your project to serve, and must include the language in LANGUAGE_CODE. For "German"), ("it", "Italian"), ] LANGUAGE_CODE = "en" (For simplicity’s sake, at this stage it is worth changing the default en-us in that you’ll find in the LANGUAGE_CODE setting to en.) Database django middleware.page.CurrentPageMiddleware", "cms.middleware.toolbar.ToolbarMiddleware", "cms.middleware.language.LanguageCookieMiddleware", to the list. You can also add 'cms.middleware.utils.ApphookReloadMiddleware'0 码力 | 357 页 | 1.99 MB | 1 年前3django cms 4.1.1 Documentation
"djangocms_admin_style", Language settings django CMS requires you to set the LANGUAGES setting. This should list all the languages you want your project to serve, and must include the language in LANGUAGE_CODE. For "German"), ("it", "Italian"), ] LANGUAGE_CODE = "en" (For simplicity’s sake, at this stage it is worth changing the default en-us in that you’ll find in the LANGUAGE_CODE setting to en.) Database django middleware.page.CurrentPageMiddleware", "cms.middleware.toolbar.ToolbarMiddleware", "cms.middleware.language.LanguageCookieMiddleware", to the list. You can also add 'cms.middleware.utils.ApphookReloadMiddleware'0 码力 | 361 页 | 2.00 MB | 1 年前3django cms 3.4.x Documentation
PollsApphook(CMSApp): app_name = "polls" name = _("Polls Application") def get_urls(self, page=None, language=None, **kwargs): return ["polls.urls"] Instead of defining the URL patterns in another file PollListView, PollDetailView class PollsApphook(CMSApp): # ... def get_urls(self, page=None, language=None, **kwargs): return [ url(r'^$', PollListView.as_view()), url(r'^( recommended. In the INSTALLED_APPS, before django.contrib.admin, add: 'djangocms_admin_style', Language settings django CMS requires you to set the LANGUAGES [https://docs.djangoproject.com/en/1.100 码力 | 395 页 | 1.64 MB | 1 年前3django cms 3.5.x Documentation
PollsApphook(CMSApp): app_name = "polls" name = _("Polls Application") def get_urls(self, page=None, language=None, **kwargs): return ["polls.urls"] Instead of defining the URL patterns in another file PollListView, PollDetailView class PollsApphook(CMSApp): # ... def get_urls(self, page=None, language=None, **kwargs): return [ url(r'^$', PollListView.as_view()), url(r'^( recommended. In the INSTALLED_APPS, before django.contrib.admin, add: 'djangocms_admin_style', Language settings django CMS requires you to set the LANGUAGES [https://docs.djangoproject.com/en/1.100 码力 | 403 页 | 1.69 MB | 1 年前3Django CMS 3.9.x Documentation
PollsApphook(CMSApp): app_name = "polls" name = "Polls Application" def get_urls(self, page=None, language=None, **kwargs): return ["polls.urls"] In this PollsApphook class, we have done several recommended. In the INSTALLED_APPS, before django.contrib.admin, add: 'djangocms_admin_style', Language settings django CMS requires you to set the LANGUAGES [https://docs.djangoproject.com/en/2.2/re you want your project to serve, and must include the language in LANGUAGE_CODE [https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-LANGUAGE_CODE]. For example: LANGUAGES = [ ('en', 'English')0 码力 | 417 页 | 1.68 MB | 6 月前3django cms 3.10.x Documentation
PollsApphook(CMSApp): app_name = "polls" name = "Polls Application" def get_urls(self, page=None, language=None, **kwargs): return ["polls.urls"] In this PollsApphook class, we have done several key things: 'djangocms_admin_style', Language settings django CMS requires you to set the LANGUAGES setting. This should list all the languages you want your project to serve, and must include the language in LANGUAGE_CODE. For simplicity’s sake, at this stage it is worth changing the default en-us in that you’ll find in the LANGUAGE_CODE setting to en.) Database django CMS requires a relational database backend. Each django CMS0 码力 | 296 页 | 1.79 MB | 1 年前3Django CMS 3.9.x Documentation
PollsApphook(CMSApp): app_name = "polls" name = "Polls Application" def get_urls(self, page=None, language=None, **kwargs): return ["polls.urls"] In this PollsApphook class, we have done several key things: Release 3.10.0 Language settings django CMS requires you to set the LANGUAGES setting. This should list all the languages you want your project to serve, and must include the language in LANGUAGE_CODE. For simplicity’s sake, at this stage it is worth changing the default en-us in that you’ll find in the LANGUAGE_CODE setting to en.) Database django CMS requires a relational database backend. Each django CMS0 码力 | 298 页 | 1.79 MB | 6 月前3Django CMS 3.8.x Documentation
PollsApphook(CMSApp): app_name = "polls" name = "Polls Application" def get_urls(self, page=None, language=None, **kwargs): return ["polls.urls"] In this PollsApphook class, we have done several recommended. In the INSTALLED_APPS, before django.contrib.admin, add: 'djangocms_admin_style', Language settings django CMS requires you to set the LANGUAGES [https://docs.djangoproject.com/en/2.2/re you want your project to serve, and must include the language in LANGUAGE_CODE [https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-LANGUAGE_CODE]. For example: LANGUAGES = [ ('en', 'English')0 码力 | 413 页 | 1.67 MB | 6 月前3
共 435 条
- 1
- 2
- 3
- 4
- 5
- 6
- 44