Skip to main content

A Django backend based on DRF for blogging from TheCodeBlogs

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_tcb_blog-0.11.3.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

django_tcb_blog-0.11.3-py3-none-any.whl (29.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page