1. Rod Morison
  2. rodmtech

Commits

Rod Morison  committed 9e39411 Draft

initial site data and / mapped to CMS page

  • Participants
  • Parent commits e205378
  • Branches default

Comments (0)

Files changed (2)

File fixtures/rodmtech_net_init.json

View file
  • Ignore whitespace
+[
+    {
+        "pk": 2, 
+        "model": "pages.page", 
+        "fields": {
+            "status": 2, 
+            "_order": 1, 
+            "titles": "Blog", 
+            "description": "The Blog", 
+            "parent": null, 
+            "title": "Blog", 
+            "short_url": null, 
+            "login_required": false, 
+            "site": 1, 
+            "in_sitemap": true, 
+            "keywords_string": "", 
+            "_meta_title": "", 
+            "expiry_date": null, 
+            "publish_date": "2012-12-30T21:25:44Z", 
+            "content_model": "richtextpage", 
+            "in_menus": "1,2,3", 
+            "slug": "blog", 
+            "gen_description": true
+        }
+    }, 
+    {
+        "pk": 4, 
+        "model": "pages.page", 
+        "fields": {
+            "status": 2, 
+            "_order": 3, 
+            "titles": "Contact", 
+            "description": "Drop us a note", 
+            "parent": null, 
+            "title": "Contact", 
+            "short_url": null, 
+            "login_required": false, 
+            "site": 1, 
+            "in_sitemap": true, 
+            "keywords_string": "", 
+            "_meta_title": "", 
+            "expiry_date": null, 
+            "publish_date": "2012-12-31T08:51:41.931Z", 
+            "content_model": "form", 
+            "in_menus": "1,2,3", 
+            "slug": "contact", 
+            "gen_description": true
+        }
+    }, 
+    {
+        "pk": 3, 
+        "model": "pages.page", 
+        "fields": {
+            "status": 2, 
+            "_order": 2, 
+            "titles": "Docs", 
+            "description": "The Docs", 
+            "parent": null, 
+            "title": "Docs", 
+            "short_url": null, 
+            "login_required": false, 
+            "site": 1, 
+            "in_sitemap": true, 
+            "keywords_string": "", 
+            "_meta_title": "", 
+            "expiry_date": null, 
+            "publish_date": "2012-12-30T21:26:19Z", 
+            "content_model": "richtextpage", 
+            "in_menus": "1,2,3", 
+            "slug": "docs", 
+            "gen_description": true
+        }
+    }, 
+    {
+        "pk": 1, 
+        "model": "pages.page", 
+        "fields": {
+            "status": 2, 
+            "_order": 0, 
+            "titles": "Welcome", 
+            "description": "The Home Page", 
+            "parent": null, 
+            "title": "Welcome", 
+            "short_url": null, 
+            "login_required": false, 
+            "site": 1, 
+            "in_sitemap": true, 
+            "keywords_string": "", 
+            "_meta_title": "Home", 
+            "expiry_date": null, 
+            "publish_date": "2012-12-30T21:22:02Z", 
+            "content_model": "richtextpage", 
+            "in_menus": "", 
+            "slug": "/", 
+            "gen_description": true
+        }
+    }, 
+    {
+        "pk": 1, 
+        "model": "pages.richtextpage", 
+        "fields": {
+            "content": "<p>The Home Page</p>"
+        }
+    }, 
+    {
+        "pk": 2, 
+        "model": "pages.richtextpage", 
+        "fields": {
+            "content": "<p>The Blog</p>"
+        }
+    }, 
+    {
+        "pk": 3, 
+        "model": "pages.richtextpage", 
+        "fields": {
+            "content": "<p>The Docs</p>"
+        }
+    }, 
+    {
+        "pk": 1, 
+        "model": "blog.blogpost", 
+        "fields": {
+            "status": 2, 
+            "expiry_date": null, 
+            "allow_comments": true, 
+            "description": "A Blog Post", 
+            "title": "A Post", 
+            "related_posts": [], 
+            "rating_average": 0.0, 
+            "categories": [], 
+            "site": 1, 
+            "in_sitemap": true, 
+            "keywords_string": "", 
+            "_meta_title": "", 
+            "rating_count": 0, 
+            "comments_count": 0, 
+            "user": 1, 
+            "featured_image": null, 
+            "short_url": null, 
+            "publish_date": "2012-12-30T21:31:10.267Z", 
+            "content": "<p>A Blog Post</p>", 
+            "slug": "a-post", 
+            "gen_description": true
+        }
+    }, 
+    {
+        "pk": 4, 
+        "model": "forms.form", 
+        "fields": {
+            "email_message": "", 
+            "email_copies": "", 
+            "button_text": "Send", 
+            "response": "<p>You query is on it's way</p>", 
+            "content": "<p>Drop us a note</p>", 
+            "send_email": true, 
+            "email_subject": "", 
+            "email_from": ""
+        }
+    }, 
+    {
+        "pk": 1, 
+        "model": "forms.field", 
+        "fields": {
+            "field_type": 3, 
+            "_order": 0, 
+            "form": 4, 
+            "default": "", 
+            "required": true, 
+            "label": "From", 
+            "visible": true, 
+            "help_text": "", 
+            "placeholder_text": "", 
+            "choices": ""
+        }
+    }, 
+    {
+        "pk": 2, 
+        "model": "forms.field", 
+        "fields": {
+            "field_type": 1, 
+            "_order": 1, 
+            "form": 4, 
+            "default": "", 
+            "required": true, 
+            "label": "Subject", 
+            "visible": true, 
+            "help_text": "", 
+            "placeholder_text": "", 
+            "choices": ""
+        }
+    }, 
+    {
+        "pk": 3, 
+        "model": "forms.field", 
+        "fields": {
+            "field_type": 2, 
+            "_order": 2, 
+            "form": 4, 
+            "default": "", 
+            "required": true, 
+            "label": "Message", 
+            "visible": true, 
+            "help_text": "", 
+            "placeholder_text": "", 
+            "choices": ""
+        }
+    }
+]

File urls.py

View file
  • Ignore whitespace
     # one homepage pattern, so if you use a different one, comment this
     # one out.
 
-    url("^$", direct_to_template, {"template": "index.html"}, name="home"),
+    #url("^$", direct_to_template, {"template": "index.html"}, name="home"),
 
     # HOMEPAGE AS AN EDITABLE PAGE IN THE PAGE TREE
     # ---------------------------------------------
     # "/.html" - so for this case, the template "pages/index.html" can
     # be used.
 
-    # url("^$", "mezzanine.pages.views.page", {"slug": "/"}, name="home"),
+    url("^$", "mezzanine.pages.views.page", {"slug": "/"}, name="home"),
 
     # HOMEPAGE FOR A BLOG-ONLY SITE
     # -----------------------------