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

Uploaded Source

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

Hashes for drf-blog-1.0.tar.gz
Algorithm Hash digest
SHA256 67791faf102082e482b2663add6cb9fde88219c94ff47ea2c3534a898f6998aa
MD5 b7631ece6a0d91178fc65a647c92cc3b
BLAKE2b-256 513596047abb71750f125e62836d6ef5d8217dfccfde0165ffbfd08bf2776144

See more details on using hashes here.

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