Skip to main content

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.

  1. Install the package from PyPI:
pip install drf-blog
  1. Add "blog" to the INSTALLED_APPS setting in your project's settings.py file:
INSTALLED_APPS = [
    ...
    "django_summernote",
    "rest_framework",
    "blog",
]
  1. 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")),
]
  1. 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/"
  1. 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

This version

1.0

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 hashes)

Uploaded Source

Supported by

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