django cms 3.3.x Documentation
toolbar menu with nodes, will only be called if the current user is a staff user. In this case it: checks whether we’re in a page belonging to this application, using self.is_current_app ... if so, it creates sampleapp.urls"] permissions = False If you still want some of your views to use the CMS’s permission checks you can enable them via a decorator, cms.utils.decorators.cms_perms Here is a simple example: from import cms_perms @cms_perms def my_view(request, **kw): ... If you have your own permission checks in your application, then use exclude_permissions property of the apphook: class SampleApp(CMSApp):0 码力 | 386 页 | 1.56 MB | 1 年前3django cms 3.10.x Documentation
MyApphook(CMSApp): [...] permissions = False If you still want some of your views to use the CMS’s permission checks you can enable them via a decorator, cms. utils.decorators.cms_perms 70 Chapter 4. Software version decorators import cms_perms @cms_perms def my_view(request, **kw): ... If you make your own permission checks in your application, then use the exclude_permissions property of the apphook: class MyApphook(CMSApp): model = IconExtension def populate(self): # setup the extension toolbar with permissions and sanity checks current_page_menu = self._setup_extension_toolbar() # if it's all ok if current_page_menu: # retrieves0 码力 | 296 页 | 1.79 MB | 1 年前3django cms 3.7.x Documentation
[...] permissions = False If you still want some of your views to use the CMS’s permission checks you can enable them via a decorator, cms.utils.decorators.cms_perms Here is a simple example: from import cms_perms @cms_perms def my_view(request, **kw): ... If you make your own permission checks in your application, then use the exclude_permissions property of the apphook: class MyApphook(CMSApp): IconExtension def populate(self): # setup the extension toolbar with permissions and sanity checks current_page_menu = self._setup_extension_toolbar() # if it's all ok if current_page_menu:0 码力 | 409 页 | 1.67 MB | 1 年前3django cms 3.4.x Documentation
toolbar menu with nodes, will only be called if the current user is a staff user. In this case it: checks whether we’re in a page belonging to this application, using self.is_current_app … if so, it creates sampleapp.urls"] permissions = False If you still want some of your views to use the CMS’s permission checks you can enable them via a decorator, cms.utils.decorators.cms_perms Here is a simple example: from import cms_perms @cms_perms def my_view(request, **kw): ... If you have your own permission checks in your application, then use exclude_permissions property of the apphook: class SampleApp(CMSApp):0 码力 | 395 页 | 1.64 MB | 1 年前3django cms 3.5.x Documentation
toolbar menu with nodes, will only be called if the current user is a staff user. In this case it: checks whether we’re in a page belonging to this application, using self.is_current_app … if so, it creates sampleapp.urls"] permissions = False If you still want some of your views to use the CMS’s permission checks you can enable them via a decorator, cms.utils.decorators.cms_perms Here is a simple example: from import cms_perms @cms_perms def my_view(request, **kw): ... If you have your own permission checks in your application, then use exclude_permissions property of the apphook: class SampleApp(CMSApp):0 码力 | 403 页 | 1.69 MB | 1 年前3django cms 3.6.x Documentation
MyApphook(CMSApp): [...] permissions = False If you still want some of your views to use the CMS’s permission checks you can enable them via a decorator, cms. utils.decorators.cms_perms Here is a simple example: decorators import cms_perms @cms_perms def my_view(request, **kw): ... If you make your own permission checks in your application, then use the exclude_permissions property of the apphook: class MyApphook(CMSApp): model = IconExtension def populate(self): # setup the extension toolbar with permissions and sanity checks current_page_menu = self._setup_extension_toolbar() # if it's all ok if current_page_menu: # retrieves0 码力 | 278 页 | 1.63 MB | 1 年前3Django CMS 2.3.x Documentation
sanity checks on arguments. Warning: None of the functions in this module does any security or permission checks. They verify their input values to be sane wherever possible, however permission checks should get_context() * menus.menu_pool.MenuPool.get_nodes() · menus.menu_pool.MenuPool.discover_menus() checks every application Menu classes, placing them in the self.menus dict Modifier classes, placing them Chapter 5. Concepts django cms Documentation, Release 2.3.8 · menus.menu_pool.MenuPool._build_nodes() checks the cache to see if it should return cached nodes loops over the Menus in self.menus (note: by default0 码力 | 92 页 | 666.41 KB | 6 月前3Django CMS 3.11.10 Documentation
get_nodes() calls three other methods of MenuPool in turn: menus.menu_pool.MenuPool.discover_menus() Checks every application’s cms_menus.py, and registers: Menu classes, placing them in the self.menus dict Modifier classes, placing them in the self.modifiers list menus.menu_pool.MenuPool._build_nodes() checks the cache to see if it should return cached nodes loops over the Menus in self.menus (note: by default views to use the CMS’s permission checks you can enable them via a decorator, cms.utils.decorators.cms_perms Here is a simple example: If you make your own permission checks in your application, then use the0 码力 | 493 页 | 1.44 MB | 6 月前0.03Django 2.2.x Documentation
signals Defining and sending signals Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools “How-to” guides Authentication using REMOTE_USER Initialization process System check framework API reference Builtin tags Core system checks contrib app checks Built-in class-based views API Base views Generic display views Generic editing views presented to the public. Design your URLs A clean, elegant URL scheme is an important detail in a high-quality Web application. Django encourages beautiful URL design and doesn’t put any cruft in URLs, like0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 4.1.x Documentation
signals Defining and sending signals Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Initialization process System check framework API reference Builtin tags Core system checks contrib app checks Built-in class-based views API Base views Generic display views Generic editing views presented to the public. Design your URLs A clean, elegant URL scheme is an important detail in a high-quality web application. Django encourages beautiful URL design and doesn’t put any cruft in URLs, like0 码力 | 3240 页 | 3.13 MB | 1 年前3
共 92 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10