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.30.0 <0.31.0'
}
Quick start
Add “blog” to your INSTALLED_APPS setting like this
INSTALLED_APPS = [
...
'blog',
]
Include the polls URLconf in your project urls.py like this
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_tcb_blog-0.30.1.tar.gz.
File metadata
- Download URL: django_tcb_blog-0.30.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bd52b8a7d51fcba25d067abefed25e9881ac51beb435de645b92a2d36fa3d54
|
|
| MD5 |
6ae3d35aba1ba09ea4f9c77ef1fc5b8a
|
|
| BLAKE2b-256 |
b41cb74d2e2421448d3d9417dda5bc1a8e7b2dc8a6221bb665f0d182887f1c0e
|
File details
Details for the file django_tcb_blog-0.30.1-py3-none-any.whl.
File metadata
- Download URL: django_tcb_blog-0.30.1-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f048019cba1f62a0a7dae37a131078e1e6615bfb154799200be6a5d447168626
|
|
| MD5 |
b25bc65cfcd00e5c9e42f93c74da2a66
|
|
| BLAKE2b-256 |
0b6870b5a97670931a4530c2797c650595a799a58273b02c32df148d10145987
|