{"action":"closed","issue":{"url":"https://api.github.com/repos/localwiki/localwiki/issues/156","labels_url":"https://api.github.com/repos/localwiki/localwiki/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/localwiki/localwiki/issues/156/comments","events_url":"https://api.github.com/repos/localwiki/localwiki/issues/156/events","html_url":"https://github.com/localwiki/localwiki/issues/156","id":2692473,"number":156,"title":"Add flatpages to localwiki","user":{"login":"mivanov","id":611807,"avatar_url":"https://avatars.githubusercontent.com/u/611807?v=3","gravatar_id":"","url":"https://api.github.com/users/mivanov","html_url":"https://github.com/mivanov","followers_url":"https://api.github.com/users/mivanov/followers","following_url":"https://api.github.com/users/mivanov/following{/other_user}","gists_url":"https://api.github.com/users/mivanov/gists{/gist_id}","starred_url":"https://api.github.com/users/mivanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mivanov/subscriptions","organizations_url":"https://api.github.com/users/mivanov/orgs","repos_url":"https://api.github.com/users/mivanov/repos","events_url":"https://api.github.com/users/mivanov/events{/privacy}","received_events_url":"https://api.github.com/users/mivanov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2011-12-30T23:16:43Z","updated_at":"2015-01-26T07:49:58Z","closed_at":"2015-01-26T07:49:58Z","body":"Since we've had to do this a couple of times already, should just add it in so it's there by default.\r\n\r\nThe main question is: how will people use them?\r\n\r\nUsually, I believe, people just want to add some little thing in the middle of a regular wiki page.  This is best accomplished by using the embed plugin, so for that we'd want to provide a bare flatpages template with nothing on it.\r\n\r\nIf they want to create an entire special page that has the look of a normal localwiki page, then we can provide a template that looks right. And just a a couple of things because it's not actually a wiki page: won't appear in All Pages, won't autocomplete in the link dialog, and links to it will look broken?\r\n\r\nTo enable the flatpages app, do the following:\r\n\r\n1) Add 'django.contrib.flatpages' to the INSTALLED_APPS setting.\r\n2) Add 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' to the MIDDLEWARE_CLASSES setting.\r\n3) Create two templates: \"flatpages/default.html\", which extends site/base.html, and \"flatpages/bare.html\" which just has the title and an empty <body> to allow embedding small things.\r\n"}}