Commits

Artur Barseghyan  committed 0c7c253 Draft

working on demo

  • Participants
  • Parent commits 3ef3bcc

Comments (0)

Files changed (2)

File django-werewolf-example-app-install.sh

+wget -O django_werewolf_example_app.tar.gz https://github.com/barseghyanartur/django-werewolf/archive/stable.tar.gz
+mkdir django_werewolf_example_app/
+tar -xvf django_werewolf_example_app.tar.gz -C django_werewolf_example_app
+cd django_werewolf_example_app/django-werewolf-stable/example/example/
+pip install Django
+pip install -r ../requirements.txt
+mkdir ../media/
+mkdir ../media/static/
+mkdir ../static/
+mkdir ../db/
+cp local_settings.example local_settings.py
+./manage.py syncdb --noinput
+./manage.py collectstatic --noinput
+./manage.py runserver

File example/example/news/fixtures/initial_data.json

+[{"pk": 1, "model": "auth.permission", "fields": {"codename": "add_permission", "name": "Can add permission", "content_type": 1}}, {"pk": 2, "model": "auth.permission", "fields": {"codename": "change_permission", "name": "Can change permission", "content_type": 1}}, {"pk": 3, "model": "auth.permission", "fields": {"codename": "delete_permission", "name": "Can delete permission", "content_type": 1}}, {"pk": 4, "model": "auth.permission", "fields": {"codename": "add_group", "name": "Can add group", "content_type": 2}}, {"pk": 5, "model": "auth.permission", "fields": {"codename": "change_group", "name": "Can change group", "content_type": 2}}, {"pk": 6, "model": "auth.permission", "fields": {"codename": "delete_group", "name": "Can delete group", "content_type": 2}}, {"pk": 7, "model": "auth.permission", "fields": {"codename": "add_user", "name": "Can add user", "content_type": 3}}, {"pk": 8, "model": "auth.permission", "fields": {"codename": "change_user", "name": "Can change user", "content_type": 3}}, {"pk": 9, "model": "auth.permission", "fields": {"codename": "delete_user", "name": "Can delete user", "content_type": 3}}, {"pk": 10, "model": "auth.permission", "fields": {"codename": "add_contenttype", "name": "Can add content type", "content_type": 4}}, {"pk": 11, "model": "auth.permission", "fields": {"codename": "change_contenttype", "name": "Can change content type", "content_type": 4}}, {"pk": 12, "model": "auth.permission", "fields": {"codename": "delete_contenttype", "name": "Can delete content type", "content_type": 4}}, {"pk": 13, "model": "auth.permission", "fields": {"codename": "add_session", "name": "Can add session", "content_type": 5}}, {"pk": 14, "model": "auth.permission", "fields": {"codename": "change_session", "name": "Can change session", "content_type": 5}}, {"pk": 15, "model": "auth.permission", "fields": {"codename": "delete_session", "name": "Can delete session", "content_type": 5}}, {"pk": 16, "model": "auth.permission", "fields": {"codename": "add_site", "name": "Can add site", "content_type": 6}}, {"pk": 17, "model": "auth.permission", "fields": {"codename": "change_site", "name": "Can change site", "content_type": 6}}, {"pk": 18, "model": "auth.permission", "fields": {"codename": "delete_site", "name": "Can delete site", "content_type": 6}}, {"pk": 19, "model": "auth.permission", "fields": {"codename": "add_logentry", "name": "Can add log entry", "content_type": 7}}, {"pk": 20, "model": "auth.permission", "fields": {"codename": "change_logentry", "name": "Can change log entry", "content_type": 7}}, {"pk": 21, "model": "auth.permission", "fields": {"codename": "delete_logentry", "name": "Can delete log entry", "content_type": 7}}, {"pk": 22, "model": "auth.permission", "fields": {"codename": "add_revision", "name": "Can add revision", "content_type": 8}}, {"pk": 23, "model": "auth.permission", "fields": {"codename": "change_revision", "name": "Can change revision", "content_type": 8}}, {"pk": 24, "model": "auth.permission", "fields": {"codename": "delete_revision", "name": "Can delete revision", "content_type": 8}}, {"pk": 25, "model": "auth.permission", "fields": {"codename": "add_version", "name": "Can add version", "content_type": 9}}, {"pk": 26, "model": "auth.permission", "fields": {"codename": "change_version", "name": "Can change version", "content_type": 9}}, {"pk": 27, "model": "auth.permission", "fields": {"codename": "delete_version", "name": "Can delete version", "content_type": 9}}, {"pk": 28, "model": "auth.permission", "fields": {"codename": "add_newsitem", "name": "Can add News item", "content_type": 10}}, {"pk": 29, "model": "auth.permission", "fields": {"codename": "change_newsitem", "name": "Can change News item", "content_type": 10}}, {"pk": 30, "model": "auth.permission", "fields": {"codename": "delete_newsitem", "name": "Can delete News item", "content_type": 10}}, {"pk": 31, "model": "auth.permission", "fields": {"codename": "change_status_to_new", "name": "Can change status to new", "content_type": 10}}, {"pk": 32, "model": "auth.permission", "fields": {"codename": "change_status_to_draft", "name": "Can change status to draft", "content_type": 10}}, {"pk": 33, "model": "auth.permission", "fields": {"codename": "change_status_to_ready", "name": "Can change status to ready", "content_type": 10}}, {"pk": 34, "model": "auth.permission", "fields": {"codename": "change_status_to_reviewed", "name": "Can change status to reviewed", "content_type": 10}}, {"pk": 35, "model": "auth.permission", "fields": {"codename": "change_status_to_published", "name": "Can change status to published", "content_type": 10}}, {"pk": 36, "model": "auth.permission", "fields": {"codename": "can_change_author", "name": "Can change author", "content_type": 10}}, {"pk": 37, "model": "auth.permission", "fields": {"codename": "can_change_editor", "name": "Can change editor", "content_type": 10}}, {"pk": 38, "model": "auth.permission", "fields": {"codename": "can_change_chief_editor", "name": "Can change chief editor", "content_type": 10}}, {"pk": 1, "model": "auth.group", "fields": {"name": "Chief Editors", "permissions": [28, 36, 38, 37, 29, 32, 31, 35, 33, 34, 30, 22, 23, 24, 25, 26, 27]}}, {"pk": 2, "model": "auth.group", "fields": {"name": "Editors", "permissions": [36, 29, 32, 31, 33, 34]}}, {"pk": 3, "model": "auth.group", "fields": {"name": "Writers", "permissions": [29, 32, 31, 33]}}, {"pk": 1, "model": "auth.user", "fields": {"username": "admin", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2013-09-09T22:15:24.222Z", "groups": [], "user_permissions": [], "password": "pbkdf2_sha256$10000$9DPdA3RtmTgh$Src5o/ZXs/zJSvjducjZ8YaiBEzRvrqJOEjxEznntVE=", "email": "admin@example.com", "date_joined": "2013-06-12T19:39:35.765Z"}}, {"pk": 2, "model": "auth.user", "fields": {"username": "writer", "first_name": "Wri", "last_name": "Ter", "is_active": true, "is_superuser": false, "is_staff": true, "last_login": "2013-09-09T22:28:37.578Z", "groups": [3], "user_permissions": [], "password": "pbkdf2_sha256$10000$50IfM3w5uFv6$db2Ixz1reRlFNkaIVu0pVLitQWZFcKJ0GGNC19wmJiQ=", "email": "writer@foreverchild.info", "date_joined": "2013-06-12T19:42:22Z"}}, {"pk": 3, "model": "auth.user", "fields": {"username": "editor", "first_name": "Edi", "last_name": "Tor", "is_active": true, "is_superuser": false, "is_staff": true, "last_login": "2013-09-09T22:32:12.409Z", "groups": [2], "user_permissions": [], "password": "pbkdf2_sha256$10000$RomRe6xqDDtp$wjlZdf/LyHTGJ0EfUK3R5Uq5lxhM89I4QMN/6C6TZA0=", "email": "editor@foreverchild.info", "date_joined": "2013-06-12T19:42:49Z"}}, {"pk": 4, "model": "auth.user", "fields": {"username": "chief_editor", "first_name": "Chief", "last_name": "Editor", "is_active": true, "is_superuser": false, "is_staff": true, "last_login": "2013-06-12T19:45:12.777Z", "groups": [1], "user_permissions": [], "password": "pbkdf2_sha256$10000$lWh1xQEmvOtF$EC5zOlAeUhlFuXbV72uSXjGmaeQW5ep5Lzo7p+rD4qE=", "email": "chief-editor@foreverchild.info", "date_joined": "2013-06-12T19:43:36Z"}}, {"pk": 1, "model": "sites.site", "fields": {"domain": "example.com", "name": "example.com"}}]