A simple blogging app for django 1.4.
Install from pypi
pip install django-blogger
add to urls.py
(r'^', include('blogger.urls')),
settings.py
INSTALLED_APPS += (
'django.contrib.admin', # This must be configured
'django.contrib.comments', # This must be configured
'django.contrib.markup', # to render markdown
'rest_framework', # django rest framework 2
'taggit', # django-taggit
'blogger.themes.default', # the base theme
'blogger' # the app
)
# this will attach BLOG_SETTINGS['info'] to HttpResponses
TEMPLATE_CONTEXT_PROCESSORS += ("blogger.context_processors.blog_info",)
BLOG_SETTINGS = {
'defaults': { # change the defaults of models and some constats for views
'auto_publish': False,
'auto_promote': False,
},
'info': { # attached to all responses so the information is available to the templates.
'BLOG_TITLE': 'My Blog Name',
'BLOG_SUBTITLE': 'Blog subname',
}
}
Update the database
./manage.py syncdb
In the django admin panel:
- Ensure your user has a first and last name
- Post stuff!
blogger
+-- themes
|-- default
| |-- static
| | +-- Bootstrap
| |
| +-- templates
| |-- base.html
| |-- list.html
| +-- view_post.html
|
+-- 3col
|-- static
| +-- Bootstrap
|
+-- templates
|-- base.html
|-- list.html
+-- view_post.html
Not all files are necessary as the app will fall back on the last theme in INSTALLED_APPS
- RSS Feed
- Markdown
- Twitter Bootstrap UI
- Tags
- Multiple Authors
- Archive
- Comments
- Administration is done through auto generated admin
- read/write API