所以我尝试安装此: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的步骤,但我不太明白他们的榜样如何与我的。至于他似乎从例如第三方应用拉动具体型号....我不知道我是什么具体型号拉