From abd56215e4c6a1c2a834f83222a40b958c9f127f Mon Sep 17 00:00:00 2001 From: Bachurin Sergey Date: Mon, 21 Jul 2014 15:23:13 +0300 Subject: [PATCH] update django-cm and added settings for cms 3 --- project/settings.py | 13 +++++++++++-- project/templates/base.html | 7 ++++++- project/templates/pages/index.html | 5 +++-- project/urls.py | 1 + requirements.txt | 27 ++++++++++++++++++--------- 5 files changed, 39 insertions(+), 14 deletions(-) diff --git a/project/settings.py b/project/settings.py index c3e0e9e..2af51df 100644 --- a/project/settings.py +++ b/project/settings.py @@ -164,7 +164,16 @@ INSTALLED_APPS = ( #'robokassa', 'djangocms_admin_style', # for the admin skin. You **must** add 'djangocms_admin_style' in the list before 'django.contrib.admin'. 'django.contrib.messages', # to enable messages framework (see :ref:`Enable messages `) - + 'djangocms_file', + 'djangocms_flash', + 'djangocms_googlemap', + 'djangocms_inherit', + 'djangocms_picture', + 'djangocms_teaser', + 'djangocms_video', + 'djangocms_link', + 'djangocms_snippet', + 'djangocms_text_ckeditor', 'django.contrib.admin', 'django.contrib.admindocs', @@ -226,7 +235,7 @@ LANGUAGES = ( ) CMS_TEMPLATES = ( ('pages/index.html', 'Index Page'), - ('template_2.html', 'Template Two'), + #('template_2.html', 'Template Two'), ) BROKER_HOST = "localhost" diff --git a/project/templates/base.html b/project/templates/base.html index 5a30c73..fe65725 100644 --- a/project/templates/base.html +++ b/project/templates/base.html @@ -1,4 +1,5 @@ {# spaceless #} +{% load cms_tags sekizai_tags %} @@ -6,9 +7,11 @@ + {% render_block "css" %} + - +{% cms_toolbar %} {% if messages %}
    @@ -22,6 +25,7 @@
    Документор +
    {% static_placeholder phone %}
    {% if user.is_authenticated %} @@ -72,5 +76,6 @@ {% block js %}{% endblock %} +{% render_block "js" %} {# endspaceless #} diff --git a/project/templates/pages/index.html b/project/templates/pages/index.html index 6bd023b..75a17c4 100644 --- a/project/templates/pages/index.html +++ b/project/templates/pages/index.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load cms_tags %} {% block title %}Главная{% endblock %} @@ -8,8 +9,8 @@

    Быстрое создание счетов, актов, накладных и других бухгалтерских документов в Excel или PDF

    Перед вами онлайн сервис для создания и хранения первичных бухгалтерских документов. Здесь вы можете за несколько секунд создать и скачать в Excel или PDF: счёт на оплату, накладную, акт выполненных работ, платёжное поручение, акт сверки.

    -

    Помимо создания документов, здесь вы можете контролировать их оплату, возврат к вам закрывающих документов.

    - +

    Помимо создания документов, здесь вы можете контролировать их оплату, возврат к вам закрывающих документов.{% static_placeholder "phone" %}

    + {% placeholder "content" %} {% if not user.is_authenticated %}

    Попробовать бесплатно
    diff --git a/project/urls.py b/project/urls.py index 8baa039..80f1a81 100644 --- a/project/urls.py +++ b/project/urls.py @@ -35,5 +35,6 @@ if settings.DEBUG: urlpatterns += patterns('', url(r'^m/(?P.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_ROOT, + 'show_indexes': True, }), ) diff --git a/requirements.txt b/requirements.txt index f9349bb..0d638a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -Django==1.5.8 +Django==1.6.5 Pillow==2.2.1 -South==0.8.2 +South==1.0 amqp==1.4.5 anyjson==0.3.3 argparse==1.2.1 @@ -8,13 +8,24 @@ billiard==3.3.0.18 celery==3.1.12 django-autocomplete-light==1.4.9 django-classy-tags==0.5.1 -django-cms==3.0.2 +django-cms==3.0.3 django-debug-toolbar==1.2.1 django-filter==0.7 -django-mptt==0.6.0 +django-mptt==0.6.1 django-sekizai==0.7 djangocms-admin-style==0.2.2 -html5lib==0.95 +djangocms-file==0.0.1 +djangocms-flash==0.0.2 +djangocms-googlemap==0.0.5 +djangocms-inherit==0.0.1 +djangocms-link==1.3.5 +djangocms-picture==0.0.2 +djangocms-snippet==1.0.2 +djangocms-teaser==0.0.1 +djangocms-text-ckeditor==2.1.6 +djangocms-video==0.0.1 +flup +html5lib==0.999 ipython==2.1.0 kombu==3.0.20 pisa==3.0.33 @@ -25,11 +36,9 @@ pytils==0.2.3 pytz==2014.4 reportlab==2.7 simplejson==3.3.1 -six==1.4.1 +six==1.7.3 sqlparse==0.1.11 wsgiref==0.1.2 xlrd==0.9.2 -xlwt==0.7.5 xlutils==1.7.1 -flup - +xlwt==0.7.5