Skip to main content

Just another blogging / podcasting package

Project description

https://badge.fury.io/py/django-cast.svg https://travis-ci.org/ephes/django-cast.svg?branch=master https://codecov.io/gh/ephes/django-cast/branch/master/graph/badge.svg

Just another blogging / podcasting package

Documentation

The full documentation is at https://django-cast.readthedocs.io.

Quickstart

Install Django Cast:

pip install django-cast

Add django-cast and some dependencies to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'imagekit',
    'ckeditor',
    'ckeditor_uploader',
    'rest_framework',
    'rest_framework.authtoken',
    'cast.apps.CastConfig',
    ...
)

Add required settings:

# CKEditor
CKEDITOR_UPLOAD_PATH = 'uploads/ckeditor/'
CKEDITOR_IMAGE_BACKEND = 'pillow'
AWS_QUERYSTRING_AUTH = False
X_FRAME_OPTIONS = 'SAMEORIGIN'
CKEDITOR_CONFIGS = {
'default': {
 'removePlugins': 'stylesheetparser',
 'allowedContent': True,
 'enterMode': 2,
},
}

# REST
REST_FRAMEWORK = {
 # Use Django's standard django.contrib.auth permissions,
 # or allow read-only access for unauthenticated users.
 'DEFAULT_AUTHENTICATION_CLASSES': (
     'rest_framework.authentication.SessionAuthentication',
     'rest_framework.authentication.TokenAuthentication',
 )
}

# django imagekit
IMAGEKIT_DEFAULT_CACHEFILE_STRATEGY='imagekit.cachefiles.strategies.Optimistic'

Add Django Cast’s URL patterns:

from django.urls import path

from rest_framework.documentation import include_docs_urls
from rest_framework.authtoken import views as authtokenviews


urlpatterns = [
    ...
    path('cast/', include('cast.urls', namespace='cast')),
    path('api/api-token-auth/', authtokenviews.obtain_auth_token),
    path('docs/', include_docs_urls(title='API service')),
    path("ckeditor/", include('ckeditor_uploader.urls')),
    ...
]

The api token auth urls and the docs urls are both necessary to provide api endpoints with the right namespace.

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History 0.1.5 (2018-11-21) ++++++++++++++++++

  • basic feed support (rss/atom) for podcasts

  • travis now runs tests with ffprobe, too

  • documentation fixes from @SmartC2016 and @oryon-dominik

0.1.4 (2018-11-18)

  • Include css via cast_base.html

  • audio fixes

0.1.3 (2018-11-17)

  • Fixed css/static icons

  • Merged pull request from SmartC2016 to fix javascript block issue

  • Added some documentation

0.1.2 (2018-11-08)

  • Added some requirements

  • Release Documentation

0.1.1 (2018-11-07)

  • Travis build is ok.

0.1.0 (2018-11-05)

  • First release on PyPI.

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

django-cast-0.1.5.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

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

django_cast-0.1.5-py2.py3-none-any.whl (54.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-cast-0.1.5.tar.gz.

File metadata

  • Download URL: django-cast-0.1.5.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for django-cast-0.1.5.tar.gz
Algorithm Hash digest
SHA256 64d06a4325c900fbfe3395ac4a0967abc54a7a9d13ca007eb6aff5972a568afd
MD5 21de4ce2c436ec62b20f525f3a930816
BLAKE2b-256 cac5fe914960a92c6bbe5d4d7cd0d8d391a0991310ccd9023783c5410fb18b52

See more details on using hashes here.

File details

Details for the file django_cast-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: django_cast-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 54.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for django_cast-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 62560054db52d695e9910c2a9b67cd6a7991bb9782e79f6c0d129266049e8d24
MD5 d91b9bf1fcea230ad482afaacc0d0c76
BLAKE2b-256 032063643e4206b974c3a72fd7bfed9473177768a92c87b2ae2cffacfdd6359e

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