 Django CMS 3.0.x Documentation(NOTE: not in the Polls Plugin application we were working with in the previous tutorial): from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.toolbar_pool that navigation menu. For this we need a file called menu.py in the Polls application: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.menu_bases CMS plugin instead of the djangocms_file, djangocms_picture, djangocms_teaser and djangocms_video core plug- ins. In this case you should check the django-filer documentation and django CMS plugin documentation0 码力 | 180 页 | 1.56 MB | 6 月前3 Django CMS 3.0.x Documentation(NOTE: not in the Polls Plugin application we were working with in the previous tutorial): from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.toolbar_pool that navigation menu. For this we need a file called menu.py in the Polls application: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.menu_bases CMS plugin instead of the djangocms_file, djangocms_picture, djangocms_teaser and djangocms_video core plug- ins. In this case you should check the django-filer documentation and django CMS plugin documentation0 码力 | 180 页 | 1.56 MB | 6 月前3
 django cms 3.1.x DocumentationFor this we need a file called menu.py in our application. Add polls_plugin/menu.py: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ 5.1. Tutorials policies regulating the django CMS project development. Adhering to them will make much easier for the core developers to validate and accept your contri- bution. The basic step to contribute are: 1. fork are set in the returned context """ from cms.api import create_page my_page = create_page('home', language='en', template='col_two.html') placeholder = my_page.placeholders.get(slot='col_left') context =0 码力 | 200 页 | 1.63 MB | 1 年前3 django cms 3.1.x DocumentationFor this we need a file called menu.py in our application. Add polls_plugin/menu.py: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ 5.1. Tutorials policies regulating the django CMS project development. Adhering to them will make much easier for the core developers to validate and accept your contri- bution. The basic step to contribute are: 1. fork are set in the returned context """ from cms.api import create_page my_page = create_page('home', language='en', template='col_two.html') placeholder = my_page.placeholders.get(slot='col_left') context =0 码力 | 200 页 | 1.63 MB | 1 年前3
 django cms 3.4.x DocumentationPollsApphook(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'^( file called cms_menus.py in our application. Add cms_menus.py in polls_cms_integration/: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.menu_bases0 码力 | 395 页 | 1.64 MB | 1 年前3 django cms 3.4.x DocumentationPollsApphook(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'^( file called cms_menus.py in our application. Add cms_menus.py in polls_cms_integration/: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.menu_bases0 码力 | 395 页 | 1.64 MB | 1 年前3
 django cms 3.5.x DocumentationPollsApphook(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'^( file called cms_menus.py in our application. Add cms_menus.py in polls_cms_integration/: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.menu_bases0 码力 | 403 页 | 1.69 MB | 1 年前3 django cms 3.5.x DocumentationPollsApphook(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'^( file called cms_menus.py in our application. Add cms_menus.py in polls_cms_integration/: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.menu_bases0 码力 | 403 页 | 1.69 MB | 1 年前3
 django cms 3.3.x DocumentationPollsApphook(CMSApp): app_name = "polls" name = _("Polls Application") def get_urls(self, page=None, language=None, **kwargs): return ["polls.urls"] apphook_pool.register(PollsApphook) # register the file called cms_menus.py in our application. Add cms_menus.py in polls_cms_integration/: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.menu_bases gin-filer] instead of the djangocms_file, djangocms_picture, djangocms_teaser and djangocms_video core plugins. In this case you should check the django-filer documentation and django CMS plugin documentation0 码力 | 386 页 | 1.56 MB | 1 年前3 django cms 3.3.x DocumentationPollsApphook(CMSApp): app_name = "polls" name = _("Polls Application") def get_urls(self, page=None, language=None, **kwargs): return ["polls.urls"] apphook_pool.register(PollsApphook) # register the file called cms_menus.py in our application. Add cms_menus.py in polls_cms_integration/: from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from cms.menu_bases gin-filer] instead of the djangocms_file, djangocms_picture, djangocms_teaser and djangocms_video core plugins. In this case you should check the django-filer documentation and django CMS plugin documentation0 码力 | 386 页 | 1.56 MB | 1 年前3
 Django CMS 3.11.10 DocumentationPhilosophy The design philosophy of django CMS is to solve something complex with many simple things. The core of django CMS is designed to be simple and integrate with simple packages to create complex applications framework. You’ll need to set a SITE_ID in the settings - SITE_ID = 1 will suffice. cms and menus are the core django CMS modules. django-treebeard [http://django-treebeard.readthedocs.io] is used to manage django 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/re0 码力 | 493 页 | 1.44 MB | 6 月前0.03 Django CMS 3.11.10 DocumentationPhilosophy The design philosophy of django CMS is to solve something complex with many simple things. The core of django CMS is designed to be simple and integrate with simple packages to create complex applications framework. You’ll need to set a SITE_ID in the settings - SITE_ID = 1 will suffice. cms and menus are the core django CMS modules. django-treebeard [http://django-treebeard.readthedocs.io] is used to manage django 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/re0 码力 | 493 页 | 1.44 MB | 6 月前0.03
 django cms 3.7.x DocumentationPollsApphook(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 the same territory as the Tutorials, but in more detail. Set-up Install django CMS by hand Using core functionality Use placeholders outside the CMS Serve multiple languages Work with templates Manage framework. You’ll need to set a SITE_ID in the settings - SITE_ID = 1 will suffice. cms and menus are the core django CMS modules. django-treebeard [http://django-treebeard.readthedocs.io] is used to manage django0 码力 | 409 页 | 1.67 MB | 1 年前3 django cms 3.7.x DocumentationPollsApphook(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 the same territory as the Tutorials, but in more detail. Set-up Install django CMS by hand Using core functionality Use placeholders outside the CMS Serve multiple languages Work with templates Manage framework. You’ll need to set a SITE_ID in the settings - SITE_ID = 1 will suffice. cms and menus are the core django CMS modules. django-treebeard [http://django-treebeard.readthedocs.io] is used to manage django0 码力 | 409 页 | 1.67 MB | 1 年前3
 Django 5.1.2 Documentationabout Django Form classes Working with form templates Further topics Templates The Django template language Support for template engines Class-based views Introduction to class-based views Built-in class-based with a legacy database Give Django your database parameters Auto-generate the models Install the core Django tables Test and tweak How to configure and use logging Make a basic logging call Customize Django Why do I get an error about importing DJANGO_SETTINGS_MODULE? I can’t stand your template language. Do I have to use it? Do I have to use your model/database layer? How do I use image and file fields0 码力 | 3519 页 | 3.17 MB | 1 年前3 Django 5.1.2 Documentationabout Django Form classes Working with form templates Further topics Templates The Django template language Support for template engines Class-based views Introduction to class-based views Built-in class-based with a legacy database Give Django your database parameters Auto-generate the models Install the core Django tables Test and tweak How to configure and use logging Make a basic logging call Customize Django Why do I get an error about importing DJANGO_SETTINGS_MODULE? I can’t stand your template language. Do I have to use it? Do I have to use your model/database layer? How do I use image and file fields0 码力 | 3519 页 | 3.17 MB | 1 年前3
 django cms 3.6.x DocumentationPollsApphook(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: You’ll need to set a SITE_ID in the settings - SITE_ID = 1 will suffice. • cms and menus are the core django CMS modules. • django-treebeard is used to manage django CMS’s page and plugin tree structures '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. For0 码力 | 278 页 | 1.63 MB | 1 年前3 django cms 3.6.x DocumentationPollsApphook(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: You’ll need to set a SITE_ID in the settings - SITE_ID = 1 will suffice. • cms and menus are the core django CMS modules. • django-treebeard is used to manage django CMS’s page and plugin tree structures '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. For0 码力 | 278 页 | 1.63 MB | 1 年前3
 Django 5.1 Documentationabout Django Form classes Working with form templates Further topics Templates The Django template language Support for template engines Class-based views Introduction to class-based views Built-in class-based with a legacy database Give Django your database parameters Auto-generate the models Install the core Django tables Test and tweak How to configure and use logging Make a basic logging call Customize Django Why do I get an error about importing DJANGO_SETTINGS_MODULE? I can’t stand your template language. Do I have to use it? Do I have to use your model/database layer? How do I use image and file fields0 码力 | 3513 页 | 3.17 MB | 1 年前3 Django 5.1 Documentationabout Django Form classes Working with form templates Further topics Templates The Django template language Support for template engines Class-based views Introduction to class-based views Built-in class-based with a legacy database Give Django your database parameters Auto-generate the models Install the core Django tables Test and tweak How to configure and use logging Make a basic logging call Customize Django Why do I get an error about importing DJANGO_SETTINGS_MODULE? I can’t stand your template language. Do I have to use it? Do I have to use your model/database layer? How do I use image and file fields0 码力 | 3513 页 | 3.17 MB | 1 年前3
共 504 条
- 1
- 2
- 3
- 4
- 5
- 6
- 51














 
 