Django Blog
Django Blog is a Django app that allows you to create and manage blog applications.
Quick Start
Usage
After following the Quick Start guide, you're now ready to use the Django Blog app in your project. You can start creating, editing, and managing blog posts through the Django admin panel or through the provided APIs.
- Install the package from PyPI:
pip install drf-blog
- Add "blog" to the
INSTALLED_APPSsetting in your project'ssettings.pyfile:
INSTALLED_APPS = [
...
"django_summernote",
"rest_framework",
"blog",
]
- Include the blog's URLs by adding the following line to your project's
urls.pyfile:
from django.urls import path, include
urlpatterns = [
...
path("", include("blog.urls")),
]
- Set up the necessary media and static file configurations in your project's
settings.pyfile:
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = "static/"
- Run database migrations to create the Blog models:
python manage.py migrate
Now you are ready to use the Django Blog app in your project.
Contributing:
Feel free to contribute to this project by submitting issues, fork the project and creating pull requests, or simply by suggesting new features.
License
This project is licensed under the MIT License
Release files for drf-blog 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| drf-blog-1.0.tar.gz | 6.8 kB | Details |
Release files / drf-blog-1.0.tar.gz
| Download URL | drf-blog-1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67791faf102082e482b2663add6cb9fde88219c94ff47ea2c3534a898f6998aa
|
|
BLAKE2b-256 checksum How to use checksums |
513596047abb71750f125e62836d6ef5d8217dfccfde0165ffbfd08bf2776144
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|