Skip to content

thecodeblogs/django-tcb-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TheCodeBlogs Blog Backend

Blogging made easy

Settings

These should go into your settings.py file.

TCB_BLOG_SETTINGS = {
    'RSS_FEED_TITLE': 'Title of the blog',
    'RSS_FEED_LINK': '/blog/',
    'RSS_FEED_ITEM_DESC_TEMPLATE': 'feed/entries.html'
}

Quick start

  1. Add "blog" to your INSTALLED_APPS setting like this
INSTALLED_APPS = [
...
'blog',
]
  1. Include the polls URLconf in your project urls.py like this
path('blog_api/', include('blog.urls')),
  1. Setup a module named 'backend'
  2. Using celery.py.sample as a guide, setup celery do that tasks will work
  3. Run python manage.py migrate to create the blog models.
  4. Start the development server and visit http://127.0.0.1:8000/admin/
    to create a poll (you'll need the Admin app enabled).
  5. Visit http://127.0.0.1:8000/blog_api/ to see something.