django cms 3.7.x Documentation
urlpatterns in the project’s urls.py: urlpatterns += i18n_patterns( url(r'^admin/', include(admin.site.urls)), url(r'^polls/', include('polls.urls')), url(r'^', include('cms.urls')), ) Note that it it must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous pattern. Now run project. 5. Apphooks Right now, our Django Polls application is statically hooked into the project’s urls.py. This is all right, but we can do more, by attaching applications to django CMS pages. 5.1. Create0 码力 | 409 页 | 1.67 MB | 1 年前3Django CMS 3.9.x Documentation
the project’s urls.py: urlpatterns += i18n_patterns( re_path(r'^admin/', include(admin.site.urls)), re_path(r'^polls/', include('polls.urls')), re_path(r'^', include('cms.urls')), ) Note that that it must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous pattern. Now project. 5. Apphooks Right now, our Django Polls application is statically hooked into the project’s urls.py. This is all right, but we can do more, by attaching applications to django CMS pages. 5.1. Create0 码力 | 417 页 | 1.68 MB | 6 月前3Django CMS 3.8.x Documentation
the project’s urls.py: urlpatterns += i18n_patterns( re_path(r'^admin/', include(admin.site.urls)), re_path(r'^polls/', include('polls.urls')), re_path(r'^', include('cms.urls')), ) Note that that it must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous pattern. Now project. 5. Apphooks Right now, our Django Polls application is statically hooked into the project’s urls.py. This is all right, but we can do more, by attaching applications to django CMS pages. 5.1. Create0 码力 | 413 页 | 1.67 MB | 6 月前3django cms 3.5.x Documentation
the project’s urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s admin.py models.py templates/ tests.py urls.py views.py Let’s add it this application to our project. Add 'polls' to the end of the project’s urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s0 码力 | 403 页 | 1.69 MB | 1 年前3django cms 3.4.x Documentation
the project’s urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s admin.py models.py templates/ tests.py urls.py views.py Let’s add it this application to our project. Add 'polls' to the end of the project’s urls.py: url(r'^polls/', include('polls.urls', namespace='polls')), Make sure this line is included before the line for the django-cms urls: url(r'^', include('cms.urls')), django CMS’s0 码力 | 395 页 | 1.64 MB | 1 年前3django cms 3.10.x Documentation
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')), re_path(r'^', include('cms.urls')), ) Note that it it must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous pattern. Now run project. Apphooks Right now, our Django Polls application is statically hooked into the project’s urls.py. This is all right, but we can do more, by attaching applications to django CMS pages. Create0 码力 | 296 页 | 1.79 MB | 1 年前3Django CMS 4.0.x Documentation
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')), re_path(r'^', include('cms.urls')), ) Note that it must must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous pattern. Now run the project. Apphooks Right now, our Django Polls application is statically hooked into the project’s urls.py. This is all right, but we can do more, by attaching applications to django CMS pages. Create an0 码力 | 296 页 | 1.79 MB | 6 月前3Django CMS 3.9.x Documentation
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')), re_path(r'^', include('cms.urls')), ) Note that it must must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous pattern. Now run the Release 3.10.0 Apphooks Right now, our Django Polls application is statically hooked into the project’s urls.py. This is all right, but we can do more, by attaching applications to django CMS pages. Create an0 码力 | 298 页 | 1.79 MB | 6 月前3Django CMS 3.11.10 Documentation
templates/ base.html __init__.py asgi.py settings.py urls.py wsgi.py manage.py requirements.in cd myproject python -m manage runserver django Minimally-required applications and settings To run django CMS you will only need to modify the settings.py and urls.py files. Open the new project’s settings.py file in your text editor. INSTALLED_APPS You will need with your project. Some additional configuration is required however. Further required configuration URLs "sekizai.context_processors.sekizai", ], }, }, ] "django:django0 码力 | 493 页 | 1.44 MB | 6 月前0.03django cms 3.6.x Documentation
urlpatterns in the project’s urls.py: urlpatterns += i18n_patterns( url(r'^admin/', include(admin.site.urls)), url(r'^polls/', include('polls.urls')), url(r'^', include('cms.urls')), ) Note that it must must be included before the line for the django CMS URLs. django CMS’s URL pattern needs to be last, because it “swallows up” anything that hasn’t already been matched by a previous pattern. Now run the application’s project. Apphooks Right now, our Django Polls application is statically hooked into the project’s urls.py. This is all right, but we can do more, by attaching applications to django CMS pages. Create0 码力 | 278 页 | 1.63 MB | 1 年前3
共 54 条
- 1
- 2
- 3
- 4
- 5
- 6