Saravanan666/pypi-org huggingface dataset:
Package: django-commentator
Not for productionCommentaries system for DjangoWhat’s thatdjango-commentatoris a reusable commentaries application for DjangoDependenceDjango >= 1.7Getting startedInstalldjango-commentator:`pip installdjango-commentator`Add‘commentator’to INSTALLED_APPS.Addurl(r’^comments/’, include(‘commentator.urls’)),to urlpatterns.Add{% commentator_css %}to head block in you template.Add{% commentator_js %}to footer block in you template.Add{% load commentator_tags %}to you template.Use{% comment_wrapper obj %}for view comments.ContributingFork it!Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am ‘Add some feature’Push to the branch:git push origin my-new-featureSubmit a pull request =]
Package: django-commenting
=================================
A Django Nested Commenting AppCommenting is a Django app to add nested comment functionality to you django web application.Detailed documentation is in the "docs" directory.Quick startAdd "commenting" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...,
'commenting',
]Include the polls URLconf in your project urls.py like this::path('commenting/', include(('commenting.urls', 'commenting'), namespace='commenting')),Runpython manage.py migrateto create the polls models.Start the development serverpython manage.py runserverand
visit 'http://127.0.0.1:8000/admin/'to see whether comment model has been added successfully or not.In your object(say Post) detail page add
' {% load comment_form_tag %} ' below {% extend %} if there is.Now load the comment application in the template using
' {% render_comment_form post %} ''
Package: django-comment-migrate
An app that provides Django model comment migrationEnglish |简体中文FeatureAutomatic migration model help_text to comment [Support customization]Automatically migrate the verbose_name of the model to the table comment [Support customization]Provide a command to migrate the comment of the specified appExamplesdownload python package:pip install django-comment-migrateadd django_comment_migrate appproject/project/settings.pyINSTALLED_APPS=["django_comment_migrate",...]add modelproject/app/model.pyfromdjango.dbimportmodelsclassCommentModel(models.Model):no_comment=models.TextField()aaa=models.IntegerField(default=0,help_text="test default")help_text=models.CharField(max_length=40,help_text="this is help text")classMeta:app_label='tests'db_table='comment_model'verbose_name='It is Comment Table'add appproject/app/settings.pyDCM_COMMENT_APP=["app"]execute database migrate:python manage.py makemigrations
python manage.py migrateNow check the database table, comments have been generated.Custom configIn settings.py:DCM_COMMENT_KEY='verbose_name'
DCM_TABLE_COMMENT_KEY='verbose_name'
DCM_BACKEND={
        "new-engine": "engine.path"
}
DCM_COMMENT_APP=["app"]CommandProvides a comment migration command, which allows the database to
regenerate comments:python manage.py migratecomment  [app_label]The command needs to be executed after all migrations are executedRunning the testsInstall Tox:pip install toxRun:toxSupported DatabaseMySQLPostgreSQLMicrosoft SQL Server
Package: django-commento-sso
django-commento-sso is a Django app to interact with commento.io single sign on.
It receives commento’s redirect, verifies, and sends the user back to commento.Detailed documentation is in the “docs” directory.Quick startAdd “django-commento-sso” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'django-commento-sso',
]Add COMMENTO_SECRET_KEY in 64-character text to your settings.pyInclude the URLconf in your project urls.py like this:path("sso/", include('django_commento_sso.urls')),
Package: django-comments-easy
Add the following to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'django.contrib.humanize',
    'django_commentseasy',
    'bootstrap3',
]Include the django_commentseasy URLconf in your project urls.py like this:url(r'^comment/', include('django_commentseasy.urls')),Runpython manage.py migrateto create the models.Start the development server
Package: django-comments-ink
django-comments-inkA Django pluggable application that adds comments to your project.The current main branch is the result of the long lasting work-in-progress of the rel-3.0.0 branch of django-comments-xtd.It extendsdjango-contrib-commentswith the following features:Comments can be nested.Customizable maximum thread level.Optional notifications on follow-up comments via email.Mute links to allow cancellation of follow-up notifications.Comment confirmation via email when users are not authenticated.Authenticated users can send reactions to comments and to other objects.Comment reactions and object reactions are customizable.Comment voting, to list comments sorted by votes.Comments pagination.JavaScript plugin.Example sites and tests work under officially Djangosupported versions:Django 4.1, 4.0, 3.2Additional Dependencies:django-contrib-comments >=2.2,<2.3djangorestframework >=3.12,<3.14Check the sample sites:dci-project-quotes: A project driven totally by Django, no JavaScript (yes, such sites still exist).dci-project-stories: This one uses both Django and the JavaScript plugin, 100% frontend framework free.dci-with-bootstrap: Sample project to be done.
Package: django-comments-moderation
django-comments-moderationThis is addition to django-fluent-comments.This module registers all emails from comments and allows to set moderation rules for them (blacklist/whitelist).installationpipinstalldjango-comments-moderationORpipinstall-egit+https://github.com/PetrDlouhy/django-comments-moderation.git#egg=django-comments-moderationAddcomments_moderationto your INSTALLED_APPS:INSTALLED_APPS = (
    ...
    'comments_moderation',
    ...
)Register comments moderator - add following lines to admin.py:fromcomments_moderationimportfiltered_moderatorfiltered_moderator.register(CommentedObject)You can select moderation mode for new users from two modes -'approve'and'moderate'.
If you want to moderate all comments from new users, set:COMMENTS_MODERATION_MODE = 'moderate'Migrate your models:./manage.pymigratecomments_moderationNow you should see new applicationcomments_moderationwith modelEmail filtersin your admin interface.
Package: django-comments-rss
This document describes django-comments-rss and how to install.AboutRSS found in django.contrib.comments.feeds are coming without full comment text, user link and page name where comment is posted. For this reason this project was born.InstallingAdd to application to INSTALLED_APPS insettings.pyfile:INSTALLED_APPS = (
    ...
    'django_commenrs_rss',
    ...
    )Also, add to urls.py:url(r'^comments/rss/', include('django_comments_rss.urls')),I think you have line something like that for django.contrib.comments inurls.pyfile:url(r'^comments/', include('django.contrib.comments.urls')),
Package: django-comments-spamfighter
This Django application contributes a moderation class to Django’s comment app that provides:Check incoming comments against the Akismet spam database and either block
them directly or add them to the moderation queue.Check incoming comments against pre-defined keywords and either block them
directly or add these them to the moderation queue. These keywords can be
simple strings or powerful regular expressions.The documentation is online:http://docs.mahner.org/django-comments-spamfighter/Quick installationHere is a quick installation guide for users who are familiar with comment
moderation:from comments_spamfighter.moderation import SpamFighterModerator

class EntryModerator(SpamFighterModerator):

    # Regular options by django's contributed CommentModerator

    auto_moderate_field = 'created'
    email_notification = True


    # Spam fighter options

    # Check with Akismet for spam
    akismet_check = False

    # If Akismet marks this message as spam, delete it instantly (False) or
    # add it the comment the moderation queue (True). Default is True.
    akismet_check_moderate = True

    # Do a keyword check
    keyword_check = True

    # If a keyword is found, delete it instantly (False) or add the comment to
    # the moderation queue (True). Default is False.
    keyword_check_moderate = False

moderator.register(Entry, EntryModerator)
Package: django-comment-system
Installation & ConfigurationInstall using pippython-mpipinstalldjango-comment-systemor Clone the repository and copycommentfolder and paste in project folder.gitclonehttps://github.com/mahyar-amiri/django-comment-system.gitAddcomment.apps.CommentConfigto installed_apps in thesettings.pyfile afterdjango.contrib.auth.# setting.pyINSTALLED_APPS=['django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles',# MY APPS'comment.apps.CommentConfig',]# your account login urlLOGIN_URL='admin:login'# or reverse_lazy('admin:login')MEDIA_URL='/media/'MEDIA_ROOT=BASE_DIR/'media'Addpath('comment/',include('comment.urls')),to urlpatterns in
theurls.pyfile.# urls.pyfromdjango.urlsimportpath,includeurlpatterns=[path('comment/',include('comment.urls')),]urlpatterns+=static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)Connectcommentsto target model. Inmodels.pyadd the fieldcommentsas a GenericRelation field to the required model.NOTE:Please note that the field name must becommentsNOTcomment.# models.pyfromdjango.dbimportmodelsfromdjango.contrib.contenttypes.fieldsimportGenericRelationfromcomment.modelsimportCommentclassArticle(models.Model):title=models.CharField(max_length=20)content=models.TextField()# the field name should be commentscomments=GenericRelation(Comment)Do migrationspythonmanage.pymigrateUsageIn the template (e.g. post_detail.html) add the following template
tags where obj is the instance of post model.{% load comment_tags %}Add the following template tags where you want to render comments.{% render_comments request obj settings_slug='default-config' %}  {# Render all the comments belong to the passed object "obj" #}if your context_object_name is notobj(e.g article) replace obj
with context_object_name.{% render_comments request obj=article settings_slug='default-config' %}
Package: django-committees
Author:Colin PowellDate:2011-02-19by:One Cardinal Web Developmentlicense:GPLv3A simple pluggable django application for managing documents in a small not-for-profit organization.At a small organization, we have a governing board, composed of variable-length termed seats, term limits, alternate members, offices: a president, vice president, secretary and treasurer. The rest of the governing is done via committees, wether standing or ad-hoc. The whole government is governed by bylaws and policies. This app should organize all these elements in one place for reference.ModelsTERM_LIMIT=2BoardOffice (Pres, vp, sec, at-large, alternate, ex-officio…)titleslugdescriptionofficer?officer_rank (INT)BoardTermstart_dateend_dateoffice (Office)BoardMemberPerson (Profile)Term (BoardTerm)MeetingEventMinutesMembers (BoardMember)Guests (VarChar)AdjournBoardMeeting (Meeting)AgendaMinutesMeetingDraft?ContentAttachmentCommitteeMemberPersonCommitteetitledescriptionchairsmembers (CommitteeMember)reportsCommitteeTermstart_dateend_datecommitteeReportDateContentAuthor (Person)URLsJust an example hook up spot:view: index = government/ - index to show gov. board, committees, latest meetings/minutes
view: board_detail = government/board/ - detail of board make-up, past boards and minutes/meetings
view: board_meeting_detail = government/meetings/<year>/<month>/ - detail of a meeting with minutes, members, etc.
view: committee_list = government/committees/ - list of all committees and membership
view: committee_detail = government/committees/<slug> - detail of one committee
view: report_list = government/reports/<year>/<month>/<committee_slug>
view: meeting_list = government/meetings/ - list of all meetings in the system
Package: django-common
Django-common provides useful shortcuts for developing django projects.Overviewcontext_processorssettings_processor - put django.conf.settings into RequestContextdecoratorsrender_to - classic render_to functionalitypaged - paginate theresponse_qsvariable in response. Used with render_to.ajax - wrap view reponse into JSONfieldsAutoOneToOneField - OneToOne field which automatically creates related objectformsbuild_form - shortcut for creating GET/POST form with one line of codehttpHttpResponseJson - Response class which wraps data into JSON format. Used in common.decorators.ajaxmiddlewareLoginRequiredMiddleware - restrict guest access
Package: django_common_context
Django Common Context Processors provides useful shortcuts
for developing Django projects.To use it, put inTEMPLATE_CONTEXT_PROCESSORS:TEMPLATE_CONTEXT_PROCESSORS=(#...'common_context.context_processors.site','common_context.context_processors.settings',#...If you use Django 1.8+, set thecontext_processorsoption in
theOPTIONSof aDjangoTemplatesbackend instead (seehere).Then in any page if you need to print theSite Nameuse:{{ site.name }}Or if you need to get the value of a Django Settings parameter:{{ settings.ANY_SETTINGS_VALUE }}AboutThis sources are available inhttps://github.com/mrsarm/django-common-contextAuthor: Mariano Ruiz <mrsarm@gmail.com>License: LGPL-3 (C) 2014-2015
Package: django-common-models
Common models and utilitiesDocumentationThe full documentation is athttps://django-common-models.readthedocs.io.QuickstartInstall django-common-models:pip install django-common-modelsAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'common.apps.CommonConfig',...)Add django-common-models’s URL patterns:fromcommonimporturlsascommon_urlsurlpatterns=[...url(r'^',include(common_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-05-31)First release on PyPI.
Package: django-commonstuff
CommonStuff is a Django reusable app, what holds templatetags, management
commands, admin filters, middlewares, abstract models, etc. used in most of
my Django projects.Think of it as a custom django-annoying. This app is in public mainly because
it is a dependency of another reusable app.Detailed documentation is in the “docs” directory.Quick startpip install django_commonstuffAdd “commonstuff” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    'django.contrib.sites',  # optional, but usefull to commonstuff app
    # ...
    'commonstuff',
)Configure django_commonstuff in settings.py (see docs/SETTINGS.txt).Runpython manage.py migrateto create models.
Package: django-commontags
Common useful django template tags and filtersGetting StartedSimply install, add to your INSTALLED_APPS setting and use {% load common_filters common_tags %} in your templates to enable access to the tags and filtersInstallingYou can get Django Commontags by using pip or easy_install:$ pip install django-commontags
or
$ easy_install django-commontagsIf you want to install it from source, grab the git repository from github and run setup.py:$ git clone git://github.com/Jaidan/django-commontags.git
$ cd django-commontags
$ python setup.py installIncluded Tags and FiltersTagsdivideAllows division of two numbers within a template.  Accepts a numerator,
denominator, and optional format string.  Be aware that the format string
cannot be a string literal and must be a context variable that contains
the format stringdynamic_regroupExtends the built in regroup tag to allow regrouping by a attribute named
by a context variable’s value. Accepts an iterable, th vairable to be
resolved to an attribute name, and the variable to write the result into.FilterspercentageTakes a value converts it to a float and returns the result formatted
as a percentage.  Accepts an integer for number of decimal places.truncatecharsTakes a string value and truncates it to a given number of chars.
Appends “…” to the truncated value.  Accepts an integer for the number
of characters to truncate topartitionBreak a list intonpieces. The last list may be larger than the
rest if the list doesn’t break cleanly. That is:>>> l = range(10)

>>> partition(l, 2)
[[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]

>>> partition(l, 3)
[[0, 1, 2], [3, 4, 5], [6, 7, 8, 9]]

>>> partition(l, 4)
[[0, 1], [2, 3], [4, 5], [6, 7, 8, 9]]

>>> partition(l, 5)
[[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]lookupLooks up a value from a dictionary.  This allows dictionary look ups
based on a context variables value.  Accepts the name to lookup.unslugifyAttempts to roughly unslugify a string.  Replaces ‘-’ and ‘_’ with ‘ ‘
Package: django-common-tivix
OverviewDjango-common consists of the following things:A middleware that makes sure your web-app runs either on or without ‘www’ in the domain.ASessionManagerBasebase class, that helps in keeping your session related  code object-oriented and clean! See session.py for usage details.AnEmailBackendfor authenticating users based on their email, apart from username.Some custom db fields that you can use in your models including aUniqueHashFieldandRandomHashField.Bunch of helpful functions in helper.pyArender_form_fieldtemplate tag that makes rendering form fields easy and DRY.A couple of dry response classes:JsonResponseandXMLResponsein the django_common.http that can be used in views that give json/xml responses.InstallationInstall django_common (ideally in your virtualenv!) using pip or simply getting a copy of the code and putting it in a directory in your codebase.Adddjango_commonto your Django settingsINSTALLED_APPS:INSTALLED_APPS = [
    # ...
    "django_common",
]Add the following to your settings.py with appropriate values:IS_DEVIS_PRODDOMAIN_NAMEWWW_ROOTAddcommon_settingsto your Django settingsTEMPLATE_CONTEXT_PROCESSORS:TEMPLATE_CONTEXT_PROCESSORS = [
        # ...
        "common_settings",
]AddEmailBackendto the Django settingsAUTHENTICATION_BACKENDS:AUTHENTICATION_BACKENDS = (
        'django_common.auth_backends.EmailBackend',
        'django.contrib.auth.backends.ModelBackend'
)AddWWWRedirectMiddlewareif required to the list of middlewares:MIDDLEWARE_CLASSES = [
        # ...
        "WWWRedirectMiddleware",
]This open-source app is brought to you by Tivix, Inc. (http://tivix.com/)
Package: django-commontranslations
django-commontranslations solves the problem that you have repeating translations across apps and projects. It is
opinionated about how project specific templates are loaded. The standardmakemessagescommand will create a.pofile with all translation strings that it finds the project directory, regardless if it makes sense to
explicitly translate them in the context of your project again.
It might just be an app template that was overridden in the project, with all the translated strings already translated
in the app.django-commontranslations contains:a modifiedmakemessagescommand that will mark untranslated entries as obsolete if they have already been
translated elsewhere.a set of well structured translations of commonly used terms to use in other apps (just add django-commontranslations
as a dependency and adddjango_commontranslationstoINSTALLED_APPS) [IRONICALLY NOT TRANSLATED YET]intructions on how to use common translations in your own apps (not yet)django-commontranslations assumes that your project specific translations reside in a directory configured
in theLOCALE_PATHSsetting. It is assumed thatLANGUAGE_CODE(the default language) is alwaysenoren-us.
Package: django-commweb
django-commweb is a Django module for interfacing with theCommWebmerchant gateway, the Commonwealth Bank of Australia’s merchant payment facility.Source is available onGitHub, as is theChangelog.Supported functionsPurchase (one-step transaction)DependenciesPython 2.7 or 3.4+Django(tested with 1.5 through 1.8)requestsInstallationInstall using pip:$ pip install django-commwebAdd the ‘commweb’ app to the bottom of your INSTALLED_APPS setting:INSTALLED_APPS = (
    ...
    'commweb',
)Add the required settings (provided by the CommWeb Support Line) for thetestmerchant to your project’ssettings.py:COMMWEB_ACCESS_CODE = 'FOO'
COMMWEB_MERCHANT = 'TESTMERCHANT'Run the tests to ensure your merchant details are set up correctly by running a Django shell as follows:$ python manage.py shell
>>> import unittest
>>> from commweb.test.test_responses import TestResponses
>>> suite = unittest.TestLoader().loadTestsFromTestCase(TestResponses)
>>> unittest.TextTestRunner(verbosity=2).run(suite)
test_approved (commweb.test.test_responses.TestResponses) ... ok
test_card_expired (commweb.test.test_responses.TestResponses) ... ok
test_declined_2 (commweb.test.test_responses.TestResponses) ... ok
test_declined_E (commweb.test.test_responses.TestResponses) ... ok
test_failed (commweb.test.test_responses.TestResponses) ... ok
test_insufficient_credit (commweb.test.test_responses.TestResponses) ... ok
test_no_reply (commweb.test.test_responses.TestResponses) ... ok

----------------------------------------------------------------------
Ran 7 tests in 2.593s

OK
<unittest.runner.TextTestResult run=7 errors=0 failures=0>IntergrationTwo options are available for intergrating django-commweb into your Django app.CartridgeA payment handler forCartridgeis provided bycommweb.cartridge.cartridge_payment_handler. You only need to setSHOP_HANDLER_PAYMENTin your project’s settings file to activate this functionality:SHOP_HANDLER_PAYMENT = 'commweb.cartridge_hook.cartridge_payment_handler'Using the API directlySeecommweb.test.test_responses.pyfor an example of how to call the API directly. The API module is located atcommweb.purchase.
Package: django-companies
=====Companies=====Companies is a simple Django app to manage a basic company hierarchy like:Company A -> Branchs -> Divisions -> Employees with crud options.Quick start-----------1. Add "companies" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'companies',)2. Include the polls URLconf in your project urls.py like this::url(r'^companies/', include('companies.urls')),3. Run `python manage.py syncdb` to create the companies models.