Saravanan666/pypi-org huggingface dataset:
Package: django-simple-cms
django-simple-cmsA super simple CMS for Django that lets you create pages and blog posts. This app lets you create and manage navigation menus, simple pages like your site's About Us page, and create blog posts. You can edit the raw HTML or optionally useTinyMCE Litefor WYSIWIG editing.This app is only intended for simple uses by trusted users, and allows you to insert content directly into pages including script tags.Requirementsdjango>= 1.11django-mptt>= 0.9pillow>= 2.1django-tinymce4-lite>= 1.6 (optional, for WYSIWIG editing)Quick StartInstalldjango-simple-cmspip install django-simple-cmsAddcmstoINSTALLED_APPSin your project'ssettings.py.INSTALLED_APPS=(...'cms',...)Run migrations in your project to create the models for the CMS app../manage.py migrate cmsIf you want WYSIWIG editing, also follow theinstallation guidefordjango-tinymce4-lite.
Package: django-simple-contacts
=====django-simple-contacts=====django-simple-contacts is a Django app for making and managing simple set of contacts.WARNING!!!-----------This app tested only with django 1.6Quick start-----------1. You can install django-simple-contacts through pip::pip install django-simple-contactsor check out last version from github: https://github.com/renkse/django-simple-contacts.git2. Add "contacts", flatpages and sites to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'contacts',)3. Run `python manage.py syncdb` to create the contacts table.4. Start the development server and visit http://127.0.0.1:8000/admin/to create contacts (you'll need the Admin app enabled).Requirements------------django==1.6, django-devtools
Package: django-simple-cookie-consent
=====Django Simple Cookie Consent=====Django Simple Cookie Consent is a simple Django app to display a custom cookie message.Each visitor to the site will get a popup to say that the site uses cookies.Detailed documentation is in the "docs" directory.Quick start-----------1. Add "django_simple_cookie_consent.apps.DjangoSimpleCookieConsentConfig" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...#Django >= 1.7'django_simple_cookie_consent.apps.DjangoSimpleCookieConsentConfig',#Django > 1.7'django_simple_cookie_consent',]2. If using Django South place the following in your SOUTH_MIGRATION_MODULES like this::SOUTH_MIGRATION_MODULES = {'django_simple_cookie_consent': 'django_simple_cookie_consent.south_migrations.0001_initial.py',}3. Add "{% load django_simple_cookie_consent_tags %}" to your base template then place "{% display_cookie_consent %}" somewhere in the head tag like this::...other loads{% load django_simple_cookie_consent_tags %}<head>...other links/scripts{% display_cookie_consent %}</head>4. Run `python manage.py migrate` to create the CookieConsentSettings model.5. Start the development server and visit http://127.0.0.1:8000/admin/to create a settings instance (you'll need the Admin app enabled).6. Visit http://127.0.0.1:8000/ to see the cookie message.This package is using https://github.com/insites/cookieconsent but does not support all features at the current time (this may happen later on if the other features are needed).
Package: django-simple-coupons
django-simple-couponsA Django app that makes the use of coupons a simple task!django-simple-coupons is a simple Django app to create and use promotional coupons in your website.Downloadingdjango-simple-coupons is available on The Python Package Index (PyPI). You can simply usepipto install it:$pipinstalldjango-simple-couponsInstalling1 - Adddjango_simple_couponsinside INSTALLED_APPS in settings.py:INSTALLED_APPS=[...'django_simple_coupons',]2 - (Optional) If you want to use more than 12 chars (default) for your coupon code, addDSC_COUPON_CODE_LENGTHvariable in settings.py:DSC_COUPON_CODE_LENGTH=163 - Run the migrations:$pythonmanage.pymakemigrations
$pythonmanage.pymigrateAnd that's it! django-simple-coupons should appear in your admin asSimple Coupons.Changeloghttps://github.com/Wolfterro/django-simple-coupons/blob/master/CHANGELOG.txtDocumentationhttps://github.com/Wolfterro/django-simple-coupons/blob/master/docs/README.md
Package: django-simplecrop
django-simplecrop================A simple module to crop images in an easy way in Django Administration.Installation-----------------------------------Install ``django-simplecrop`` (or download from [PyPI](http://pypi.python.org/pypi/django-simplecrop/ "Download from PyPI")):pip install django-simplecropAdd ``simplecrop`` to ``INSTALLED_APPS`` in ``settings.py``:INSTALLED_APPS = (...'simplecrop',...)Include ``simpleCropAutodiscover()`` after ``admin.autodiscover()``:...from simplecrop.utils import simpleCropAutodiscoveradmin.autodiscover()simpleCropAutodiscover()Include ``simplecrop.urls`` in ``urls.py``:urlpatterns = patterns('',...url(r'^simplecrop/', include('simplecrop.urls')),)Usage------------------Include the ``__crops__`` parameter in your model and specify the field and image sizes:class MyModel(models.Model):__crops__ = [["image", ["110x110", "200x150"]]]title = models.CharField(u"Title", max_length=128)text = models.TextField("Text")image = models.ImageField("Image", upload_to="images")Testing-----------------Step 1 - Add image:![Step 1](http://feliperego.com/img/step1.png "Step 1")Step 2 - Crop images:![Step 2](http://feliperego.com/img/step2.png "Step 2")Template tag-----------------Use the template tag `{% thumbnail %}` in your templates:How to use:<img name="myimage" src="{% thumbnail ImageObj '100x100' %}" />\* *This template tag obtains the thumbnail image created when saving in admin. If it does not exist, a new thumbnail with the specified sizes will be created.*Authors------------------ [Felipe R. Rêgo](https://github.com/feliperrego "GitHub - Felipe R. Rêgo")- [Silvio Lucena Junior](https://github.com/silviolucenajunior "GitHub - Silvio Lucena")
Package: django-simple-csp
django-simple-cspA simple Middleware for adding CSP headers and nonces in DjangoUsageRequires Django >=1.10Add it to the INSTALLED_APPS settings variable:INSTALLED_APPS = [
    ...
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    ...
    'django_simple_csp'
    ...
]Add it to MIDDLEWARE (not MIDDLEWARE_CLASSES):MIDDLEWARE = [
    ...
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    ...
    'django-simple-csp.middleware.csp.CSPMiddleware',
    ...
]CSSTODO: remove hash from the name of tag?Example use of hashed inline style:{% load csp %}
{% csp_css_hash %}
    td.style-class {
        background-color: red;
    }
{% end_csp_css_hash %}usage inside of style=”…” attributes is not supported by chromium for now.JavascriptNoncesTODO: Change to hashes?Example:{% load csp %}
<script nonce={% csp_js_nonce %}>
    alert("bla")
</script>Config ValuesCSP_REPORT_URL = “”
The URl CSP errors should be reported to, set to “” if not used, or do not define it.CSP_REPORT_ONLY = True
Set the header to just report CSP errors do not enforce the CSP. Defaults to True.CSP_ADDITIONAL_SCRIPT_SRC = []
List of additional hosts javascript is allowed to be loaded fromCSP_ADDITIONAL_STYLE_SRC = []
List of additional hosts CSS is allowed to be loaded fromCSP_ADDITIONAL_IMG_SRC = []
List of additional hosts images is allowed to be loaded fromCSP_ADDITIONAL_DEFAULT_SRC = []
List of additional hosts all other resources are allowed to be loaded fromUpgradesFrom < 0.3‘django-simple-csp’ has to be changed into ‘django_simple_csp’ in th INSTALLED_APPS in Django settings.py
Package: django-simpledbstorage
Django Simple DB StorageA very simple app implementing the Django storages API, storing files in a database. A very simple view is provided for downloading files.Getting StartedInstall the django-simpledbstorage pip packageAdd the app to your project's INSTALLED_APPS, and urlsSet DEFAULT_FILE_STORAGE to 'simpledbstorage.storage.DatabaseStorage'Set your MEDIA_URL, if relevant to youExampleIn settings.py:DEFAULT_FILE_STORAGE='simpledbstorage.storage.DatabaseStorage'INSTALLED_APPS.append('simpledbstorage')MEDIA_URL='/{}{}/'.format(BASE_PATH,'files/')In urls.py or wherever your URLconf lives:urlpatterns=[url(r'^files/',include('simpledbstorage.urls'))]VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.
Package: django-simple-deploy
django-simple-deployInitial Django deployments made easy.DocumentationThe full documentation for this project is atRead the Docs.Some documentation has not been moved to Read the Docs yet. You may find what you're looking for in theold_docs/directory, but some of that information is out of date.QuickstartThis app gives you a management command that configures your project for an initial deployment. It targetsFly.io,Platform.sh, andHerokuat the moment, and can be expanded to target other platforms as well.If you have a relatively simple Django project that runs locally, you can deploy your project in a few short steps. The only change you'll need to make to your project is to add this app toINSTALLED_APPS.The above command will deploy your project to Heroku. To deploy to another platform such as Platform.sh, just change the--platformargument:pythonmanage.pysimple_deploy--platformplatform_shAll output is captured and written to a log file stored insimple_deploy_logs/, which is placed at the project's root directory.
Package: django-simple-email-auth
A Django library for authenticating using verified email addresses. Users may
authenticate using any email address they have verified ownership of.Project Homepagehttps://github.com/cdriehuys/django-simple-email-authDocumentationhttps://django-simple-email-auth.readthedocs.ioAlpha NoteThis project is below version 1.0.0, which means any changes to the minor
number may be breaking changes.FeaturesA brief overview of the features offered by this package:Verification of email ownershipAuthentication using any verified email addressPassword resetsInstallationFromPyPI:pip install django-simple-email-authRoad MapThe current focus is on getting the basic data models down. After that, we would
like to add the following features:A default REST API built with Django Rest FrameworkA set of default Django views for people who don’t have a separate frontend.(Maybe) A default GraphQL backendFeel free toopen a new issueif you have an additional feature
request that is not listed here.LicenseThis project is licensed under the MIT License.
Package: django-simple-events
Overviewdjango-simple-eventslets you bind your models to events. This events have the
following configuration options:beginningtimefrecuency: single time, daily, weekly, montly, yearlyinterval: times between frecuenciesrepetitionsendThe event occurrences are stored in the DB when an event gets saved. If you don’t
specify a maximum repetitions number or the end datetime, the event occurrences are
updated periodically with theupdate_occurrencescommand.InstalationAddeventsto yourINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'events',
    ...
    )SetEVENTS_MAX_FUTURE_OCCURRENCESto indicate the maximum of future occurrences to
recolect in the DB if an event is endlessEVENTS_MAX_FUTURE_OCCURRENCES = 50You can also setEVENTS_MAX_PAST_OCCURRENCESUsageIn the following examples we are going to relateStudyobjects to events.ModelsIf you want to access fromStudythe events, it’s recommendable to add a
generic relationfrom django.db import models
from django.contrib.contenttypes import generic
from events.models import Event

class Study(models.Model):
    ...
    events = generic.GenericRelation(Event)
    ...APIGet the events related to aStudy:study = Study.objects.get(pk=1)
study.events.all()Add an event to aStudy:from events.models import Event
from datetime import date, time

study = Study.objects.get(pk=1)
event = Event(date.today(), time.now())

event.related_object = study
event.save()

study.events.get(pk=event.pk)Play with the occurrences of an event:from events.models import Event

event = Event.objects.get(pk=1)

#get all the occurrences as an iter of datetimes
event.get_occurrences()

#get all of past occurrences as a list of datetimes
event.get_past_occurrences()

#get the last 20 past occurrences as a list of datetimes
event.get_past_occurrences(20)

#get the next 20 future occurrences as a list of datetimes
event.get_future_occurrences(20)

#update the Occurrence objects of an event
event.update_occurrences(event.get_occurrences)

#get the Occurrence objects of an event
event.occurrence_set.all()

#get all the Study objects that have occurrences in the future
from datetime import datetime
Study.objects.filter(events__occurrence__datetime__gt=datetime.now())AdminIf, when you are editing aStudyin admin, you want to also edit the
related events, you are easilly done:from django.contrib import admin

from events.admin import EventInline

class StudyAdmin(admin.ModelAdmin):
    ...
    inlines = EventInline,
    ...
admin.site.register(Study, StudyAdmin)FormsYou can also use the event form:from events.forms import EventForm
Package: django-simple-export
=====Admin Export=====Add export action in admin model list page.Quick start-----------1. Install this package::pip install django-simple-export2. Add "admin_export" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'admin_export',]3. Include the polls URLconf in your project urls.py like this::path('dae/', include('admin_export.urls')),4. Add export annotation to your model in admin.py, for example::from admin_export.deco import dae_export@admin.register(YourModel)@dae_export(YourModel)class YourAdmin(admin.ModelAdmin):# ...5. Start the development server and visit http://127.0.0.1:8000/admin/,then click to view the list of the model(you'll need the Admin app enabled).6. There will be an 'Export' button in the page before 'Add' button.click this button, current data list will be exported into a file.
Package: django-simplefeedback
InstallationInstall the pip package:pipinstalldjango-simplefeedbackInstalldjango-rest-frameworkif not already installedaddsimple_feedbackandrest_frameworkto INSTALLED_APPSinclude 'simple_feedback.urls' into urlpatternsfromdjango.urlsimportpath,includeurlpatterns=[path('admin/',admin.site.urls),path("api/",include("simple_feedback.urls")),]Migrate the db to crate simple-feedback modelspythonmanage.pymigrateSettingsSIMPLE_FEEDBACK_NOTIFICATIONS_ENABLEDdefault:FalseIt needs to be enabled explicitly in settings to send out emails.SIMPLE_FEEDBACK_SEND_TO- email string or a list of email stringsvalid examples:SIMPLE_FEEDBACK_SEND_TO =
SIMPLE_FEEDBACK_SEND_TO = 'sendto@address.org'
SIMPLE_FEEDBACK_SEND_TO = ['sendto1@address.org', 'sendto2@address.org']When SIMPLE_FEEDBACK_SEND_TO is empty or not defined, the email recepients will be all the superusers in the system.SIMPLE_FEEDBACK_SEND_MAIL_FUNC_OVERRIDE- function to send email with
needs to implement two kwargsmessageandrecipientsvalid example:settings.py:SIMPLE_FEEDBACK_SEND_MAIL_FUNC_OVERRIDE=send_email_functiondefsend_email_function(message,recipients):send_email()DevelopClone the repogitclonegit@github.com:pulilab/django-simple-feedback.gitTest appTest standalone app:$ export DATABASE_URL='your_db'  # you can skip this, defaults to 'localhost' (use postgres.app for simplicity)$ pip install -r requirements.txt$ python runtests.pyRun the app in develop modeCreate a new django project and install the package in develop modedjango-adminstartprojectsimple_feedback_democdsimple_feedback_demo
pipinstall-e~LOCAL_PATH_TO_DJANGO_SIMPLEFEEDBACKAddsimple_feedbackandrest_frameworktoINSTALLED_APPSinsettings.pyINSTALLED_APPS=['django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles','rest_framework','simple_feedback']Configure demo app urlsfromdjango.urlsimportpath,includeurlpatterns=[path('admin/',admin.site.urls),path("api/",include("simple_feedback.urls")),]SqlLite is not supportedChange the db config to use postgres insettings.py:DATABASES={'default':{'ENGINE':'django.db.backends.postgresql_psycopg2','NAME':'postgres','USER':'postgres','HOST':os.environ.get("DATABASE_URL",'localhost'),'PORT':5432,}}Migrate db, create super user and run your demo app:pythonmanage.pymigrate
pythonmanage.pycreatesuperuser
pythonmanage.pyrunserveropen the browser athttp://localhost:8000/admin
Package: django-simple-feedback
=====================================django-simple-feedback (django-simple-feedback)=====================================.. image:: https://secure.travis-ci.org/Narsil/django-simple-feedback.pngThis `Django <http://djangoproject.com>`_ app has for purpose to integrate easily user based feedback.It aims to be easily added into existing projects and pretty on any website.NEW in master~~~~~~~~~~~~~master version is now operational for Django-1.3 with `collectstatic <https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#collectstatic>`_This will break backward compatibility, branch django-1.2.5 is the last workingstate for Django-1.2.5Installation============Depedencies~~~~~~~~~~~django-simple-feedback requires jQuery, and it includes it in its static files.Installing django-simple-feedback~~~~~~~~~~~~~~~~~~~~~~~~~~Install into your python path using pip or github version::pip install django-simple-feedbackpip install -e git://github.com/Narsil/django-simple-feedbackAdd *'feedback'* to your INSTALLED_APPS in settings.py, also make sure *'django.core.context_processors.request'* is in your TEMPLATE_CONTEXT_PROCESSORS::INSTALLED_APPS = (...'feedback',)....TEMPLATE_CONTEXT_PROCESSORS = ('django.core.context_processors.request')Add css and javascript in your *'base.html'* template (jQuery is optional if you already include it in your project)::<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}feedback/css/feedback.css" /><script type="text/javascript" src="{{ STATIC_URL }}feedback/js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="{{ STATIC_URL }}feedback/js/feedback.js"></script>And then in templates where you want feedback to appear::{% load feedback_tags %}....{% feedback %}Add *'(r'^feedback', include('feedback.urls')'* to your urls::urlpatterns = patterns( '',....(r'^feedback', include('feedback.urls'),)Don't forget to run ::./manage.py syncdbto create the table that is going to receive the feedbacks.Receiving mail of feedbacks~~~~~~~~~~~~~~~~~~~~~~~~~~~If you wish to receive mail when someone posts some feedback then you need toconfigure these which are the defaults::FEEDBACK_SEND_MAIL = TrueFEEDBACK_FROM = 'feedback@example.com'FEEDBACK_REPLY_TO_USER = TrueFEEDBACK_TO = map(lambda x:x[1], settings.MANAGERS) (should be managers emails)FEEDBACK_SUBJECT = '[feedback] %(path)s'FEEDBACK_BODY = '%(feedback)s'In `FEEDBACK_SUBJECT` and `FEEDBACK_BODY` you are able to customize the text.each string is formatted with a dict containing information on the feedback.Dict is::{'id': 42,'feedback': 'This is a random comment made by random person','path': 'url the feedback was made on','user': User object,'request': request object,  # You can access IP and USER_AGENT via request....} # You can access any data sent by your form here so you can customize at will# By just sending additional field in the form.Other settings are::FEEDBACK_ASK_EMAIL = FalseAsks user to write his email when it is missing from his account.
Package: django-simple-form
Django-simple-form is a simple way to build your forms in HTML-level.InstallationYou can get Django simple form by using pip:$ pip install django-simple-formTo enable the package you need to add it toINSTALLED_APPS:INSTALLED_APPS = [
    ...
    'simple_form',
    ...
]UsageRender all fields form:{% load simple_form %}

...

{{ form|render_form }}Render field by field:{% load simple_form %}

...

{{ form.name|render_field }}
{{ form.email|render_field }}Custom the templateCreate a folder with namesimple_formin your template dir:templates/
    ...
    simple_form/
        field.html
        ...In HTML file you define the structure for each field the form:<div>
  <label for="{{ field.auto_id }}">
    {{ field.label }}
  </label>

  {{ field }}

  {% if field.errors %}
    {% for error in field.errors %}
      <span>{{ error }}</span>
    {% endfor %}
  {% endif %}
</div>

{% if field.help_text %}
  <p title="{{ field.help_text }}">
    {{ field.help_text }}
  </p>
{% endif %}If you need to customize the rendering for the type field, create an HTML file to the specific type of his widget:templates/
    ...
    simple_form/
        field.html
        checkboxinput.html
        ...
Package: django-simple-formwizard
django-simple-formwizarddjango-simple-formwizardis a simple session based form wizard for
django applications.Quickstart:Install package:$ pip install django-simple-formwizardIn views:Define steps configuration:MY_WIZARD_STEPS = [
    {'name': 'Step Mane',
     'url_name': 'url-to-step',
     'url_params': [list of url params],
     'anonymous_required': False},
    ...
]Create wizard objectwizard = Wizard(request, MY_WIZARD_STEPS)Forms initial data:my_form = MyForm(initial=wizard.data.get('my_data', {}))Setting data:wizard.set_data({'my_data': my_form})Example:my_form = MyForm(initial=wizard.data.get('my_data', {}))

if request.method == 'POST':
    my_form = MyForm(request.POST)

    if my_form.is_valid():
        wizard.set_data({'my_data': my_form})
        return redirect_to_next_step
Package: django-simple-forum
django-simple-forum:Introduction:django simple forumis a discussion board where people with similar interests can create and discuss various topics. You can also mention any particpant those are involved in the repsective topic in the comment. You can also receive email notifications when there is an update in the topic, when you follow the topic.Source Code is available inMicropyramid Repository.Modules used:Python  >= 2.6 (or Python 3.4)Django  = 1.9.6JQuery  >= 1.7Microurl >=3.6.1Boto == 2.40.0Sendgrid == 2.2.1django-ses-gatewayInstallation ProcedureInstall django-simple-forum using the following command:pip install django-simple-forum

        (or)

git clone git://github.com/micropyramid/django-simple-forum.git

cd django-simple-forum

python setup.py installAdd app name in settings.py:INSTALLED_APPS = [
   '..................',
   'compressor',
   'django_simple_forum',
   '..................'
]After installing/cloning, add the following details in settings file to send emails notifications:# AWS details

AWS_ACCESS_KEY_ID = "Your AWS Access Key"

AWS_SECRET_ACCESS_KEY = "Your AWS Secret Key"

            or

SG_USER = "Your Sendgrid Username"
SG_PWD = "Your Sendgrid Password"Use virtualenv to install requirements:pip install -r requirements.txtYou can view the complete documentation here.DocumentationWe are always looking to help you customize the whole or part of the code as you like.Visit our Django PageHereWe welcome your feedback and support, raisegithub ticketif you want to report a bug. Need new features?Contact us hereormailto:: “hello@micropyramid.com”