Django Cast
=============================
.. image:: https://badge.fury.io/py/django-cast.svg
:target: https://badge.fury.io/py/django-cast
.. image:: https://travis-ci.org/ephes/django-cast.svg?branch=master
:target: https://travis-ci.org/ephes/django-cast
.. image:: https://codecov.io/gh/ephes/django-cast/branch/master/graph/badge.svg
:target: https://codecov.io/gh/ephes/django-cast
Just another blogging / podcasting package
Daocumentation
-------------
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`:
.. code-block:: python
INSTALLED_APPS = (
...
'imagekit',
'ckeditor',
'ckeditor_uploader',
'rest_framework',
'rest_framework.authtoken',
'cast.apps.CastConfig',
...
)
Add Django Cast's URL patterns:
.. code-block:: python
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')),
...
]
The api token auth urls and the docs urls are both necessary to provide api endpoints
with the right namespace.
Add required settings:
.. code-block:: python
# 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'
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:
* Cookiecutter_
* `cookiecutter-djangopackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
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.
Metadata
Release files for django-cast 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-cast-0.1.4.tar.gz | 33.7 kB | Without provenance | Details for django-cast-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_cast-0.1.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_cast-0.1.4-py2.py3-none-any.whl |
Total release size: 76.4 kB
Release files / django-cast-0.1.4.tar.gz
| Download URL | django-cast-0.1.4.tar.gz |
|---|---|
| Size | 33.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7cc98fb3ed959a5c2a295f8945f6415fac564eb4998b1987e1435a446431643
|
|
BLAKE2b-256 checksum How to use checksums |
dec661addec8f260490180649b4346c17285acad87f4664d5b2ec8cbe77fc1da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Release files / django_cast-0.1.4-py2.py3-none-any.whl
| Download URL | django_cast-0.1.4-py2.py3-none-any.whl |
|---|---|
| Size | 42.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
89c9215466ad2885a325ee35674d72538ae5523a934c8852a9050267f98e5dac
|
|
BLAKE2b-256 checksum How to use checksums |
aaa2aa511d1ddf63718591775ed7b9751c23313874ee58e4f7cb0009db0032dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Security for django-cast 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.