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',
    'API_CONTRACT_VERSION': '1.0.0',
    'SUPPORTED_FRONTEND_VERSIONS': '>=0.20.0 <0.21.0'
}

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.30.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_tcb_blog-0.30.0-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file django_tcb_blog-0.30.0.tar.gz.

File metadata

  • Download URL: django_tcb_blog-0.30.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for django_tcb_blog-0.30.0.tar.gz
Algorithm Hash digest
SHA256 96f0a34521f89d02af1941a0c4cf22dfb71f60ee94f514d449171f577070be5d
MD5 c7982e311b460c6079617aba0aac6e3b
BLAKE2b-256 f8078be640e1b680919909f12abf1ea4bba93c13cfe82bbf53bd9608a412bda4

See more details on using hashes here.

File details

Details for the file django_tcb_blog-0.30.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_tcb_blog-0.30.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0fe33945d4a5defddb9847900712edba52a24185b7518c2408f63f80b5703ee
MD5 bbc9328d157803c903c6db7cfb66d793
BLAKE2b-256 aa12f9e9f8cffbaa4ea0495e126eebb98b1ad0a0a1024df78ddd8f961d726112

See more details on using hashes here.

Supported by

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