所以我嘗試安裝此:https://zipfelchappe.readthedocs.org/en/latest/並跟隨有步驟如何安裝上FeinCMS第三方應用程序?
我是如何拉起來的URL從那裏
文件舉例來說很困惑我安裝我的models.py如下:
從django.db進口車型
from django.utils.translation import ugettext_lazy as _
from feincms.module.page.models import Page
from feincms.content.richtext.models import RichTextContent
from feincms.content.medialibrary.models import MediaFileContent
from feincms.content.application.models import ApplicationContent
from feincms.module.extensions import datepublisher
from feincms.module.extensions import translations
from zipfelchappe.models import Project
Page.register_templates({
'title': _('Standard template'),
'path': 'base.html',
'regions': (
('main', _('Main content area')),
('sidebar', _('Sidebar'), 'inherited'),
),
})
Page.create_content_type(RichTextContent)
Page.create_content_type(MediaFileContent, TYPE_CHOICES=(
('default', _('default')),
('lightbox', _('lightbox')),
))
Page.create_content_type(ApplicationContent, APPLICATIONS=(
('zipfelchappe.urls', _('Zipfelchappe projects')),
))
Project.register_regions(
('main', _('Content')),
)
Project.register_extensions(
'zipfelchappe.extensions.categories',
#'zipfelchappe.extensions.paypal_receivers',
)
Project.create_content_type(RichTextContent)
Project.create_content_type(MediaFileContent, TYPE_CHOICES=(
('default', _('default')),
('lightbox', _('lightbox')),
))
當我創建我的新的一頁我看到有在下拉列表中Zipfelchappe projects
下來,當我在我的網頁添加它和爭奪W上的網頁我什麼也看不見,但其他內容類型的節目...我假定這是因爲出現了與我zipfelchappe.urls問題
現在我的urls.py文件是這樣的:
從Django中.conf.urls進口模式,包括從django.contrib中進口管理URL
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'', include('feincms.urls')),
url(r'^zipfelchappe/paypal/', include('zipfelchappe.paypal.urls')),
)
我試圖按照http://www.feinheit.ch/media/labs/feincms/integration.html的步驟,但我不太明白他們的榜樣如何與我的。至於他似乎從例如第三方應用拉動具體型號....我不知道我是什麼具體型號拉