Saravanan666/pypi-org huggingface dataset:
Package: django-clear-cache
# django-clear-cache![I don't always clear my cache...](https://github.com/rdegges/django-clear-cache/raw/master/clear_cache.jpg)I often find myself in situations where I need to fully clear my website'scache (memcached or whatever). Often times this is required because:- I'm deploying new code and it will fail to run properly with my currentlycached objects.- I need to purge invalid (or old) information.- A *million* other reasons.The standard way to clear your cache is to open up a management shell, eg:``` bash$ python manage.py shellPython 2.7.3 (default, Apr 20 2012, 22:39:59)[GCC 4.6.3] on linux2Type "help", "copyright", "credits" or "license" for more information.(InteractiveConsole)>>> from django.core.cache import cache>>> cache.clear()```But obviously, this is annoying as I have to manually log into my productionshell.``django-clear-cache`` makes this process as easy as running a singlemanagement command.## InstallTo install ``django-clear-cache``, simply run ``pip install django-clear-cache``and you'll get the latest version installed automatically.Next, modify your Django ``settings.py`` file, and add ``clear_cache`` to your``INSTALLED_APPS`` setting:``` pythonINSTALLED_APPS = (# ...'clear_cache',)```## UsageTo clear your cache, simply run the ``clear_cache`` management command:``` bash$ python manage.py clear_cacheYour cache has been cleared!```**NOTE**: This will only (obviously) work if you've got a cache configured (eg:memcached, local memory, etc.). If you have no idea what I'm talking about,read through the [official Django caching docs](https://docs.djangoproject.com/en/dev/topics/cache/?from=olddocs).## Tests[![Build Status](https://secure.travis-ci.org/rdegges/django-clear-cache.png?branch=master)](http://travis-ci.org/rdegges/django-clear-cache)Want to run the tests? No problem:``` bash$ git clone git://github.com/rdegges/django-clear-cache.git$ cd django-clear-cache$ python setup.py develop...$ python manage.py test clear_cacheCreating test database for alias 'default'....Your cache has been cleared!..----------------------------------------------------------------------Ran 3 tests in 1.007sOKDestroying test database for alias 'default'...```
Package: django-clearcache-backport
This is a backport package from@timonweb'sClearCacheto Python 2.7.Django ClearCacheBackportAllows you to clear Django cache via admin UI or manage.py command.InstallationInstall using PIP:pip install django-clearcache-backportAddclearcacheto INSTALLED_APPS, make sure it's abovedjango.contrib.admin:INSTALLED_APPS += [
    ...
    'clearcache',
    'django.contrib.admin',
    ...
]Add url to the mainurls.pyright above root admin url:```
urlpatterns = [
    url(r'^admin/clearcache/', include('clearcache.urls')),
    url(r'^admin/', admin.site.urls),
]
```UsageVia Django adminGo to/admin/clearcache/, you should see a form with cache selectorPick a cache. Usually there's one default cache, but can be more.Click the button, you're done!Via manage.py commandRun the following command to clear the default cachepython manage.py clearcacheRun the command above with an additional parameter to clear non-default cache (if exists):python manage.py clearcache cache_name
Package: django-clear-memcache
OverviewAllow to clear Memcache items for the current site (according to the cache key prefix)
or even to clear the whole configured Memcache server.
The app integrates into Django’s admin interface for easy use.InstallationDependenciesDjango 2.1 or newerInstall:pip install django-clear-memcacheAdddjango_clear_memcachetoINSTALLED_APPSIf not already done, configureCACHESto have a default cache
with one of the supported Memcache backends (django.core.cache.backends.memcached.*)
and set aKEY_PREFIX.UsageOpen the admin interface and find the new menu item “Clear Memcache”.
There you can clear cache items for the configuredKEY_PREFIXor
even the whole Memcache server.Furthermore, you can list known items in the cache for the configuredKEY_PREFIX.Changes2022-01-08 - 1.4.3:Fix release date2022-01-08 - 1.4.2:Support Django 4.0 (#3, Daniel Eriksson)2020-04-22 - 1.4.1:Support Django 3.02020-04-22 - 1.4.0:Support Django 2.x (#2, Andres Vargas)2017-04-17 - 1.3.0:Support Python32016-08-18 - 1.2.1:Replace NoArgsCommand with BaseCommand
(for Django 1.10 support)2016-08-18 - 1.2.0:Drop deprecated django.conf.urls.patterns
(for Django 1.10 support)2015-08-16 - 1.1.1:Case memcached port number to an integer
(to fix connection errors in telnetlib)2014-12-09 - 1.1.0:Django 1.7 supportFind also namespaced jQuery2014-05-24 - 1.0.1:Include templates and static files2014-05-18 - 1.0.0:Initial releaseLicenseCopyright (c) 2017, Enrico Tröger
All rights reserved.Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name django-wakawaka nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: django-clear-tables
django-clear-tables v0.1.2This is a simple django-app, registering a task calleddjango_clear_tables.It will delete the contents of django'sPermissionandContentTypesmodels
so you can load data from a fixture without problems. Normally, an initialmigratewill
create permission and content-type data. If you want to clone data from another instance,
to a fresh database, this data will clash with theloaddatacommand.Be carefulbecause it can also easily mess up your existing database.Install it with:pipinstalldjango-clear-tablesUsage is as follows:Adddjango_clear_tablestoINSTALLED_APPSin your djangosettings.py, then:# initially setup the databasermdb.sqlite3# or using mysql, pg, ..../manage.pymigrate# wipe the initially created data./manage.pydjango_clear_tables# load a fixture from somewhere else./manage.pyloaddatadumpdata-from-another-instance.json
Package: django-cleavejs
This re-usable app helps integratingCleave.jsinto Django projects.
Cleave.js is a JavaScript library that can “help you format input text
content automatically”.django-cleavejseases integration into Django. It wrapsCleave.js’s
options object into a form widget class, which takes care of transporting
the options to JavaScript and initialisingCleave.jsfor each such
input field.InstallationTo adddjango-cleavejsto a project, first add it as dependency to your
project, e.g. usingpoetry:$ poetry add django-cleavejsThen, add it to yourINSTALLED_APPSsetting to make its static files
available:INSTALLED_APPS = [
    ...
    "dj_cleavejs.apps.DjCleaveJSConfig",
    ...
]You need to makeCleave.jsitself available by some means. You can
download it manually, or use your favourite asset management library. For
instance, you could usedjango-yarnpkgto depend on thecleave.jsYarn package:YARN_INSTALLED_APPS = [
  "cleave.js",
]
NODE_MODULES_ROOT = os.path.join(BASE_DIR, "node_modules")
STATICFILES_FINDERS += ["django_yarnpkg.finders.NodeModulesFinder"]You can then either include it in your template yourself, or makedjango-cleavejsadd it to its form media by configuring the URL or
path in your settings:CLEAVE_JS = "cleave.js/dist/cleave.min.js"The above example uses the path belowSTATIC_ROOTwheredjango-yarnpkgwould put the package, but you can of course use any URL or path you want
depending on how you want to makeCleave.jsavailable to the browser.UsageOnce available, you can create a form as normal and use the widget
on anyCharField:from django.forms import CharField, Form

from dj_cleavejs import CleaveWidget


class TestForm(Form):
    windows_xp_serial = CharField(widget=CleaveWidget(blocks=[5, 5, 5, 5, 5],
                            delimiter="-"))In your template, make sure to include the form media of your form somewhereafterthe form.TheCleaveWidgetsupports all optionsCleave.jssupports, as described
in itsoptions documentation. In the future,django-cleavejswill also
provide shortcuts.ExampleThe source distribution as well as theGit repositorycontain a full example
application that serves a test form unter/test.html.It is reduced to a minimal working example for the reader’s convenience.
Package: django-cleditor
What is it?============A simple django app that makes using an WYSIWYG editor (CLEditor) extremely easy.Optionally includes a mixin that activates file upload handling.![Screenshot](https://github.com/yuchant/django-cleditor/raw/master/cleditor.png)Installation instructions=========================Download and add ``django-cleditor`` to your packages however you wish.- The easiest method is to use pip: `pip install django-cleditor`- Add ``cleditor`` to your ``INSTALLED_APPS``- Run the ``python manage.py collectstatic`` management command to ... collect the static files.- Use `cleditor.widgets.CLEditorWidget` anywhere a django form widget is expected.- For admin upload handling subclass `cleditor.admin.CLEditorUploadAdmin` and use `cleditor.widgets.CLEditorUploadWidget` instead.Usage instructions==================Editor only-----------This package supplies a ``CLEditorWidget`` form widget in ``cleditor.widgets`` that you can use anywhere the django forms framework expects a widget.To replace all textfields in a ``ModelAdmin`` with ``CLEditors`` simply paste two lines:```pythonfrom django.db import modelsfrom cleditor.widgets import CLEditorWidgetclass MyModelAdmin(admin.ModelAdmin):formfield_overrides = { models.TextField: {'widget': CLEditorWidget()}}```_Note: If you need finer control over which textfields get overriden, look into ``ModelAdmin.formfield_for_dbfield``_You're done!Easy admin upload handler-------------------------To allow users to upload via a the insert image widget, you must use the `CLEditorUploadWidget` widget and you must subclass the included `ModelAdmin` which adds a fully csrf protected upload handler to your admin site.You can specify a new upload directory by adding an `upload_to` attribute to the `ModelAdmin````pythonfrom django.db import modelsfrom cleditor.widgets import CLEditorUploadWidgetfrom cleditor.admin import CLEditorUploadAdminclass MyModelAdmin(CLEditorUploadAdmin):# upload_to = 'cleditorupload/' # defaultformfield_overrides = { models.TextField: {'widget': CLEditorUploadWidget()}}```Stand alone uploader (non admin)--------------------------------To upload images without the admin panel, you'll have to map a URL to the upload handler and pass in your custom handler URL to the widget.```python# urls.pyfrom cleditor.admin import cleditor_upload_handlerurlpatterns = patterns('',(r'^my-upload-handler/$', cleditor_upload_handler, {'upload_to': 'my_upload_directory'}),)``````python# widget instantiationclass MyForm(forms.Form):myfield = forms.TextField(widget=CLEditorUploadAdmin(upload_url='path-to-my-upload-handler'))```Credits========* Chris Landowski - original cleditor image upload pluginhttps://github.com/dmitry-dedukhin/cleditor-extimage-plugin* Dmitry Dedukhim - cleditor jquery plugin creatorhttp://premiumsoftware.net/cleditor/
Package: django-clerk
django-clerkdjango-clerk is a Django library that integrates with the Clerk authentication platform. It provides seamless integration with Clerk's user authentication and authorization features, allowing you to easily authenticate and manage users in your Django application.(or at least that's the goal - currently very alpha - thar be dragons)Table of ContentsInstallationLicenseInstallationpip install django-clerkAdd to appsINSTALLED_APPS=[# other apps...'django_clerk',]Add Middleware which sets request.userMIDDLEWARE=[# other middleware...'django_clerk.middleware.ClerkMiddleware',]The following setting is required.
CLERK_JWT_PEM_PUBLIC_KEY = "your_public_key_here"Licensedjango-clerkis distributed under the terms of theMITlicense.
Package: django-clever-cache
Django cache backend with automatic granular invalidation.Requiresdjango >= 1.8redis >= 3.0django-redisInstallation and setup$pipinstalldjango-clever-cachein settings.py: addclever_cacheto INSTALLED_APPS, and setclever_cache.backend.RedisCacheas your cache backend.CACHES={"default":{"BACKEND":'clever_cache.backend.RedisCache',"LOCATION":"redis://127.0.0.1:6379/1","OPTIONS":{'DB':1,}}}Usageto save value in cache use standart functiondjango.core.cache.cache.setwith optional argumentdepends_on:cache.set(key, value,depends_on=[<dependencies_list>])Dependency can be:Model classif you set model class as dependency (cache.set(key, value,depends_on=[SomeModel])), and change any
instance of SomeModel, callbulk_create,updateordeleteto
model’s queryset, key will be invalidated.Model instanceif you set model instance as dependency
(cache.set(key, value,depends_on=[some_instance])), and change this
instance(including changing m2m fields), key will be invalidated.Related mangerLet’s assume you have following models:classParent(models.Model):name=models.CharField(max_length=32)classChild(models.Model):parent=models.ForeignKey(Parent)name=models.CharField(max_length=32)some_parent=Parent.objects.get(id=42)so, if you set related manager as a dependency
(cache.set(key, value,depends_on=[some_parent.child_set])), and
change any Child object with parent = some_parent, key will be
invalidated.
Package: django-clever-pages
# Django Clever Pages[![PyPI version](https://badge.fury.io/py/django-clever-pages.png)](http://badge.fury.io/py/django-clever-pages)[![Travis Build](https://travis-ci.org/artofhuman/django-clever-pages.png)](https://travis-ci.org/artofhuman/django-clever-pages)[![Coverage Status](https://coveralls.io/repos/artofhuman/django-clever-pages/badge.png)](https://coveralls.io/r/artofhuman/django-clever-pages)[![PyPi downloads](https://pypip.in/d/django-clever-pages/badge.png)](https://crate.io/packages/django-clever-pages)Simple application that allows you to organize pages in a tree# IdeaIs located at the top level home page. Other pages are linked to the home page. Thus obtaining a tree. On the basis of field slug and parents pages generated path when saving. In the view gets page by unique path from the database.# Features* Organize pages in tree structure* Includes CKEditor* Auto build path by page slug* Generate page url, include all parents* Drag-n-dtop interface in admin* Include Search indices for haystack (need haystack >= 2.x). Sphinx in plans* Include meta tags via django-meta## Instalation## From Pypipip install django-clever-pages## From githubpip install git+git://github.com/artofhuman/django-clever-pagesAdd this line to your settings.py~~~~ PythonINSTALLED_APPS = ('feincms','meta','ckeditor','page',)~~~~Add it to end urls.py~~~~ Pythonurlpatterns = patterns('',('', include('page.urls')))~~~~You can define more templates in settings.py~~~~ PythonPAGE_TEMPLATES = (('contacts', u'Contacts'),)~~~~Meta tags in base.html~~~~ Django{% load meta %}<head><title>{{ meta.title }}</title>{% if meta.description %}{% meta 'description' meta.description %}{% endif %}{% if meta.keywords %}{% meta_list 'keywords' meta.keywords %}{% endif %}</head>~~~~# TODO- Add locales- Add section about haystack- Add sphinx integration- Add Etag cacheP.S. Sorry for my bad english :)[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/artofhuman/django-clever-pages/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
Package: django-cli
Django-CLI
===
[![PyPI](https://img.shields.io/pypi/dm/django-cli.svg)]()
[![PyPI](https://img.shields.io/pypi/v/django-cli.svg)]()This doesn't really do anything yet. Still in planning stages.Changes
===v 0.0.1 - Feb 2, 2016: Initialized project, it does nothing.
Package: django-cliauth
Authenticating Apache2 using your Django DBMake sure you have apache2 mod-auth-external installed and configured (See:http://code.google.com/p/mod-auth-external/wiki/Configuration)Define django-cliauth as your external authenticator by adding the following line in your virtualhost:DefineExternalAuth django_cliauth pipe “/path/to/your/django-admin.py cliauth –settings=”YOUR_PROJECT.settings””Set your authentication using a .htaccess file (or <Location> inside the virtualhost):AuthType BasicAuthName <authname>AuthBasicProvider externalAuthExternal django_cliauthRequire valid-userReload your apache2 configurationChecking is the user belongs to a groupDefine django-cliauth as your external group checker by adding the following to your apache virtualhost:DefineExternalGroup django_cliauth_grpck pipe “/path/to/your/django-admin.py cliauth  –groupcheck –settings=’YOUR_PROJECT.settings’”Set your authentication using a .htaccess file (or <Location> inside the virtualhost):AuthType BasicAuthName <authname>AuthBasicProvider externalAuthExternal django_cliauthGroupExternal django_cliauth_grpckRequire group <groupname1> <groupname2> …
Package: django-click
Django ClickProject information:Automated code metrics:django-clickis a library to easily write Django management commands using theclickcommand line library.Free software: MIT licenseDocumentation for the Click command line library:http://click.pocoo.org/8/Compatible with Django 2.2, 3.1, or 3.2 running on Python 3.6, 3.7, 3.8, 3.9, and PyPy.Installationpip install django-clickExampleCreate a command module as you would usually do, but instead of creating a
class, just put adjclickcommand into<yourapp>/management/commands/helloworld.py:importdjclickasclick@click.command()@click.argument('name')defcommand(name):click.secho('Hello,{}'.format(name),fg='red')And then call the command with:$ ./manage.py helloworld django-click
Hello, django-clickCheck out thetest commandsfor additional example commands and advanced usage.HistoryUnreleased…2.2.0 - 2020-04-14Fix compatibility with latestclick: remove__all__.2.1.0 - 2018-04-20Add experimental support for Django 2.02.0.0 - 2017-06-30Drop support for unsupported Django versions (1.4, 1.5, 1.6, and 1.7).Add official support for Django 1.10 and 1.11.Add official support for python 3.5 (all Django versions) and 3.6
(Django 1.11 only).Correctly handle click errors by outputting the formatted messages instead
of a stack trace (#4).1.2.0 - 2016-05-19Allow custom lookups onModelInstanceparameter types.1.1.0 - 2016-02-04Add aModelInstanceparameter type to automatically retrieve model
instances by their primary key1.0.0 – 2015-09-14Support for command groupsAdded apass_verbositydecoratorImproved test suite0.1.1 – 2015-09-11Django 1.4, 1.5, 1.6, 1.7 and 1.8 compatibilityPython 2.7 and 3.4 compatibility100% coverage test suite0.1.0 – 2015-09-10Initial release
Package: django-client-data
This allows Django to export JSON-compatible data to the browser.  The
client-side code accesses the data as a JavaScript object.InstallationTo get the latest stable release from PyPipipinstalldjango_client_dataInstall the app, middleware, and context processorINSTALLED_APPS=(...,'django_client_data',)MIDDLEWARE_CLASSES=(...'django_client_data.middleware.ClientDataMiddleware',)TEMPLATE_CONTEXT_PROCESSORS=(...'django_client_data.context_processors.client_data',)UsageCallset_client_data()in your view to export valuesfromdjango.views.genericimportTemplateViewfromdjango_client_dataimportset_client_dataclassIndexView(TemplateView):template_name='index.html'defget(self,request,*args,**kwargs):set_client_data(request,**{'foo':'bar'})returnsuper(IndexView,self).get(request,*args,**kwargs)Includeclient_data.htmlin your page{%include'django_client_data/client_data.html'%}The JavaScript objectDJANGO.client_datawill look like{"DEBUG":false,"STATIC_URL":"/static/","csrftoken":"gSlpOPyxHrdQH3KWUEkXx1wfyqGE7MDo","foo":"bar","url_args":[],"url_kwargs":{},"url_name":"index","user_full_name":null,"user_pk":null,"username":null}SettingsCLIENT_DATA_NAMESPACE (defaults to ‘DJANGO’) is the JavaScript global that will
be created as the namespace to contain the client data.  The data is a property
of this global and is named ‘client_data’.MechanismDjango Client Data works by attaching aclient_dataattribute on the request
object.  Theclient_data.htmltemplate attaches aclient_dataproperty
to the JavaScript global indicated by CLIENT_DATA_NAMESPACE.TodoAdd a “context processors” feature to client data so custom values can be
injectedRun Tests./configure.shsourcevenv/bin/activatepythondjango_client_data/tests/manage.pytest
Package: django-client-emailer
django-client-emailer:Introduction:django-client-emailer is used for sending mails from different clients i.e. AWS, sendgrid, mailjet etc.Source Code is available in Repository(https://github.com/tardonly/django-client-emailer).Modules used:boto3requestsdjangoRequirementsPython  >= 3.4Installation ProcedureInstall django-client-emailer using the following command::pip install django-client-emailer
 	or
 git clone git://github.com/micropyramid/django-email-gateway.git

 cd django-client-emailer

 python setup.py installAfter installing/cloning this, add the following details in django settings file to send emails notifications ::MAIL_SENDER = 'AMAZON' for aws
or
'MAILGUN' for mailgun
or
'SENDGRID' for sendgrid
or
'MAILJET' for mailjet
or
None for django default mailerAWS details if mail sender amazonAWS_ACCESS_KEY_ID = "Your AWS Access Key"AWS_SECRET_ACCESS_KEY = "Your AWS Secret Key"mailgun if mail sender is mailgunMGUN_API_URL = 'mailgun api url'MGUN_API_KEY = 'mailgun api key'mailjet if mail sender is mailjetMJ_APIKEY_PUBLIC = 'mailjet api key'MJ_APIKEY_PRIVATE = 'mailjet api secret'validating emailsEmail get validated fromvalidate_emailUsage:#####Sending an email:send_mail(subject, email_template_name, context, from_email, to_email, verified, cc_list=None, bcc_list=None)It will process the your message content, will return the email subject, from mail, to email(abc@yourdomain.com), hashcode(abc), mail content.
Package: django-clients-ds
django-clients_dsdjango-clients_ds is a Django app to use for demiansoft.Quick startAdd "clients" to your INSTALLED_APPS setting like thisINSTALLED_APPS=[...'clients',]코드를 넣고자 하는 위치에 다음을 추가 한다.{% load clients_tags %}
{% make_clients %}context examplecontext={"theme":"mentor_ds","clients":["amc","cmc","khmc","pnuh","sev","smc","snuh"]}