Saravanan666/pypi-org huggingface dataset:
Package: djangocms-background-media
djangocms-background-mediaThis is a simpledjango-cmsplugin that provides responsive, full screen background media with text.A HTML div container is added to the page that can either have a background image or video. Video backgrounds are enabled by making use of theVidejQuery plugin. Child plugins are enabled, so text and/or hyperlinks etc can be placed on top of the background media, see usage below for more details.InstallationTo install:pip install djangocms-background-mediaThen add djangocms-background-media to your installed apps:INSTALLED_APPS = [
    ...
    'djangocms_background_media',
    ...
]If you’re not already usingdjango-filerandeasy-thumbnailsthen these too will need to be added to your installed apps:INSTALLED_APPS = [
    ...
    'easy_thumbnails',
    'filer',
    ...
]And run the migrations:./manage.py migrateThe package assume that jQuery has been added to the site already. So if you’re not using, please add to you templates/base.html:<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>UsageThe background media plugin is added to a page and configured accordingly. If a background image is all that is required, then an image is uploaded, the container height can be updated, and optional overlay added and that’s all. If a video background is required then a video is uploaded and a video poster should be provided, as this is what will be displayed for mobile browsers. You’re also able to pass a JSON config object if you wish. More details of the video plugin can be viewed onVide.I have provided the ability to link an optional style sheet to the page, so that the plugin will work “out of the box”, if you don’t link the style sheet you will need to provide your own styling.To add text, links or another plugin to the background media plugin, simply add the child plugins you desire.
Package: djangocms-blog-agenda
Add an Agenda to your blog that displays upcoming events!Easy!CheapFree! Not seen on TV!InstallInstall the packagepython3-mpipinstalldjangocms-blog-agendaAdd it in yourINSTALLED_APPS:"djangocms_blog_agenda",Run the migration:python3manage.pymigratedjangocms_blog_agendaUpdate thedjangocms-blogurls by the ones in this module, by using this lovelysetting:BLOG_URLCONF="djangocms_blog_agenda.patched_urls"Create a new blog configuration.Instance namespace:put what you want.Application title:put what you want.Object name:put what you want.[...]Click onLayout (Show):[...]Template prefix:djangocms_blog_agenda.That'sveryimportant since this application will check this value multiple times (to update the queryset, to check the templates, to add the post extension "event date" only to the Agenda app...).Save this config.Explanations/Views/MiscA newEvent dateDateTime field has been added to blog posts that have the template prefix set todjangocms_blog_agenda.A new post list view was created for the Agenda view, it includes all the posts where theevent_dateis set to a date in the future.Another view is available at_("/past/"), that will display each post where theevent_dateis in the past.The templates arenotindjangocms_blog/templatesanymore, but indjangocms_blog_agenda/templates. Something's not appearing on your templates? Try to edit the file indjangocms_blog_agenda/templates/!We removed the mention of comments & liveblog in the admin form, because we're not using this.We use some very special bits of code that are using some internal features of djangocms-blog (seemisc.py, andapps.py). Try the module before pushing an update.ConfigMultisiteThis modules handles multisite just fine; just addBLOG_MULTISITE = Truein your settings, and our module will inject theget_sitefunction directly inside the class returned byget_user_model()!You will then need to create a new "Global Page Permission" entry with your user/group, and to select the site where the user/group will have the right to post new articles/agenda posts.If you're curious about this function,here it is.
Package: djangocms-blog-highlight-posts
A djangocms-blog extension allowing to mark some posts as highlight and sort queryset to display them first on the posts listInstallInstall the packagepython3-mpipinstalldjangocms-blog-highlight-postsAdd it in yourINSTALLED_APPS:"djangocms_blog_highlight_posts",Override blog url conf (in project settings):BLOG_URLCONF="djangocms_blog_highlight_posts.urls"Run the migration:python3manage.pymigratedjangocms_blog_highlight_posts
Package: djangocms-blogit
BlogitA simple blog application fordjangoCMS.RequirementsDjango1.10, 1.9django-cmsfor placeholders.django-filerfor file management.django-mpttfor tree management.django-parlerto translate everything.InstallationInstall usingpip:pipinstalldjangocms-blogitYou should followdjango-cms&django-filerinstallation guide first, and then add the following to your settings:INSTALLED_APPS=[...'mptt','parler','blogit',]UrlsThere are two ways to configure the urls. First would be to add to yoururls.py:urlpatterns=[url(r'^blog/',include('blogit.urls')),...]The second option is to usedjango-cmsapphooks.Blogitcomes with a couple of those for different application parts.BlogitApphookis the main one, and one that should always be attached to a page (if the urls are not already added). Then there are other optional apphooks forcategory,tags&feeds. If you want to keep it simple, and not have to set every application part individually. You can add to your settings:BLOGIT_SINGLE_APPHOOK=TrueThis will load all the neccesary urls under theBlogitApphook.DocumentationYou can read full documentation onReadTheDocs.
Package: djangocms-blogitty
Yet another news/blog app for django-cmsFeaturesTODOQuickstartInstalldjangocms-blogitty:pip install djangocms-blogittyAddblogittytoINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'blogitty',
    ...
)Sync database (requires south>=1.0.1 if you are using Django 1.6.x)::python manage.py migrateDocumentationThe full documentation is athttps://djangocms-blogitty.readthedocs.org.
Package: djangocms-bootstrap3
djangocms-bootstrap3Some templates and templatetags to be used with django-CMS and Bootstrap3.Django-CMS is frontend agnostic, which is a good thing. However, in combination with Bootstrap3
the menu structure does not quite fit. This is because Bootstrap3 only allows one nested menu level.Thereforedjangocms-bootstrap3adds a few modified templatetags, which render the existing
page tree into a menu structure suitable for the navbar in Bootstrap3.CHANGELOG0.4.2adopted navbar to work withangular-ui-bootstrapversion 2.5 and later.0.4.1Fix versions ininstall_requiresofsetup.py.0.4Add support for django-CMS version 3.5Replacedropdown,dropdown-togglebyuib-dropdown,uib-dropdown-toggleto be compatible
withangular-ui-bootstrapversion 0.14 and later.In hamburger menu, replace<button>- by<a>-tag, becauseng-clickdidn't fire properly.Make use ofuib-collapsefor mobile menus. This adds an animation.0.3.2In Navbar, renderget_menu_titleas safe string in order to allow HTML tags in
Mune Title.0.3.1Fix: Useuib-dropdownrather thandropdownto be compatible withangular-ui-bootstrapversion 0.14 and later.0.3.0The templatetagsmain_menu,main_menu_below_idandmain_menu_embody_idnow accept
two optional values:offset(default 0) andlimit(default 100). With these it is
possible, to render only a subset of the menu list.0.2.1Add setup.py to MANIFEST.in0.2.0Adopted to Angular-UI-bootstrap version 0.14 and later.Fixed division issue in paginator for Python3.0.1.0Added templatetagmain_menu_embody_id.Fixed various Django templates to render the menu.0.0.2 Initial release.
Package: djangocms-bootstrap-columns
============================Django CMS Bootstrap Columns============================Django CMS Bootstrap Columns is a plugin for Django CMS [http://djangocms.org]and aims to provide the Twitter Bootstrap [http://getbootstrap] grid system forDjango CMS.Currently this package provides three plugins:* Bootstrap Container* Bootstrap Row* Bootstrap Column===================Bootstrap Container===================This plugin generates a basic div to act as the bootstrap container. Thecontainer provides the following options:* Title - Just a name for the plugin* Classes - allows additional classes to be added* Element ID - allows users to add id attributes* Element Style - allows users to add the style attribute and inline styles* Is Fluid - a boolean which swaps between container and container-fluidThis plugin can be put inside any other plugin (allows any parent), but canonly have Bootstrap Row Plugins placed inside of it (as child plugins).=============Bootstrap Row=============This plugin generates a div that acts as a bootstrap row. The row provides thefollowing options:* Title - Just a name for the plugin* Classes - allows additional classes to be added* Element ID - allows users to add id attributes* Element Style - allows users to add the style attribute and inline stylesThis plugin can be put inside any other plugin (allows any parent), but canonly have Bootstrap Column Plugins placed inside of it (as child plugins).================Bootstrap Column================This pluging enerates a div that acts as bootstrap column (col-). The columnprovides the following options:* Title - Just a name for the plugin* Classes - allows additional classes to be added* Element ID - allows users to add id attributes* Element Style - allows users to add the style attribute and inline styles* Mobile/Small/Medium/Large Device Width - Uses a dropdown/choice field selecta value between 0 - 12. This value affects the width of the column. Example:if you set Mobile Device Width to 4/12, the column will generate withcol-xs-4.* Hide on Mobile/Small/Medium/Large adds the bootstrap class ```hidden_$1```* Mobile/Small/Medium/Large Offset - Sets bootstarp offset values* Mobile/Small/Medium/Large Pull - Sets bootstarp pull values* Mobile/Small/Medium/Large Push - Sets bootstarp push values
Package: djangocms-bulma-column
A Columns of bulma Plugin for django CMS.based on djangocms-columnInstallationThis plugin requiresdjango CMS3.4.5 or higher to be properly installed.In your projects virtualenv, runpip installdjangocms-bulma-column.Add'djangocms_bulma_column'to yourINSTALLED_APPSsetting.Runmanage.py migrate djangocms_bulma_column.
Package: djangocms_calameo
djangocms-calameoDjango CMS Calaméois a plugin forDjango CMSthat allows you to add Calaméo widgets on your site.Installationrunpip install djangocms-calameoadddjangocms_calameoto yourINSTALLED_APPSrunpython manage.py migrate djangocms_calameoKnown issuesAbug in Firefoxprevents the iframe to reload with new parameters.
You must force reload the page after saving the plugin.
Package: djangocms-call-to-action
djangocms-call-to-actionA djangocms plugin that allows you to create Call To Action (CTA) indicators, to display them as buttons in a Django CMS plugin, to track user click on these buttons on a GA conversion tunnel. Each CTA is linked with a fobi form which registers the user email in a given mailing list.This project is a WIP and might need some improvements.InstallationThis plugin requiresDjango-CMS,sendgrid,django-fobi.Install module using pipenv:pipenv install djangocms-call-to-actionOr pip:pip install djangocms-call-to-actionAdd it to your installed apps:"djangocms_call_to_action",Apply migrationspy manage.py migrate djangocms_call_to_actionInclude your sendgrid api key in your settingsDJANGOCMS_CTA_SENDGRID_API_KEY="YOUR_API_KEY"Or load it using an environment var:importosDJANGOCMS_CTA_SENDGRID_API_KEY=os.getenv("SENDGRID_API_KEY",None)Include your Google analytics GA code in your settingsDJANGOCMS_CTA_GA_UA="UA-*******-*"Or load it using an environment var:importosDJANGOCMS_CTA_GA_UA=os.getenv("GA_UA",None)Include the CTAFobiFormWidgetRedirectMiddleware before all other middlewares, and CTAPagePermissionMiddleware after django-cms CurrentPageMiddleware:MIDDLEWARE=("djangocms_call_to_action.middleware.CTAFobiFormWidgetRedirectMiddleware",..."cms.middleware.page.CurrentPageMiddleware",..."djangocms_call_to_action.middleware.CTAPagePermissionMiddleware",)Adddjangocms_call_to_action.urlsto your urls:urlpatterns=[...path("cta/",include("djangocms_call_to_action.urls")),...re_path("^",include("cms.urls")),]Optional settingsConfigure templates used to display the CMS pluginfromdjango.utils.translationimportugettext_lazyas_DJANGOCMS_CTA_TEMPLATES=(("default.html",_("Link")),("button_primary.html",_("Button primary")),("button_secondary.html",_("Button secondary")),)Activate select2 for cms page selectors (requires django-select2)DJANGOCMS_CTA_USE_SELECT2=TrueConfigure labels used for actions in GADJANGOCMS_CTA_DISPLAYED_USER_GA_LABEL="Affiché"DJANGOCMS_CTA_CLICKED_USER_GA_LABEL="Cliqué"DJANGOCMS_CTA_CONVERTED_USER_GA_LABEL="Converti"Change cache duration for deny pages idsDJANGOCMS_CTA_DENY_PAGES_IDS_CACHE_DURATION=24*60*60# Cache for 24hHow to useCreate a fobi form using fobi interface.In order to work properly with sendgrid registration, the form must contains the following fields:
- First name
- Last name
- Email
- An opt-in checkbox to consent the user email registration on sendgrid listAdd the sendgrid handler to register the email address of the user intoCreate a CMS page to display the fobi form intoInsert the fobi form into the new page, using the CMS plugin "Call to Action"On the django admin, create a Campaign linked with the CMS page created on step 4.
Choose where the user will be redirected on form validation:To an external linkTo an internal linkTo a fileYou can choose to deny the access to the page if the form was not validated by the user.On your content, insert some CTA plugins to redirect to the form using the "Click To Action" cms plugin
Package: djangocms-cameraslider
djangocms-camerasliderThis is a simpledjango-cms_ plugin that implements the jQuery Camera Slider/Slideshow library.Dependenciesdjango>=3.2django-cms>=3.9InstallationTo install::pip install djangocms-camerasliderThen add djangocms-cameraslider to your installed apps::INSTALLED_APPS = [
    ...
    'djangocms_cameraslider',
    ...
]If you're not already usingdjango-filer,easy-thumbnailsanddjangocms-text-ckeditor_ then these too will need to be added to your installed apps::INSTALLED_APPS = [
    ...
    'djangocms_text_ckeditor',
    'easy_thumbnails',
    'filer',
    ...
]And run the migrations::./manage.py migrateThe package assume that jQuery has been added to the site already. So if you're not using already, please add to you templates/base.html:.. code:: html<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>ConfigurationThe Camera Slider JS and CSS are by default loaded from the below CDN. If you wish to override this, this can be done in your settings.py file by adding the below with your updated URLs. This is optional... code:: pythonDJANGOCMS_CAMERASLIDER = {
    'JS_URL': 'https://cdnjs.cloudflare.com/ajax/libs/Camera/1.3.4/scripts/camera.min.js',
    'CSS_URL': 'https://cdnjs.cloudflare.com/ajax/libs/Camera/1.3.4/css/camera.min.css'
}UsageThe slider plugin is added to page, where the configuration for the slider is set. The settings allow you to add a carousel thumbnail slider if you wish, you are also provided the ability to pass the JSON config for both the carousel and the slider.There are manyCamera Slider examples_ on their site, or you can view the fullCamera Slider properties_. The configuration JSON object is optional, so you have no obligation to provide this. A simple example of the config with a carousel is provided below.Once the slider has been setup, slides are added by adding child slide plugins to the slider. Each slide has to have an image, (I've useddjango-filer_ for the images), and can optionally have an explicit height and/or width, a caption, url link or page link as well... _django-cms:https://github.com/divio/django-cms.. _Camera Slider:https://www.jqueryscript.net/slideshow/Camera-Slideshow-Plugin.html.. _Camera Slider examples:https://www.jqueryscript.net/demo/Camera-Slideshow-Plugin/demo/.. _Camera Slider properties:https://www.jqueryscript.net/slideshow/Camera-Slideshow-Plugin.html.. _django-filer:https://github.com/divio/django-filer.. _easy-thumbnails:https://github.com/SmileyChris/easy-thumbnails.. _djangocms-text-ckeditor:https://github.com/divio/djangocms-text-ckeditor
Package: djangocms-career
DjangoCMS Career is a plugin to easily showcase career and educational paths.
The recommended use for this plugin is on a Portfolio- or a personal CV-Website.
The plugin was initially created for - and first used by - my personalCV-Page.InstallationThis plugin requiresdjango CMS3.0.2+ or higher to be properly installed.In yourpip projectsvirtualenv, runpip installdjangocms-career.Adddjangocms_careerto yourINSTALLED_APPS(the order does not matter).Runmanage.py migrate djangocms_career.UsageDjangoCMS Career is a CMS-Plugin, which means, you can only use it in the frontend editing mode.
In an available placeholder, just choose aCareer Plugin Containerand use the ‘Plus’-Sign to add Positions to it.This dropdown will usually open if you click on a placeholder in structure-mode.After you’ve added aCareer Plugin Container, you can addPositions.CustomizationTo override the plugins template, adddjangocms_career/position_object.htmlto your template path.To customize the colors of the plugin, you have to override the CSS..position-duration::before,
.position-duration::after{
    background: YOURCOLOR;
}


.duration-circle {
    background: YOURCOLOR;
}Run testsYou can run tests viamanage.py test djangocms_careerContributingThis is a community project. We love to get any feedback in the form ofissuesandpull requests.
Package: djangocms-classic-admin-style
I’m a big fan ofdjango-cmsbut I’ve always thought that theirdjangocms-admin-stylewasn’t an improvement on the original Django admin styling. In the past I just wouldn’t usedjangocms-admin-style, but then there are a few styling issues that you can then run into. This app is to fix those styling bugs.InstallationTo install:pip install djangocms-classic-admin-styleThen add djangocms_classic_admin_style to your installed apps before Django’s admin:INSTALLED_APPS = [
    ...
    'djangocms_classic_admin_style',
    'django.contrib.admin',
    ...
]Then collect the static files and that’s it:python manage.py collectstatic
Package: django-cms-clippings
Clippings is a lightweight version of a Django-CMS Placeholder container (in
other words a minimalist Page). It contains a single Placeholder named “content”
and is designed to be used in external applications where you want display
snippets of content that are also editable from the Django admin.FeaturesClippings are displayed using the show_clipping template tag. The name of
the clipping is passed as an argument.Clippings display content from one or more plugins. Any plugin supported
by Django-CMS can be used in a Clipping.If a Clipping cannot be found for a given name then an empty string is
returned. This makes it easy to deal with optional content.Clippings are editable in the Django admin in the same way as Placeholders.
Content can be created for any language supported in the project.Clippings are ideal for small sections of content. That keeps the number
of Pages in a Django-CMS site as small as possible, avoiding any scalability
issues.Settings such as REPORT_MISSING_CLIPPING can be used to catch cases where
the content was set for one language but left empty for the others supported
by a site.The advantage compared to usingexternal placeholders,
is that there are no intermediate models mapping the slot in the template to
Placeholder objects. That means that the clippings can be used anywhere and
everywhere outside the CMS with no management overhead. However there is a
downside to this flexibility - Clippings are only editable from the admin. You
cannot edit them in-place on the page.ExampleClippings are displayed in Django templates using the show_clipping template
tag and take a single argument - the identifier (unique for a given site)
assigned to the Clipping when it was created:{% show_clipping "clipping" %}Using the ‘with’ tag makes it easy to display clippings using variables passed
in the template context:{% with date|date:"Y-m" as datestr %}
    {% with "news-"|add:datestr|add:"-review" as identifier %}
        {% show_clipping identifier %}
    {% endwith %}
{% endwith %}Here we generate the reverse_id string from a date e.g. “news-2013-09-review”.InternationalizationClippings uses a Django-CMS placeholder so content can be fully
internationalized in all the languages supported by the project site.RequirementsClippings source is based on the show_placeholder template tag from Django-CMS
Version 2.4.2 and currently has only been tested with that version.InstallationClippings is available on Pypy so installation is as easy as:pip install django-cms-clippingsYou can also get the latest source from Github:git@github.com:StuartMacKay/django-cms-clippings.gitThe add the app to INSTALLED_APPS in your settings file:INSTALLED_APPS = (
    ...
    'clippings',
    ...
)SettingsClippings uses the following settings:REPORT_MISSING_CLIPPING = True | FalseIf True and a clipping with the identifier cannot be found then an error is
reported.Error reporting varies depending on the value of settings.DEBUG. If it is True
then an exception is raised. If it is False an email is sent to the admins if
the SEND_BROKEN_LINK_EMAILS setting is also True.
Package: djangocms-code-prettify
DjangoCMS Code PrettifyAn extension for Django CMS that adds the Google Code Prettify js for text fields.InstallationInstall with pippip install djangocms-code-prettifyAdddjangocms_code_prettifyto INSTALLED_APPSRun migrationspython manage.py migrateUsageSee notes here:https://github.com/google/code-prettifyhttps://github.com/google/code-prettify/blob/master/docs/getting_started.mdAfter installation simply add the plugins to the page.NotesGoogle Code Prettify can only load one style per page.
This is due to simple structure and CSS that applies to generic Code objects.
Package: djangocms-column
A Multi Column Plugin for django CMS.InstallationThis plugin requiresdjango CMS3.8 or higher to be properly installed.In your projects virtualenv, runpip installdjangocms-column.Add'djangocms_column'to yourINSTALLED_APPSsetting.Runmanage.py migrate djangocms_column.UsageThere are 2 plugins:MultiColumnandColumnThe first isMultiColumnthat should be added to your placeholder conf.MultiColumnonly allows one plugin as a child: theColumnplugin.
TheColumnplugin has a parameter width. With this parameter you can control the width
of the column.You can add a new setting to your settings.py calledCOLUMN_WIDTH_CHOICESthe default is:COLUMN_WIDTH_CHOICES = (
    ('10%', _("10%")),
    ('25%', _("25%")),
    ('33.33%', _('33%')),
    ('50%', _("50%")),
    ('66.66%', _('66%')),
    ('75%', _("75%")),
    ('100%', _('100%')),
)but you can change that to fit your CSS grid framework or other purposes.TranslationsIf you want to help translate the plugin please do it on transifex:https://www.transifex.com/projects/p/django-cms/resource/djangocms-column/