add fixtures, django-cms ckeditor settings, requirements

feature/docker
Dmitriy Shesterkin 9 years ago
parent 9124131128
commit 0ac33cf832
  1. 687
      fixtures/cms.json
  2. 2512
      fixtures/country.json
  3. 1602
      fixtures/currency.json
  4. 4322
      fixtures/measure.json
  5. 21
      fixtures/myauth.json
  6. 34
      fixtures/price.json
  7. 10
      fixtures/sites.json
  8. 32
      project/settings.py
  9. 10
      requirements.txt

@ -0,0 +1,687 @@
[
{
"model": "cms.usersettings",
"fields": {
"user": [
"admin"
],
"language": "ru",
"clipboard": 1
},
"pk": 1
},
{
"model": "cms.page",
"fields": {
"path": "0001",
"depth": 1,
"numchild": 7,
"created_by": "admin",
"changed_by": "admin",
"parent": null,
"creation_date": "2017-04-28T12:45:08.196Z",
"changed_date": "2017-04-28T13:20:42.882Z",
"publication_date": "2017-04-28T12:45:08.289Z",
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": true,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": true,
"publisher_public": 2,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
2
]
},
"pk": 1
},
{
"model": "cms.page",
"fields": {
"path": "0002",
"depth": 1,
"numchild": 0,
"created_by": "admin",
"changed_by": "admin",
"parent": null,
"creation_date": "2017-04-28T12:45:08.292Z",
"changed_date": "2017-04-28T13:20:42.824Z",
"publication_date": "2017-04-28T12:45:08.289Z",
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": true,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": false,
"publisher_public": 1,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
3
]
},
"pk": 2
},
{
"model": "cms.page",
"fields": {
"path": "00010001",
"depth": 2,
"numchild": 0,
"created_by": "admin",
"changed_by": "admin",
"parent": 1,
"creation_date": "2017-04-28T12:45:36.475Z",
"changed_date": "2017-04-28T12:45:36.508Z",
"publication_date": null,
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": false,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": true,
"publisher_public": null,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
4
]
},
"pk": 3
},
{
"model": "cms.page",
"fields": {
"path": "00010002",
"depth": 2,
"numchild": 0,
"created_by": "admin",
"changed_by": "admin",
"parent": 1,
"creation_date": "2017-04-28T12:45:53.595Z",
"changed_date": "2017-04-28T12:45:53.627Z",
"publication_date": null,
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": false,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": true,
"publisher_public": null,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
5
]
},
"pk": 4
},
{
"model": "cms.page",
"fields": {
"path": "00010003",
"depth": 2,
"numchild": 0,
"created_by": "admin",
"changed_by": "admin",
"parent": 1,
"creation_date": "2017-04-28T12:46:09.447Z",
"changed_date": "2017-04-28T12:46:09.480Z",
"publication_date": null,
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": false,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": true,
"publisher_public": null,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
6
]
},
"pk": 5
},
{
"model": "cms.page",
"fields": {
"path": "00010004",
"depth": 2,
"numchild": 0,
"created_by": "admin",
"changed_by": "admin",
"parent": 1,
"creation_date": "2017-04-28T12:46:25.906Z",
"changed_date": "2017-04-28T12:46:25.933Z",
"publication_date": null,
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": false,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": true,
"publisher_public": null,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
7
]
},
"pk": 6
},
{
"model": "cms.page",
"fields": {
"path": "00010005",
"depth": 2,
"numchild": 0,
"created_by": "admin",
"changed_by": "admin",
"parent": 1,
"creation_date": "2017-04-28T12:46:39.394Z",
"changed_date": "2017-04-28T12:46:39.421Z",
"publication_date": null,
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": false,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": true,
"publisher_public": null,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
8
]
},
"pk": 7
},
{
"model": "cms.page",
"fields": {
"path": "00010006",
"depth": 2,
"numchild": 0,
"created_by": "admin",
"changed_by": "admin",
"parent": 1,
"creation_date": "2017-04-28T12:46:52.252Z",
"changed_date": "2017-04-28T12:46:52.292Z",
"publication_date": null,
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": false,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": true,
"publisher_public": null,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
9
]
},
"pk": 8
},
{
"model": "cms.page",
"fields": {
"path": "00010007",
"depth": 2,
"numchild": 0,
"created_by": "admin",
"changed_by": "admin",
"parent": 1,
"creation_date": "2017-04-28T12:47:09.405Z",
"changed_date": "2017-04-28T12:47:09.436Z",
"publication_date": null,
"publication_end_date": null,
"in_navigation": true,
"soft_root": false,
"reverse_id": null,
"navigation_extenders": null,
"template": "INHERIT",
"site": 1,
"login_required": false,
"limit_visibility_in_menu": null,
"is_home": false,
"application_urls": null,
"application_namespace": null,
"publisher_is_draft": true,
"publisher_public": null,
"languages": "ru",
"revision_id": 0,
"xframe_options": 0,
"placeholders": [
10
]
},
"pk": 9
},
{
"model": "cms.placeholder",
"fields": {
"slot": "clipboard",
"default_width": null
},
"pk": 1
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 2
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 3
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 4
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 5
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 6
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 7
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 8
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 9
},
{
"model": "cms.placeholder",
"fields": {
"slot": "content",
"default_width": null
},
"pk": 10
},
{
"model": "cms.placeholder",
"fields": {
"slot": "why_register",
"default_width": null
},
"pk": 11
},
{
"model": "cms.placeholder",
"fields": {
"slot": "why_register",
"default_width": null
},
"pk": 12
},
{
"model": "cms.placeholder",
"fields": {
"slot": "why_register",
"default_width": null
},
"pk": 13
},
{
"model": "cms.placeholder",
"fields": {
"slot": "why_register",
"default_width": null
},
"pk": 14
},
{
"model": "cms.cmsplugin",
"fields": {
"path": "0001",
"depth": 1,
"numchild": 0,
"placeholder": 2,
"parent": null,
"position": 0,
"language": "ru",
"plugin_type": "TextPlugin",
"creation_date": "2017-04-28T13:05:41.393Z",
"changed_date": "2017-04-28T13:20:36.373Z"
},
"pk": 1
},
{
"model": "cms.cmsplugin",
"fields": {
"path": "0002",
"depth": 1,
"numchild": 0,
"placeholder": 3,
"parent": null,
"position": 0,
"language": "ru",
"plugin_type": "TextPlugin",
"creation_date": "2017-04-28T13:05:41.393Z",
"changed_date": "2017-04-28T13:20:42.787Z"
},
"pk": 3
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "\u0413\u043b\u0430\u0432\u043d\u0430\u044f",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "glavnaya",
"path": "",
"has_url_overwrite": false,
"redirect": null,
"page": 1,
"creation_date": "2017-04-28T12:45:08.283Z",
"published": true,
"publisher_is_draft": true,
"publisher_public": 2,
"publisher_state": 0
},
"pk": 1
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "\u0413\u043b\u0430\u0432\u043d\u0430\u044f",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "glavnaya",
"path": "",
"has_url_overwrite": false,
"redirect": null,
"page": 2,
"creation_date": "2017-04-28T12:45:08.283Z",
"published": true,
"publisher_is_draft": false,
"publisher_public": 1,
"publisher_state": 1
},
"pk": 2
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "\u0410\u041a\u0422\u042b \u0412\u042b\u041f\u041e\u041b\u041d\u0415\u041d\u041d\u042b\u0425 \u0420\u0410\u0411\u041e\u0422",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "akty-vypolnennyh-rabot",
"path": "akty-vypolnennyh-rabot",
"has_url_overwrite": false,
"redirect": null,
"page": 3,
"creation_date": "2017-04-28T12:45:36.531Z",
"published": false,
"publisher_is_draft": true,
"publisher_public": null,
"publisher_state": 1
},
"pk": 3
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "\u041d\u0410\u041a\u041b\u0410\u0414\u041d\u042b\u0415",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "nakladnye",
"path": "nakladnye",
"has_url_overwrite": false,
"redirect": null,
"page": 4,
"creation_date": "2017-04-28T12:45:53.654Z",
"published": false,
"publisher_is_draft": true,
"publisher_public": null,
"publisher_state": 1
},
"pk": 4
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "\u0421\u0427\u0415\u0422\u0410-\u0424\u0410\u041a\u0422\u0423\u0420\u042b",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "scheta-faktury",
"path": "scheta-faktury",
"has_url_overwrite": false,
"redirect": null,
"page": 5,
"creation_date": "2017-04-28T12:46:09.505Z",
"published": false,
"publisher_is_draft": true,
"publisher_public": null,
"publisher_state": 1
},
"pk": 5
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "\u0410\u043a\u0442\u044b \u0441\u0432\u0435\u0440\u043a\u0438",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "akty-sverki",
"path": "akty-sverki",
"has_url_overwrite": false,
"redirect": null,
"page": 6,
"creation_date": "2017-04-28T12:46:25.958Z",
"published": false,
"publisher_is_draft": true,
"publisher_public": null,
"publisher_state": 1
},
"pk": 6
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "\u0414\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0438",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "doverennosti",
"path": "doverennosti",
"has_url_overwrite": false,
"redirect": null,
"page": 7,
"creation_date": "2017-04-28T12:46:39.448Z",
"published": false,
"publisher_is_draft": true,
"publisher_public": null,
"publisher_state": 1
},
"pk": 7
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "\u041f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0435 \u043f\u043e\u0440\u0443\u0447\u0435\u043d\u0438\u044f",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "platyozhnye-porucheniya",
"path": "platyozhnye-porucheniya",
"has_url_overwrite": false,
"redirect": null,
"page": 8,
"creation_date": "2017-04-28T12:46:52.325Z",
"published": false,
"publisher_is_draft": true,
"publisher_public": null,
"publisher_state": 1
},
"pk": 8
},
{
"model": "cms.title",
"fields": {
"language": "ru",
"title": "page",
"page_title": "",
"menu_title": "",
"meta_description": "",
"slug": "page",
"path": "page",
"has_url_overwrite": false,
"redirect": null,
"page": 9,
"creation_date": "2017-04-28T12:47:09.458Z",
"published": false,
"publisher_is_draft": true,
"publisher_public": null,
"publisher_state": 1
},
"pk": 9
},
{
"model": "cms.staticplaceholder",
"fields": {
"name": "why_register",
"code": "why_register",
"draft": 11,
"public": 12,
"dirty": false,
"creation_method": "code",
"site": 1
},
"pk": 1
},
{
"model": "cms.staticplaceholder",
"fields": {
"name": "",
"code": "why_register",
"draft": 13,
"public": 14,
"dirty": false,
"creation_method": "template",
"site": null
},
"pk": 2
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,21 @@
[
{
"model": "myauth.dokuser",
"fields": {
"password": "pbkdf2_sha256$20000$4lp35nWDneop$3gGZhdpBKr8qtLTEWpm9bBUGVSq2hIHJ3rKk0B3jIOA=",
"last_login": "2017-04-28T13:31:41.512Z",
"is_superuser": true,
"username": "admin",
"email": "admin@dokumentor.ru",
"first_name": "",
"last_name": "",
"is_staff": true,
"is_active": true,
"date_joined": "2017-04-28T10:52:04.049Z",
"profile": null,
"groups": [],
"user_permissions": []
},
"pk": 1
}
]

@ -0,0 +1,34 @@
[
{
"pk": 1,
"model": "customer.licenseprice",
"fields": {
"term": 1,
"price": 200
}
},
{
"pk": 2,
"model": "customer.licenseprice",
"fields": {
"term": 6,
"price": 1000
}
},
{
"pk": 3,
"model": "customer.licenseprice",
"fields": {
"term": 12,
"price": 1800
}
},
{
"pk": 4,
"model": "customer.licenseprice",
"fields": {
"term": 24,
"price": 3000
}
}
]

@ -0,0 +1,10 @@
[
{
"model": "sites.site",
"fields": {
"domain": "dokumentor.ru",
"name": "dokumentor.ru"
},
"pk": 1
}
]

@ -192,6 +192,7 @@ INSTALLED_APPS = (
'filer', 'filer',
'easy_thumbnails', 'easy_thumbnails',
'treebeard', 'treebeard',
'djangocms_text_ckeditor',
# my apps # my apps
@ -306,33 +307,26 @@ CELERYBEAT_SCHEDULE = {
CAPTCHA_OUTPUT_FORMAT = u"%(hidden_field)s %(image)s<a href='#' class='captcha_refresh'><img src='" + STATIC_URL + "img/refresh.png' /></a>%(text_field)s" CAPTCHA_OUTPUT_FORMAT = u"%(hidden_field)s %(image)s<a href='#' class='captcha_refresh'><img src='" + STATIC_URL + "img/refresh.png' /></a>%(text_field)s"
CAPTCHA_FONT_SIZE = 36 CAPTCHA_FONT_SIZE = 36
CKEDITOR_SETTINGS = { CKEDITOR_SETTINGS = {
'language': '', 'language': 'ru',
'skin': 'moono', 'toolbar_HTMLField': [
'toolbar': 'HTMLField', ['Undo', 'Redo'],
'toolbar_HTMLField': [ ['ShowBlocks'],
['Undo', 'Redo'], ['Format', 'Styles'],
['ShowBlocks'], ],
['Format', 'Styles'], 'skin': 'moono',
['TextColor', 'BGColor', '-', 'PasteText', 'PasteFromWord'],
['Maximize', ''],
'/',
['Bold', 'Italic', 'Underline', '-', 'Subscript', 'Superscript', '-', 'RemoveFormat'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
['Link', 'Unlink'],
['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Table', 'Filer Image'],
['Source']
],
'extraPlugins': 'filerimage',
'removePlugins': 'image'
} }
TEXT_SAVE_IMAGE_FUNCTION = 'cmsplugin_filer_image.integrations.ckeditor.create_image_plugin' TEXT_SAVE_IMAGE_FUNCTION = 'cmsplugin_filer_image.integrations.ckeditor.create_image_plugin'
THUMBNAIL_HIGH_RESOLUTION = True
THUMBNAIL_PROCESSORS = ( THUMBNAIL_PROCESSORS = (
'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.colorspace',
'easy_thumbnails.processors.autocrop', 'easy_thumbnails.processors.autocrop',
'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'filer.thumbnail_processors.scale_and_crop_with_subject_location',
'easy_thumbnails.processors.filters', 'easy_thumbnails.processors.filters'
) )
# cache settings # cache settings

@ -19,7 +19,7 @@ django-filter==0.11.0
django-formtools==1.0 django-formtools==1.0
django-mptt==0.7.0 django-mptt==0.7.0
django-polymorphic==1.0.2 django-polymorphic==1.0.2
django-sekizai==0.9.0 django-sekizai==0.10.0
django-simple-captcha==0.4.2 django-simple-captcha==0.4.2
django-treebeard==4.1.0 django-treebeard==4.1.0
djangocms-admin-style==1.2.7 djangocms-admin-style==1.2.7
@ -32,13 +32,13 @@ djangocms-link==1.3.5
djangocms-picture==0.0.2 djangocms-picture==0.0.2
djangocms-snippet==1.0.2 djangocms-snippet==1.0.2
djangocms-teaser==0.0.1 djangocms-teaser==0.0.1
djangocms-text-ckeditor==2.7.0 djangocms-text-ckeditor==3.1.0
djangocms-video==0.0.1 djangocms-video==0.0.1
easy-thumbnails==2.4.1 easy-thumbnails==2.3
flup==1.0.3.dev20161029 flup==1.0.3.dev20161029
ghostscript==0.4.1 ghostscript==0.4.1
gnureadline==6.3.3 gnureadline==6.3.3
html5lib==1.0b10 html5lib==0.9999999
httplib2==0.10.3 httplib2==0.10.3
ipython==2.1.0 ipython==2.1.0
isort==4.2.5 isort==4.2.5
@ -72,4 +72,4 @@ wrapt==1.10.10
xhtml2pdf==0.2b1 xhtml2pdf==0.2b1
xlrd==1.0.0 xlrd==1.0.0
xlutils==2.0.0 xlutils==2.0.0
xlwt==1.2.0 xlwt==1.2.0

Loading…
Cancel
Save