Skip to main content

This package is based on the blog project. It provides all the functionality required for a blog project

Project description

This package is for blog projects only. If you want to create a blog app using Django, you can use this package. No need to write code for blog app, just install this package and it will give you all APIs related to blog. You can customize these classes according to your needs.

Quick start

  1. Add below apps into your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'ckeditor',
        'taggit',
        'rest_framework',
        'blog',
        'task_app',
    ]
  2. Add ckeditor setup codes into your settings.py like this:

    CKEDITOR_UPLOAD_PATH = "articles/body-images/"
    
    CKEDITOR_CONFIGS = {
        'default': {
            'toolbar': 'full',
            'height': 300,
            'width': 900,
        },
    }
  3. It will provide FileBasedCaching, for caching add below lines to your settings.py:

    CACHES = {
       'default': {
          'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
          'LOCATION': f'{BASE_DIR}/cache_data',
       }
    }
    SEARCH_TIMEOUT = 60*60*24
    
    # Update middleware setup like this:
    MIDDLEWARE = [
        'django.middleware.cache.UpdateCacheMiddleware',
        'django.middleware.common.CommonMiddleware',
        'django.middleware.cache.FetchFromCacheMiddleware',
    ]
  4. Include all the polls URLconf in your project like this:

    urlpatterns = [
        path('ckeditor/', include('ckeditor_uploader.urls')),
        path('articles/', include('blog.urls')),
    ]
  1. Run python manage.py migrate to create all the tables into database.

  2. Start the development server and visit http://127.0.0.1:8000/articles/ to perform the CRUD operations.

  3. Open this https://blog-module-community.herokuapp.com/ to get more information about this package.

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-customized-blog-package-1.0.7.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file django-customized-blog-package-1.0.7.tar.gz.

File metadata

  • Download URL: django-customized-blog-package-1.0.7.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for django-customized-blog-package-1.0.7.tar.gz
Algorithm Hash digest
SHA256 67b0fc36342503a98edd725f41c318513506e42c76efc1ad2b8e0c51470e3874
MD5 640bb96f7299a59877303511436808af
BLAKE2b-256 61f9cf5705a3809811409776d477665889b13b6154240cb0fe5de1647588a56e

See more details on using hashes here.

File details

Details for the file django_customized_blog_package-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: django_customized_blog_package-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for django_customized_blog_package-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5089c36cc533cd44aab57549e7f1ad02b9595a8c689bba60d3cc8de4c6cbdd
MD5 b2451a262eb529b28adfb3ebdfab63dd
BLAKE2b-256 eed44199fd7c5932b41db6ac7c5315733124db87b3217bf3f082419b90e8857a

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