معرفی شرکت ها


django-cloudistatic-0.1.dev2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A Django app to serve staticfiles using cloudinary
ویژگی مقدار
سیستم عامل -
نام فایل django-cloudistatic-0.1.dev2
نام django-cloudistatic
نسخه کتابخانه 0.1.dev2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Dibyajyoti Mondal
ایمیل نویسنده dibyajyoti.bhs@gmail.com
آدرس صفحه اصلی https://github.com/djm-1/django-cloudistatic
آدرس اینترنتی https://pypi.org/project/django-cloudistatic/
مجوز BSD-3-Clause
=================== django-cloudistatic =================== django-cloudistatic is a Django app to upload your staticfiles to Cloudinary and serve from there. Cloudinary serves files using CDN, which will reduce the load on django server and pages will load faster. Quick start ----------- 1. Add "djangocloudistatic" to your INSTALLED_APPS setting like this:: INSTALLED_APPS = [ ... 'djangocloudistatic', ] 2. Declare the following settings variables (you will get them from Cloudinary dashboard) :: CLOUDI_NAME = <Cloud name> CLOUDI_API_KEY = <API Key> CLOUDI_API_SECRET = <API Secret> 3. Include ``STATICFILES_DIRS`` and ``STATIC_ROOT`` in settings.py file (Should be included before ``STATIC_URL``) of your project. You may refer to https://docs.djangoproject.com/en/3.2/howto/static-files/ for details. 4. Modify the ``STATIC_URL`` like this:: STATIC_URL=f'https://res.cloudinary.com/{CLOUDI_NAME}/raw/upload/v1/{STATIC_ROOT}/' 5. Now run ``python manage.py collectstatic`` command to collect all staticfiles to STATIC_ROOT of your project. 6. Finally, run ``python manage.py cloudistatic`` to upload staticfiles to Cloudinary. Wait for a few minutes and your staticfiles will be ready to be served from there. If you want to delete your local STATIC_ROOT (staticfiles will not be served from here now) after uploading to cloud, then you should run ``python manage.py cloudistatic --deletelocal`` instead of ``python manage.py cloudistatic``. For more info check out the `documentation <https://django-cloudistatic.readthedocs.io>`_. And for questions about usage or development you can create an issue on Github.


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl django-cloudistatic-0.1.dev2:

    pip install django-cloudistatic-0.1.dev2.whl


نصب پکیج tar.gz django-cloudistatic-0.1.dev2:

    pip install django-cloudistatic-0.1.dev2.tar.gz