Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # HOMEPAGE AS STATIC TEMPLATE
- # ---------------------------
- # This pattern simply loads the index.html template. It isn't
- # commented out like the others, so it's the default. You only need
- # one homepage pattern, so if you use a different one, comment this
- # one out.
- url("^$", direct_to_template, {"template": "index.html"}, name="home"),
- # HOMEPAGE AS AN EDITABLE PAGE IN THE PAGE TREE
- # ---------------------------------------------
- # This pattern gives us a normal ``Page`` object, so that your
- # homepage can be managed via the page tree in the admin. If you
- # use this pattern, you'll need to create a page in the page tree,
- # and specify its URL (in the Meta Data section) as "/", which
- # is the value used below in the ``{"slug": "/"}`` part.
- # Also note that the normal rule of adding a custom
- # template per page with the template name using the page's slug
- # doesn't apply here, since we can't have a template called
- # "/.html" - so for this case, the template "pages/index.html"
- # should be used if you want to customize the homepage's template.
- # url("^$", "mezzanine.pages.views.page", {"slug": "/"}, name="home"),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement