Skip to main content

A reusable blog app powered by Python, Django, DRF, Wagtail CMS, TailwindCSS and DaisyUI.

Project description

django-w-blog

CI CD Code Style: Black Code Linting: Ruff Docker Image Docker Publish PyPI - Version PyPI - Python Version PyPI - Downloads PyPI - License

Overview

A reusable blog app powered by Python, Django, DRF, Wagtail CMS, TailwindCSS and DaisyUI.

Get started

Install the package:

pip install django-w-blog

Configure your Django settings:

# project/settings.py

# Application definition
INSTALLED_APPS = [
    "blog",
    "blog.api",  # Optional if you do not want to use the API
    "blog.apps.articles",
    "blog.apps.categories",
    "blog.apps.home",  # Optional if you have a home app with a Home model ('home.Home')
    "blog.apps.indexes",
    "blog.apps.tags",
    "blog.cms",
    "blog.ui",
    # Deps
    "rest_wind",  # Optional if you do not want to use the API
    "rest_framework",  # Optional if you do not want to use the API
    "wagtail.contrib.search_promotions",
    "wagtail.contrib.forms",
    "wagtail.contrib.redirects",
    "wagtail.embeds",
    "wagtail.sites",
    "wagtail.users",
    "wagtail.snippets",
    "wagtail.documents",
    "wagtail.images",
    "wagtail.search",
    "wagtail.admin",
    "wagtail",
    "modelcluster",
    "taggit",
    ...
]

Run the migrations:

# In your project root
python mange.py migrate

Update your URLConf:

# project/urls.py

from django.urls import include, path
from wagtail import urls as wagtail_urls
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.documents import urls as wagtaildocs_urls


urlpatterns = [
    path("", include("blog.ui.urls")),
    path("api/", include("blog.api.urls")),  # Optional if you do not want to use the API
    path("api/", include("rest_framework.urls")),  # Optional if you do not want to use the API
    ...
    path("documents/", include(wagtaildocs_urls)),
    path("dashboard/", include(wagtailadmin_urls)),
    path("", include(wagtail_urls)),  # Make sure this line is the last
]

Key Features

  • CI/CD Pipelines: Automated using GitHub Actions to ensure consistent and reliable deployment processes.
  • Dependency Management: Powered by Poetry, a sophisticated tool for managing project dependencies with precision and reliability.
  • Code Formatting: Automatically formatted with Black to maintain a consistent and readable codebase.
  • Code Linting: Utilizes Ruff to identify and address potential issues early, enhancing code quality and maintainability.
  • Code Testing: Utilizes Django to run tests.
  • Configuration Files: Includes .gitignore, pyproject.toml, and other essential configuration files to streamline setup.

Contributing

We warmly welcome contributions from the community. Please refer to our CONTRIBUTING guide for detailed instructions on how to contribute effectively. Your feedback and participation are essential for the continued improvement of this template.

Support

For inquiries or support, please open an issue or join the discussion in the GitHub Discussions section to engage with the community.

Licensing

This project is licensed under the MIT License. A detailed copy of the terms can be found in the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_w_blog-0.1.2.tar.gz (39.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_w_blog-0.1.2-py3-none-any.whl (62.2 kB view details)

Uploaded Python 3

File details

Details for the file django_w_blog-0.1.2.tar.gz.

File metadata

  • Download URL: django_w_blog-0.1.2.tar.gz
  • Upload date:
  • Size: 39.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Windows/11

File hashes

Hashes for django_w_blog-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9c10a07919cb70cf4fb024d0304c5466e56ad4e8b939de605aedb5fd7ced6f6f
MD5 c2f067b6c1c5b335efd27f107070a83c
BLAKE2b-256 f552eb6599ee3c1200db7b3b99d7a702532ac738f8b5d3f48047e10d9c46fee7

See more details on using hashes here.

File details

Details for the file django_w_blog-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: django_w_blog-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 62.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Windows/11

File hashes

Hashes for django_w_blog-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ac718e7f4b1f2fdf5614e1e612fe5c8ee1be29ffc80288d5d69584dad4b8eda
MD5 6374e67cd5d4a7c998834d47f6c16718
BLAKE2b-256 b776a57524a50a127f16958b5efab2f225e602c5cc957cebaeb483a82d0eac91

See more details on using hashes here.

Supported by

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