Saravanan666/pypi-org huggingface dataset:
Package: djangocms-slideshow
A simple django cms slideshow plugin.Features:The images can be arranged.Each image can have a url specified (creating an anchor around the image)By default, creates a [flexslider](http://www.woothemes.com/flexslider/) slideshow.InstallationThis plugin requiresdjango CMS 3.0or higher to be properly installed and configured.To install:runpip install djangocms-slideshowon your virtualenvaddslideshowto yourINSTALLED_APPSsettingRun./manage.py migrate slideshowUsageTo use a custom template, just addslideshow.htmlin directorytemplates/slideshowof your Django project.
Package: django-cms-smartsnippets
django-cms-smartsnippetssmartsnippetsis adjango-cmsplugin similar to the builtinsnippetplugin but instead of allowing only plain HTML you can use any valid
Django template syntax inside. When a smartsnippet is added in a page
the user can provide values for all detected used variables. This is much
more flexible than the standardsnippetif you want to parametrize
and reuse your static snippets.NoteAll variables enclosed in curly-braces are automatically detected. In some
cases you may need to artificially create such a construct for a variable to
be detected. If a variable name ends with_it won’t be detected.ExampleA simple smartsnippet using theTwitter profile example:<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 30000,
  width: 250,
  height: 300,
  theme: {
    shell: {
      background: '#333333',
      color: '#ffffff'
    },
    tweets: {
      background: '#000000',
      color: '#ffffff',
      links: '#4aed05'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: false,
    behavior: 'all'
  }
}).render().setUser('{{twitter_username}}').start();
</script>Note the{{twitter_username}}variable used as a standard Django
variable. When adding the smartsnippet in a page, the form will
provide an input field where you can set a value of that variable.SettingsThere are three configuration variables available:SMARTSNIPPETS_SHARED_SITESa list of site names defaulting
to an empty list. All the sites listed here will share their
smartsnippets with all the other sites as read-only. This can be
Useful in a shared environment to enable code sharing.SMARTSNIPPETS_INCLUDE_ORPHANa boolean flag that defaults toTrue. If this option is enabled, selecting a site in the
smartsnippet creation form is optional. If a smartsnippet doesn’t
belong to any site it will behave as global and will be available
in all sites. If set toFalsethe user will be forced to link
the smartsnipptes that he creates to at least one site.SMARTSNIPPETS_RESTRICT_USERa boolean flag that defaults toFalse. This flag, if set, will limit the smartsnippets that
a user can access based on his relation to sites trough the global
pages permission system. This can be useful in a shared environment.
By default a user can access all the smartsnippets in the system.WarningThis plugin is a potential security hazard, since it allows admins to place
custom JavaScript on pages. This may allow administrators with the right to
add snippets to elevate their privileges to superusers. This plugin should
only be used during the initial development phase for rapid prototyping and
should be disabled on production sites.
Package: djangocms-snippet
django CMS Snippetprovides a plugin fordjango CMSto inject HTML, CSS or JavaScript snippets into your website.This project is endorsed by thedjango CMS Association. Join us onSlack.Warning: We recommend using this plugin only during development:This plugin is a potential security hazard, since it allows authorized-
users to place custom markup or Javascript on pages bypassing all of
Django's normal sanitization mechanisms. This could be exploited by users
with the right to add snippets to elevate their privileges to superusers.
This plugin should only be used during the initial development phase for
rapid prototyping and testing.Contribute to this project and win rewardsBecause this is a an open-source project, we welcome everyone toget involved in the projectandreceive a rewardfor their contribution.
Become part of a fantastic community and help us make django CMS the best CMS in the world.We’ll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your
pull request, please review ourcontribution guidelines.We’re grateful to all contributors who have helped create and maintain this package.
Contributors are listed at thecontributorssection.One of the easiest contributions you can make is helping to translate this addon onTransifex.DocumentationSeeREQUIREMENTSin thesetup.pyfile for additional dependencies.InstallationFor a manual install:runpip installdjangocms-snippetadddjangocms_snippetto yourINSTALLED_APPSrunpython manage.py migrate djangocms_snippetDjangocms-snippet uses the ace code editor which normally is loaded from a CDN.
If you prefer your application to provide the editor locally, you can change
the requirement fromdjangocms_snippettodjangocms_snippet[static-ace]and
adddjangocms_static_aceto your project’sINSTALLED_APPS.ConfigurationTo allow the contents of all snippets to be searchable, please setDJANGOCMS_SNIPPET_SEARCHtoTruein your settings:DJANGOCMS_SNIPPET_SEARCH = TrueWe are usingAceas our editor of choice
to edit the snippet content. You can customize thethemeandmodethrough:DJANGOCMS_SNIPPET_THEME = 'github'
DJANGOCMS_SNIPPET_MODE = 'html'If dynamic content is inserted (for example{% show_menu ... %}), the plugin cache must be disabled,
please setDJANGOCMS_SNIPPET_CACHEtoFalsein your settings:DJANGOCMS_SNIPPET_CACHE = False # default value is FalseTemplate tagYou can also use a template tag to render a snippet rather than a plugin:{% load snippet_tags %}
{% snippet_fragment [reference] %}Replace[reference]with either:The snippet ID, e.g.{% snippet_fragment 42 %}The snippet slug, e.g.{% snippet_fragment'my-snippet'%}The snippet instance, e.g.{% snippet_fragment instance.snippet %}Optionally provide a fallback if there is no matching id/slug/instance:{% snippet_fragment 'my-snippet' or %}
    ... your content fallback here ...
{% endsnippet_fragment %}Running TestsYou can run tests by executing:virtualenv env
source env/bin/activate
pip install -r tests/requirements.txt
python setup.py test
Package: django-cms-social-networks
Available PluginsFacebookFacebook CommentsFacebook FacepileFacebook LikeboxFacebook Like buttonFacebook Login buttonFacebook Live streamPending PluginsFacebox pluginsSend ButtonSubscribe ButtonRecommendations BoxActivity FeedRegistrationRecommendations barTwitter pluginsTwitter Tweet buttonTwitter Follow buttonTwitter Tweet Hashtag buttonTwitter Tweet to buttonEmbedded TweetsNotesAbout Facebook pluginsSocial networks plugins as Facebook Comments plugin need add thexmlnsblock on thehtmltag of the.htmltemplate. For
example:<html
 xmlns="http://www.w3.org/1999/xhtml" {%render_block "xmlns" %}
>
Package: djangocms-stacks
Stacks: re-usable content blocksTo put it in terms of django CMS: This is re-usable Placeholder. It can used in any template as a named entity:{% load stack_tags %}
{% stack 'my_footer' %}This will create aStackwith themy_footeridentifier. It can be edited in admin.Stackscan also be used inside regular placeholders. Suppose you have some content that you want to re-use in
multiple places: Make a stack and insert that stack with theStackLinkPluginwherever you need it.Stacks is multilingual (using the multilinguality of cms-plugins. So make sure your stack is translated into the
language of the page you place it on.There is currently no validation in place to prevent infinite loops… so please don’t put aStackLinkPlugininside a Stack with a link to itself.Requirementspython>=2.6Django>=1.3django-cms>=2.3Installation and Configurationpip install djangocms-stacksinsettings:INSTALLED_APPS = (
    [...]
    'stacks',
    'django_select2',
    [...]
)add theDjango-Select2urls:urlpatterns = patterns('',
    [...]
    url(r'^select2/', include('django_select2.urls')),
    [...]
)create the database tables:python manage.py migrate stacksIdea based onhttps://github.com/divio/django-contentblock.history0.2.3 (2014-03-15)Adds setting to disable stacks widget0.2.2 (2012-12-10)Adds Permission checks for ajax requests0.2.1 (2012-12-10)Adds Django-Select2 as selection field0.2 (2012-12-10)Initial release. Basic multilingual stacks.
Package: djangocms-static-ace
djangocms-static-aceThis app provides the ace source code editor files under the static files urls for the django cms admin
interface (plugin modals essentially).It is only needed if the project does not have internet access, or, if it prefers third party resources
not to be loaded over the internet.This app is a conditional dependency of, potentially amongst others,djangocms-frontendanddjangocms-snippet.InstallationThe typical installation adds the[static-ace]optional argument to the app requiring the ace code editor, e.g.,djangocms-frontend[static-ace]. If needed it can be installed explicitly bypip install djangocms-static-ace.Finally, to make the static ace files available,djangocms_static_aceneeds to be explicitly declared in the projectsINSTALLED_APPSsetting (in the project'ssettings.py):INSTALLED_APPS = [
    ...,
    "djangocms_static_ace",
    ...,
]Once made available, compliant apps will load the ace editor locally from static files.Using the ace editor for your own pluginsTo make your own plugin aware of djangocms-static-ace you will need to define a custom form for your
plugin and add aMediaclassfrom django.conf import settings as django_settings
from django import forms

from ... import MyFormModel


class MyPluginForm(forms.ModelForm):

    class Media:
        js = (
            "admin/vendor/ace/ace.js"
            if "djangocms_static_ace" in django_settings.INSTALLED_APPS
            else "https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.6/ace.js",
        )

    class Meta:
        model = MyFormModel
        exclude = ()Finally, you need to point your plugin'sformattribute toMyPluginForm.class MyPlugin(CMSPluginBase):
    ...
    form = MyPluginForm
    ...VersionsCurrently, django CMS uses ace 1.9.6
Package: django-cms-storelocator
django-cms-storelocator=================An extension for Django CMS that lets you enter your store locations anddrop a plugin on any page that generates a map and store list based oncity/state or zip code search input, or a city drop down for each citywith a location in it.Dependancies============- django (tested with 1.3)- django-cms (tested with 2.2)Getting Started=============To get started simply install using ``pip``:::pip install django-cms-storelocatorAdd ``store_locator`` to your installed apps and ``syncdb`` (or migrate, ifyou have south installed).Your installed apps should look something like this:::INSTALLED_APPS = ('django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.sites','django.contrib.messages','django.contrib.admin','cms','store_locator',)Finally, add store_locator.urls to your urls.py so that we can make a fewajax calls needed to interact with the map.  Here's what a simple urls.pymight look like:::urlpatterns = patterns('',url(r'^admin/', include(admin.site.urls)),url(r'^store-locator/', include('store_locator.urls')),url(r'^', include('cms.urls')),)Usage=============You can add store locations through the admin, the app will try to find alat/long via google maps api if you do not enter them.Once you have your locations entered you can simply drop a Store Locatorplugin on any page in your Django CMS implementation and it will rendera google map, a search field, a search distance drop down, and a searchbutton.  When a user searchs for an address, zip code, city, or any otherlocation information that Google Maps can translate into an address, theplugin will show markers on the map for any Store Locations that arewithin the distance specified by the user of the address they searched for.
Package: djangocms-store-locator
A simple store locator plugin for django CMS that uses Google Maps.
The code is heavily inspired by a similar plugin by Mark Ransom,https://github.com/MegaMark16/django-cms-storelocator.Featuresdjango CMS Plugin displays a google map with locationssearch for locations in range of an addresslocations can be grouped and searched by location typessetting for kilometers or milesInstallationpip installdjangocms-store-locator(requiresdjango-fileranddjango-sekizai)add'djangocms_store_locator'to your INSTALLED_APPSpython manage.py syncdborpython manage.py migrate djangocms_store_locatorif you are using Southadd something like this to your urls.pyurl(r'^store-locator/', include('djangocms_store_locator.urls')),done!Usageadd some locations in the admininsert the “Store Locator Plugin” on a pageOptional settingsseesettings.py
Package: djangocms-style
django CMS Styleis a plugin fordjango CMSthat allows you to create a HTML container containing classes, styles, ids
and other attributes definable through the plugins settings.NoteThis project is considered 3rd party (no supervision by thedjango CMS Association). Join us onSlackfor more information.Contribute to this project and win rewardsBecause this is a an open-source project, we welcome everyone toget involved in the projectandreceive a rewardfor their contribution.
Become part of a fantastic community and help us make django CMS the best CMS in the world.We’ll be delighted to receive your
feedback in the form of issues and pull requests. Before submitting your
pull request, please review ourcontribution guidelines.We’re grateful to all contributors who have helped create and maintain this package.
Contributors are listed at thecontributorssection.DocumentationSeeREQUIREMENTSin thesetup.pyfile for additional dependencies:InstallationFor a manual install:runpip installdjangocms-styleadddjangocms_styleto yourINSTALLED_APPSrunpython manage.py migrate djangocms_styleConfigurationdjango CMS Style enables you to provide a list of predefined classes to be
displayed as first options, the default choices are:DJANGOCMS_STYLE_CHOICES = ['container', 'content', 'teaser']You are encouraged to modify that setting to your projects specifications.This addon provides adefaulttemplate for all instances. You can provide
additional template choices by adding aDJANGOCMS_STYLE_TEMPLATESsetting:DJANGOCMS_STYLE_TEMPLATES = [
    ('feature', _('Feature')),
]You’ll need to create thefeaturefolder insidetemplates/djangocms_style/otherwise you will get atemplate does not existerror. You can do this by
copying thedefaultfolder inside that directory and renaming it tofeature.The available tags can also be configured, the default choices are:DJANGOCMS_STYLE_TAGS = ['div', 'article', 'section', 'header', 'footer',
                        'h1', 'h2', 'h3', 'h4', 'h5', 'h6']NOTICE:All tags included in this list should be "paired tags" that require a
closing tag. It does not make sense to attempt to use 'img', 'input',
'meta', or other self-closing tags in this setting.

Also, the developer is advised to choose the tag-types wisely to avoid HTML
validation issues and/or unintentional security vulnerabilities. For
example, the 'script' tag should never be allowed in
``DJANGOCMS_STYLE_TAGS`` (though, we do not prevent this). If you have
an application where you find yourself wishing to do this, please see
djangocms-snippet as an alternative, but note these projects also come
with appropriate security warnings.After that you can place any number of other plugins inside this style plugin.
It will create a div (or other tag-type) with a class that was prior selected
around the contained plugins.Running TestsYou can run tests by executing:virtualenv env
source env/bin/activate
pip install -r tests/requirements.txt
python setup.py test
Package: django-cms-superset-plugin
Django CMS plugin for embedding Superset dashboards.Quick startAdd “django_cms_superset_plugin” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...,
    "django_cms_superset_plugin",
]Runpython manage.py makemigrations django_cms_superset_pluginto create the django_cms_superset_plugin migrations.Runpython manage.py migrate django_cms_superset_pluginto create the django_cms_superset_plugin models.4. Start the development server and visithttp://127.0.0.1:8000/admin/to add/edit
new dashboards to your pages. The plugin name is identified as superset.Key FeaturesAdd/modify multiple row level security filtersChange dashboard width and heightToogle the display of dashboard elements title, tab, chart controls, and filtersScreenshots![Change Dashboard Settings](https://a.imagem.app/oHncGS.png)RoadmapSupport Jinja Templating to improve row level security filter clauses;Improve error handling;Tests and CI;Feel free to propose new ideas!
Package: djangocms-table
djangocms-table===============A Table Plugin for django CMS.Installation------------This plugin requires `django CMS` 2.3 or higher to be properly installed.Version 1.0.x is compatible with `django CMS` 2.3 and 2.4Version 1.1.x is compatible with `django CMS` 3.0 onlyDo not install version 1.1.x if you are are running `django CMS` 2.3 or 2.4* In your projects `virtualenv`_, run ``pip install djangocms-table``.* Add ``'djangocms_table'`` to your ``INSTALLED_APPS`` setting.* Run ``manage.py migrate cmsplugin_table``.Kudos-----This plugin contains the handsontable.com jquery library.Thanks to notch-interactive.com as well for some code examples.Translations------------If you want to help translate the plugin please do it on transifex:https://www.transifex.com/projects/p/django-cms/resource/djangocms-table/
Package: djangocms-table-changer
djangocms-table===============A Table Plugin for django CMS.Installation------------This plugin requires `django CMS` 3.0 or higher to be properly installed.* In your projects `virtualenv`_, run ``pip install djangocms-table``.* Add ``'djangocms_table'`` to your ``INSTALLED_APPS`` setting.* If using Django 1.7 add ``'djangocms_table': 'djangocms_table.migrations_django',``to ``MIGRATION_MODULES``  (or define ``MIGRATION_MODULES`` if it does not exists); when django CMS 3.1 will be released, migrations for Django 1.7 will be moved to the standard location and the south-style ones to ``south_migrations``.* Run ``manage.py migrate djangocms_table``.Version 1.0.x is compatible with `django CMS` 2.3 and 2.4Version 1.1.x is compatible with `django CMS` 3.0 onlyDo not install version 1.1.x if you are are running `django CMS` 2.3 or 2.4* In your projects `virtualenv`_, run ``pip install djangocms-table``.* Add ``'djangocms_table'`` to your ``INSTALLED_APPS`` setting.* Run ``manage.py migrate cmsplugin_table``.Kudos-----This plugin contains the handsontable.com jquery library.Thanks to notch-interactive.com as well for some code examples.Translations------------If you want to help translate the plugin please do it on transifex:https://www.transifex.com/projects/p/django-cms/resource/djangocms-table/
Package: django-cms-taggit
Integration of thedjango-taggitapplication and also some additional meta
data withDjango CMS.django-taggita better and simpler approach to tagging with Django and with
this you can comfortable use it withDjango CMS.Requirementsdjangodjango-cmsdjango-taggitInstallationUsing PyPI you can simply type into a terminal:pip install django-cms-taggitoreasy_install django-cms-taggitSetupIn yoursettings.pyfile addcms_taggitto the list ofINSTALLED_APPS. Don’t forget to syncdb your database or migrate if you’re
usingsouth.Because some HTML meta tags (keywords, description) can be implemented with this
(seetemplatesfolder) it is recommended to turn off theDjango CMSsettingCMS_SEO_FIELDS.AuthorCopyright 2011 GW <gw.2011@tnode.comorhttp://gw.tnode.com/>Released under GPLv3 or newer.
Package: djangocms-teaser
A teaser plugin for django CMS.InstallationThis plugin requiresdjango CMS3.0 or higher to be properly installed.In your projectsvirtualenv, runpip installdjangocms-teaser.Add'djangocms_teaser'to yourINSTALLED_APPSsetting.If using Django 1.6 and South < 1.0.2 add'djangocms_teaser': 'djangocms_teaser.migrations_django',toSOUTH_MIGRATION_MODULES(or defineSOUTH_MIGRATION_MODULESif it
does not exist).Runmanage.py migrate djangocms_teaser.TranslationsIf you want to help translate the plugin please do it on transifex:https://www.transifex.com/projects/p/django-cms/resource/djangocms-teaser/
Package: django-cmstemplates
Django-cmstemplates is efficient templates-in-db implementation.Application is aimed to support python 3.4+ and django 1.9+.FeaturesTemplate blocks can be edited in your adminDjango’s cache machinery is actively usedTemplate group autocreation (if group is not exist)Codemirror widget supportAbility to view template only for superuser, useful when editing
in production.InstallationAddcmstemplatestoINSTALLED_APPSRun./manage.py migrate cmstemplatesGo to admin and create new group template with nametest-groupYou can skip this step for now, if you want template to be
auto-created.Add this group to your template with following tag:{% load cmstemplates_tags %}

{% cms_group "test-group" %}If you skipped step three, then template grouptest-groupwill be created automatically.Create some templates for this group in admin.Refresh target site page and see your templates content.Using codemirror widgetAdd to your settings:CMSTEMPLATES_USE_CODEMIRROR = TrueInstall codemirror widget:source env/bin/activatepip install django-codemirror-widgetcd project_name/static/vendorwgethttp://codemirror.net/codemirror.zipunzip codemirror.zipmv codemirror-4.2 codemirrorAdd to settings:CODEMIRROR_PATH = 'vendor/codemirror'
CODEMIRROR_THEME = 'default'
CODEMIRROR_CONFIG = {'lineNumbers': True}Final settings should look like this:# cmstemplates
CMSTEMPLATES_USE_CODEMIRROR = True

# codemirror
CODEMIRROR_PATH = 'vendor/codemirror'
CODEMIRROR_THEME = 'default'
CODEMIRROR_CONFIG = {'lineNumbers': True}
Package: djangocms-testing
DjangoCMS TestingA set of utils to simplify testing on Django CMS plugins and pagesUsageTesting all pluginsimport os

from .base import BaseTestCase

from filer.models import Image
from djangocms_testing.integrity import CMSPluginIntegrity


class DSMPluginIntegrityTestCase(BaseTestCase, CMSPluginIntegrity):

    plugin_exclude_list = [
        'SomePluginsToExclude',
        'AnotherPluginToExclude',
    ]

    def setUp(self):
        self.homepage = self.create_page('Homepage')

        # Create any data that may be necessary for the plugins

        # Example: Creating an image
        photo_path = os.path.join(os.path.dirname(__file__), 'files', 'sample_image.jpg')
        self.test_image = Image.objects.create(file=photo_path)

        # Update the plugin list
        self.plugin_list = [
            ('CategoryPlugin', {'title': 'Top Category'}),
            ('BannerPlugin', {'icon': self.test_image, 'link': self.homepage}),
            ('LinkToPagePlugin', {'page': self.homepage}),
        ]Loading PagesThere's a management command that allows you to create pages from a
YAML description.The page description looks like this:---
# Required page data
title: Regression Test Page
slug: regression-test-page
template: generic_page      # (generic_page is provided. You can use other templates by overriding _get_template)

# Optional page data        # Default value
publish: no                 # no    (yes | no)
language: en                # en    (en | es)
apphook: null               # null  (string)
apphook_namespace: null     # null  (string)
soft_root: no               # no    (yes | no)

# Placeholder variables
#
# Provided:
# $loremispum   1 paragraph of lorem ipsum text.
#
# You can add other variables by overriding _generate_sample_data
# $image        JPEG image
# $svg          SVG Tiger iimage

# Placeholders vary per template but its no problem to define them all
# in advance, and later just switch the template type:
#
# generic_page > content

placeholders:
  content:

    - CategoryPlugin:
        title: Category 1
        subplugins:

          - QuestionPlugin:
              question: >
                This is a question
              author: Author, 21
              subplugins:

                - AnswerPlugin:
                    body: >
                      This is the text's bodyCreate the page:manage.py page simple_test.yaml