A blog app for Django
Project description
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_APPS
setting in your project'ssettings.py
file:
INSTALLED_APPS = [
...
"django_summernote",
"rest_framework",
"blog",
]
- Include the blog's URLs by adding the following line to your project's
urls.py
file:
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.py
file:
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
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
drf-blog-1.0.tar.gz
(6.8 kB
view details)
File details
Details for the file drf-blog-1.0.tar.gz
.
File metadata
- Download URL: drf-blog-1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67791faf102082e482b2663add6cb9fde88219c94ff47ea2c3534a898f6998aa |
|
MD5 | b7631ece6a0d91178fc65a647c92cc3b |
|
BLAKE2b-256 | 513596047abb71750f125e62836d6ef5d8217dfccfde0165ffbfd08bf2776144 |