Django CMS 3.0.x Documentationmanage your website. Switch to Draft mode to add and edit content. Try to switch between Live and Draft view, between Structure and Content mode, add plugins, move them around and delete them again. To add a information into a web page These correspond to the familiar Model-View-Template scheme: • the plugin model to store its configuration • the plugin view that works out what needs to be displayed • the plugin template ordering • paginator • preserve_fields • save_as • save_on_top • search_fields • show_full_result_count • view_on_site An aside on models and configuration The plugin model, the subclass of cms.models.pluginmodel0 码力 | 180 页 | 1.56 MB | 6 月前3
django cms 3.1.x Documentationyour website. Switch to Draft mode to add and edit content. Try to switch between Live and Draft view, between Structure and Content mode, add plugins, move them around and delete them again. To add 8.dev1 current application namespace is loaded (through a mixin) and thus it is available in the view to provide the configuration for the current namespace. Namespaces can be created on the fly in the = FaqConfig apphook_pool.register(FaqApp) We have all the basics in place. Now we’ll add a list view for the FAQ entries that only displays entries for the currently used namespace (views.py): from0 码力 | 200 页 | 1.63 MB | 1 年前3
django cms 3.3.x Documentationinformation into a web page These correspond to the familiar Model-View-Template scheme: the plugin model to store its configuration the plugin view that works out what needs to be displayed the plugin template list_per_page ordering paginator preserve_fields save_as save_on_top search_fields show_full_result_count view_on_site An aside on models and configuration The plugin model, the sub-class of cms.models.CMSPlugin 'main_view', name='app_main'), url(r'^sublevel/$', 'sample_view', name='app_sublevel'), ) attached to a page whose URL path is /hello/world/, its views will be exposed as follows: main_view at /hello/world/0 码力 | 386 页 | 1.56 MB | 1 年前3
django cms 3.7.x Documentationhandling this view (e.g. the list of polls) belongs to the same application as the one responsible for this toolbar menu. Often, this can be detected automatically, but in this case, the view belongs to language keyword plus language-code string to render content in the specified language (optional) The view in which you render your placeholder field must return the request [https://docs.djangoproject.com/en/2 JavaScriptCatalog admin.autodiscover() urlpatterns = i18n_patterns( url(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript- catalog'), ) urlpatterns += staticfiles_urlpatterns() # note the django CMS0 码力 | 409 页 | 1.67 MB | 1 年前3
Django CMS 3.9.x Documentationhandling this view (e.g. the list of polls) belongs to the same application as the one responsible for this toolbar menu. Often, this can be detected automatically, but in this case, the view belongs to the language keyword plus language-code string to render content in the specified language (optional) The view in which you render your placeholder field must return the request [https://docs.djangoproject.com/en/2 admin.autodiscover() urlpatterns = i18n_patterns( re_path(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'), ) urlpatterns += staticfiles_urlpatterns() # note the django CMS0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationhandling this view (e.g. the list of polls) belongs to the same application as the one responsible for this toolbar menu. Often, this can be detected automatically, but in this case, the view belongs to the language keyword plus language-code string to render content in the specified language (optional) The view in which you render your placeholder field must return the request [https://docs.djangoproject.com/en/2 admin.autodiscover() urlpatterns = i18n_patterns( re_path(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'), ) urlpatterns += staticfiles_urlpatterns() # note the django CMS0 码力 | 413 页 | 1.67 MB | 6 月前3
Django CMS 4.0.x Documentationhandling this view (e.g. the list of polls) belongs to the same appli- cation as the one responsible for this toolbar menu. Often, this can be detected automatically, but in this case, the view belongs to language keyword plus language-code string to render content in the specified language (optional) The view in which you render your placeholder field must return the request object in the context. This is JavaScriptCatalog admin.autodiscover() urlpatterns = i18n_patterns( re_path(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'), (continues on next page) 4.1. Django/Python compatibility table 430 码力 | 296 页 | 1.79 MB | 6 月前3
Django CMS 3.9.x Documentationhandling this view (e.g. the list of polls) belongs to the same appli- cation as the one responsible for this toolbar menu. Often, this can be detected automatically, but in this case, the view belongs to language keyword plus language-code string to render content in the specified language (optional) The view in which you render your placeholder field must return the request object in the context. This is JavaScriptCatalog admin.autodiscover() urlpatterns = i18n_patterns( re_path(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'), ) urlpatterns += staticfiles_urlpatterns() # note the django CMS URLs0 码力 | 298 页 | 1.79 MB | 6 月前3
django cms 3.6.x Documentationhandling this view (e.g. the list of polls) belongs to the same application as the one responsible for this toolbar menu. Often, this can be detected automatically, but in this case, the view belongs to language keyword plus language-code string to render content in the specified language (optional) The view in which you render your placeholder field must return the request object in the context. This is admin.autodiscover() urlpatterns = [ url(r'^jsi18n/(?P\S+?)/$', JavascriptCatalog.as_view()), ] urlpatterns += staticfiles_urlpatterns() # note the django CMS URLs included via i18n_patterns 0 码力 | 278 页 | 1.63 MB | 1 年前3
django cms 3.4.x Documentation**kwargs): return [ url(r'^$', PollListView.as_view()), url(r'^(?P[\w-]+)/?$', PollDetailView.as_view()), ] What this all means In the PollsApphook class, we information into a web page These correspond to the familiar Model-View-Template scheme: the plugin model to store its configuration the plugin view that works out what needs to be displayed the plugin template list_per_page ordering paginator preserve_fields save_as save_on_top search_fields show_full_result_count view_on_site An aside on models and configuration The plugin model, the sub-class of cms.models.pluginmodel 0 码力 | 395 页 | 1.64 MB | 1 年前3
共 82 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













