You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

django-tcb-blog

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-tcb-blog

A Django backend based on DRF for blogging from TheCodeBlogs

0.11.6
pipPyPI
Maintainers
1

========================== TheCodeBlogs Blog Backend

Blogging made easy

Settings

These should go into your settings.py file.

.. code-block:: python

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

Quick start

  • Add "blog" to your INSTALLED_APPS setting like this

.. code-block:: python

INSTALLED_APPS = [ ... 'blog', ]

  • Include the polls URLconf in your project urls.py like this

.. code-block:: python

path('blog_api/', include('blog.urls')),

  • Setup a module named 'backend'

  • Using celery.py.sample as a guide, setup celery do that tasks will work

  • Run python manage.py migrate to create the blog models.

  • Start the development server and visit http://127.0.0.1:8000/admin/ to create a poll (you'll need the Admin app enabled).

  • Visit http://127.0.0.1:8000/blog_api/ to see something.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts