An app that provides django integration create uptoken for suuze upload service
Project description
=========
django-suuze-upload
=========
|Build Status|
django-suuze-upload is a simple app that allows you to get suuze private file upload services
uptoken. Using this uptoken you can easily upload file with js-sdk in your project.
============
Requirements
============
* `Django <https://www.djangoproject.com/>`_ (1.9+)
* `requests <http://docs.python-requests.org/en/master/>`_ (2.11.1+)
============
Installation
============
* Install ``django-suuze-upload`` (or `download from PyPI <>`_):
.. code-block:: python
pip install django-suuze-upload -i http://p.int.cdnzz.net:19883/simple/
* Add ``django_suuze_upload`` to ``INSTALLED_APPS`` in ``settings.py``:
.. code-block:: python
INSTALLED_APPS = (
# other apps
"django_suuze_upload",
)
* Configure your queues in django's ``settings.py``
.. code-block:: python
SUUZE_UPLOAD_CONFIG = {
# domain provide upload file service
'domain': 'http://upload-file.cdnzz.com',
# web app namn
'app': 'upload-file-demo',
# direction where holds uploaded file
'path': 'app/upload',
# access_key to generate uptoken
'access_key': 'xxxxxxxx',
# optional, in second, default is 1800
# 'expire': 1800,
}
=====
Usage
=====
Fetch uptoken in your project
-------------------------
`django-suuze-upload` allows you to easily fetch uptoken and using uptoken with upload-js-sdk.
.. code-block:: python
from django_suuze_upload import fetch_uptoken
uptoken = fetch_uptoken()
django-suuze-upload
=========
|Build Status|
django-suuze-upload is a simple app that allows you to get suuze private file upload services
uptoken. Using this uptoken you can easily upload file with js-sdk in your project.
============
Requirements
============
* `Django <https://www.djangoproject.com/>`_ (1.9+)
* `requests <http://docs.python-requests.org/en/master/>`_ (2.11.1+)
============
Installation
============
* Install ``django-suuze-upload`` (or `download from PyPI <>`_):
.. code-block:: python
pip install django-suuze-upload -i http://p.int.cdnzz.net:19883/simple/
* Add ``django_suuze_upload`` to ``INSTALLED_APPS`` in ``settings.py``:
.. code-block:: python
INSTALLED_APPS = (
# other apps
"django_suuze_upload",
)
* Configure your queues in django's ``settings.py``
.. code-block:: python
SUUZE_UPLOAD_CONFIG = {
# domain provide upload file service
'domain': 'http://upload-file.cdnzz.com',
# web app namn
'app': 'upload-file-demo',
# direction where holds uploaded file
'path': 'app/upload',
# access_key to generate uptoken
'access_key': 'xxxxxxxx',
# optional, in second, default is 1800
# 'expire': 1800,
}
=====
Usage
=====
Fetch uptoken in your project
-------------------------
`django-suuze-upload` allows you to easily fetch uptoken and using uptoken with upload-js-sdk.
.. code-block:: python
from django_suuze_upload import fetch_uptoken
uptoken = fetch_uptoken()
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
Close
Hashes for django-suuze-upload-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11b7816598b4302371dce1db81d32f8a8d691020545c88c9b144b8b7fbb22af7 |
|
MD5 | 16e759bc0da41249762a12eda80cb3ee |
|
BLAKE2b-256 | f3455f2866ef7cf92cd6d4d525fc1a4ce5c9c33c808023d960374e67af033a98 |