Saravanan666/pypi-org huggingface dataset:
Package: django-constance-register
Constance register - constance for third-party packagesFeatures:Easily add settings to global constance config from third-party packages or project applicationsHow to use itInstall constance and constance register>>>pipinstalldjango-constancedjango-constance-registerAdd constance toINSTALLED_APPSINSTALLED_APPS=(...'constance','constance.backends.database','constance_register',...At the end of settings file addfromconstance_register.confimportconf# Path to your files with configs.# NOTE: Files are loaded before apps are readyCONSTANCE_REGISTRY=['library.apps.shelf','library.apps.staff']# Load settingsconf.load()# Add third-party settings to global settingsCONSTANCE_CONFIG={'THE_ANSWER':(42,'Answer to the Ultimate Question of Life, ''The Universe, and Everything'),**conf.settings()}# Same with fieldsetsCONSTANCE_CONFIG_FIELDSETS={**conf.fieldsets()}Add your settings toconfig.pyfile.
Config file example.# library.apps.staff.config.pyfromdatetimeimportdateapp_name='staff'CONFIG={'DATE_ESTABLISHED':(date(1972,11,30),"the shop's first opening"),'MY_SELECT_KEY':('yes','select yes or no','yes_no_null_select'),'MULTILINE':('Line one\nLine two','multiline string'),}FIELDSET={'General Options':{'fields':('DATE_ESTABLISHED','MY_SELECT_KEY'),'collapse':True},'Theme Options':('MULTILINE',),}
Package: django-constant
Django ConstantsThis is a Django app designed to store global constants with different data types. It provides a central location to manage and access configuration values that can be easily reused throughout your Django project.Getting StartedAdd "django_constants" to the INSTALLED_APPS list in your project's settings:INSTALLED_APPS = [
    # ...
    "django_constants",
    # ...
]Apply migrations:python manage.py migrateUsageAdding Global ConstantsLog in to the Django admin interface.
Navigate to the "Global Constants" section.
Add new constants with their names, values, and data types.Create/Update through modelsfrom django_constants.models import GlobalConstant, KeyTypeChoices

GlobalConstant.objects.create(
    key="CONSTANT_NAME", key_type=KeyTypeChoices.INT, value="123"
)

# NOTE: key is a unique field in database so only one key can exist in GlobalConstant model
GlobalConstant.objects.filter(key="CONSTANT_NAME").update(value="1234")

# Similary constants of other types can be created by specifying the key type and value as string
GlobalConstant.objects.create(
    key="sample_str", key_type=KeyTypeChoices.STR, value="abc"
)Sample create functions for all other available data typesGlobalConstant.objects.create(
    key="sample_int", key_type=KeyTypeChoices.INT, value="123"
)

GlobalConstant.objects.create(
    key="sample_float", key_type=KeyTypeChoices.FLOAT, value="123.345"
)

GlobalConstant.objects.create(
    key="sample_bool", key_type=KeyTypeChoices.BOOL, value="True"
)

GlobalConstant.objects.create(
    key="sample_dict",
    key_type=KeyTypeChoices.DICT,
    value="""{"abc":"def",1:"234","4":{"a":"b"}}""",
)

GlobalConstant.objects.create(
    key="sample_list",
    key_type=KeyTypeChoices.LIST,
    value="""["123","ABC",12,14.567,True,False]""",
)

GlobalConstant.objects.create(
    key="sample_tuple",
    key_type=KeyTypeChoices.TUPLE,
    value="""("123","ABC",12,14.567,True,False)""",
)

GlobalConstant.objects.create(
    key="sample_set",
    key_type=KeyTypeChoices.SET,
    value="""{"123","ABC",12,14.567,True,False}""",
)Accessing Global ConstantsThe get_constant_value method returns the constant value with the appropriate data type as specified during creation.# Get the value of a constant
constant_value = GlobalConstant.objects.get_constant_value("CONSTANT_NAME")
# Output -> constant_value = 1234 (type <class 'int'>)

constant_value = GlobalConstant.objects.get_constant_value("sample_dict")
# Output -> constant_value = {"abc":"def",1:"234","4":{"a":"b"}} (type <class 'dict'>)ContributingContributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.v1.0.0First version of this Django constants!Validated against Django >= 3.2 .Support for data types such as str, int, float, bool, dict, list, tuple, setNext MilestonesAdd support for bytes datatypeAdd encryption logic for senstive constants like secret keys, payment related info, etc.
Package: django-consul
django-consulA Django app which registering service to consul agent at start time.Installationpipinstalldjango-consulConfigurationsAddConsulServiceto INSTALLED_APPS setting.CONSUL_AGENT_ADDRESS Consul agent server's addressCONSUL_AGENT_PORT Consul agent server's portCONSUL_CHECK_URL API on service used by consul server to check it's statusCONSUL_CHECK_INTERVAL Status check intervalCONSUL_SERVICE_NAME Local service nameCONSUL_SERVICE_ADDRESS Local service addressSERVICE_PORT Local service port
Package: django-contact-ds
django-contact_dsdjango-contact_ds is a Django app to use for demiansoft.Quick startAdd "contact" to your INSTALLED_APPS setting like this::INSTALLED_APPS=[...'contact','appointment',# contact 컴포넌트 내부에 appointment가 있는 테마의 경우]코드를 넣고자 하는 위치에 다음을 추가 한다.{% load contact_tags %}
{% make_contact %}appointment 의 anchor 설정을 위해서 테마 앱의 views.py 안의 buildup 함수의 POST 설정에서 anchor를 추가한다.fromappointment.templatetags.appointment_tagsimportmake_post_context...ifrequest.method=='GET':returnrender(request,f"mentor_ds/base.html",context)elifrequest.method=="POST":context.update(make_post_context(request.POST,context['basic_info']['consult_email'],anchor="contact"))returnrender(request,f"mentor_ds/base.html",context)context examplecontext={"color":"default","theme":"mentor_ds","naver":"https://booking.naver.com/booking/13/bizes/441781","contact":{"desc":"3호선, 8호선 가락시장역 2번출구 잠실방향으로  도보로 2분 거리에 위치","google_map":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3165.53885481917!2d127.11330765109818!3d37.49520717971214!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x357ca593b8c5f7ef%3A0xc814cf4db2f054ea!2z6rCA65297IK87ISx7LmY6rO87J2Y7JuQ!5e0!3m2!1sko!2skr!4v1648771966798!5m2!1sko!2skr","address":"서울시 송파구 양재대로","phone":"02-431-2804","noti":{"title":"Parking","desc":["가락시장 가락몰 주차장 이용(2시간 주차지원)","네비게이션 : 서울웨딩타워 검색",]},"timetable":{"title":"진료시간","desc":{"월수금":"09:00 am – 06:00 pm","화(야간)":"09:00 am – 08:00 pm","토":"10:00 am – 02:00 pm","점심시간":"012:30 pm – 01:30 pm"},"note":["<span class='text-primary'>목요일</span>은 휴진입니다.","<span class='text-primary'>토요일</span>은 점심시간 없이 진료합니다.",]}}}how to embed google map :https://support.google.com/maps/answer/144361?hl=en&co=GENIE.Platform%3DDesktop
Package: django-contactform
Django app to manage simple contact form On Django >= 3 projects.Detailed documentation is in the “docs” directory.Quick startInstall the app using pippip install django-contactformAdd ‘contactform’ to yourINSTALLED_APPSsettings like thisINSTALLED_APPS=[...'contactform',]Configure the recipients of your form in your settingsCONTACTFORM_RECIPIENTS=['me@example.com']Include the contactform URLconf in your project urls.py likepath('contact/',include('contactform.urls')),Add a form to your page using thecontact_formtemplate tag{%loadcontact_form%}{%contact_form%}The MIT License (MIT)Copyright (c) 2020 Guillaume LuchetPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Package: django-contact-form-bootstrap
Twitter Bootstrap templates fordjango-contact-form.RequirementsPython 2.7 or >=3.3.Django >=1.6InstallationInstallation via:pip install django-contact-form-bootstrap==0.1a1The templates extendbase.html, so thetemplatesfolder of the
project should provide one, together with the Twitter Bootstrap and a JQuery
library.Then add'bootstrapform'and'contact_form_bootstrap'toINSTALLED_APPS,before'contact_form'.  The order is important
because following apps are overwritten:INSTALLED_APPS = (
    # ...
    'django.contrib.sites',  # For ``contact_form``.

    'bootstrapform',
    'contact_form_bootstrap',
    'contact_form',
    # ...
)Forcontact_formitself, remember to add the following settings:SITE_ID = 1Example ProjectThe example project can be run to have a quick look and to check out a
running setup. Download the source files and run:virtualenv -p /usr/bin/python3 ~/myenv
source ~/myenv/bin/activate
pip install -r requirements.txt
./manage.py migrate
./manage.py runserverCustomizationTo use custom templates, there are two ways to accomplish that:Overwrite a template attemplates/contact_formto replace them completely.Inherit a template fromtemplates/contact_formto overwrite only one or
more of its blocks. Defining a custom URL pointing at the custom template is
necessary then.
Package: django-contactform-bootstrap
Releases Notes0.6.2: finish english and french translation0.6.1: fix import reCapcha support0.6.0: add reCapcha support, fix links to your : FACEBOOK, LINKEDIN, TWITTER, GOOGLE+0.5.11: fix a bug with import main settings0.5.0: Add support and tests on Django 1.9 and update dependenciesRequirementsPython 2.7 and 3.3, 3.4Django 1.4.11+, 1.7+, 1.8+, 1.9+ and masterFeaturesFunctionality as a django contact form:- easy integration into an existing django project
- Bootstrap 3
- integrate geographical map
- log (not yet finish)
- tests and coverage
- links to your : FACEBOOK, LINKEDIN, TWITTER, GOOGLE+Todofinish  Portuguese, Russian and Spanish translation and add other translationsmanage display a link only if it existcorrect broken status links in this fileScreenshotDownloadsource code here:git clone https://github.com/alainivars/django-contact-form.gitpacket:https://pypi.python.org/pypi/django_contactform_bootstrapor:pip install django_contactform_bootstrapUseAdd in your settings file:INSTALLED_APPS = (
    ...
    'contact_form_bootstrap',
    ...
)

ADMINS = (
    ('your admin name', 'contact@yourdomain.com'),
)

COMPANY = {
    'NAME': "my company",
    'ADDRESS': "26 streets from here th there",
    'ZIP': "1234",
    'CITY': "Paris",
    'LAT': 48.81484460000001,
    'LNG': 2.0523723999999675,
    'PHONE': "+336 1234 5678",
    'EMAIL': 'contact@yourdomain.com',
    'FACEBOOK': "https://www.facebook.com/highfeature",
    'LINKEDIN': "http://www.linkedin.com/in/ivarsalain",
    'TWITTER': "https://twitter.com/HighFeature",
    'GOOGLEPLUS': "https://twitter.com/HighFeature",
}

CRISPY_TEMPLATE_PACK = 'bootstrap3'

USE_RECAPTCHA = False or True
and if you use it : (https://www.google.com/recaptcha)
RECAPTCHA_PUBLIC_KEY = 'your reCapcha public key'
RECAPTCHA_PRIVATE_KEY = 'your reCapcha private key'Don’t forget to set:EMAIL_HOST, EMAIL_PORT, EMAIL_HOST_USER and EMAIL_HOST_PASSWORDDocumentationNotePlease note that this Project is documented poorly. If you have any questions please contact us!
We’d love to update the documentation and answer your question!Getting HelpPlease report bugs or ask questions using theIssue TrackerCheck also for the latest updates of this project onGithub.CreditsBased on James Bennett’s django_contact_form:https://bitbucket.org/ubernostrum/django_contact_formBased on Aaron Madison django_contact_form:https://github.com/madisona/django-contact-formBy Alain Ivars django_contactform_bootstrap:https://github.com/alainivars/django-contact-formdjango
Package: django-contact-form-fc
Extensible contacts form implemented in class-based views. Forked fromdjango-contact-formTested with Django >=1.4.Uses django-templated-email to send mail by default.InstallAdd'contact_form'to yourINSTALLED_APPS:# settings.py
INSTALLED_APPS = (
    ...
    'contact_form',
    ...
)Add application urs to your urlconf. Example:# urls.py
urlpatterns += patterns('',
    (r'', include('contact_form.urls')),
)
Package: django-contact-form-gv
An Extensible Contact Form.
Based entirely on James Bennett’s django-contact-form:https://bitbucket.org/ubernostrum/django-contact-form/Installationpip installdjango-contact-form-gvVersion 0.6.0 and above requires Django 1.11+ and drops support for python 2
Version 0.5.0 and above requires Django 1.8+ because it uses the newly added “reply_to” field indjango.core.mail.message/EmailMessagePrevious versions Utilize Django’s class based views and require Django >= 1.3.
Package: django-contact-form-recaptcha
This application provides simple, extensible contact-form functionality
forDjangosites.Mail header ‘From: “Your Name” <your@email.com>’, so it’s easy to reply to the sender.Subject provided by the user.UsesreCAPTCHAto block spam robots.Quick startRequirements:Python (2.7, 3.4, 3.5, 3.6)Django (1.11, 2.0)To use thecontact_forms.forms.ReCaptchaContactFormform:Install django-contact-form-recaptcha:pipinstalldjango-contact-form-recaptchaObtain the reCAPTCHA API keys fromhttps://www.google.com/recaptcha.Supply the API keys for django-contact-form-recaptcha to use. You can
either place them in the Django settingsRECAPTCHA_PUBLIC_KEYandRECAPTCHA_PRIVATE_KEY, or in the environment variablesPYTHON_RECAPTCHA_PUBLIC_KEYandPYTHON_RECAPTCHA_PRIVATE_KEY.Add the applicationcaptchain the Django settings:INSTALLED_APPS=[...'captcha',]Then use the following URLconf:fromdjango.conf.urlsimportinclude,urlurlpatterns=[# ... other URL patterns for your site ...url(r'^contact/',include('contact_form.recaptcha_urls')),]If you’re using Django 2.0, you can do:fromdjango.urlsimportinclude,pathurlpatterns=[# ... other URL patterns for your site ...path('contact/',include('contact_form.recaptcha_urls')),]Create your templates in yourtemplatesdirectory:contact_form/contact_form.htmlcontact_form/contact_form_sent.htmlcontact_form/contact_form.txtcontact_form/contact_form_subject.txtOr you can use the templates provided by this package. Remember to add
the applicationcontact_formin the Django settings.Emails are sent to theMANAGERSdefined in your Django settings:MANAGERS=[('John','john@example.com'),]Full documentation for all functionality is included and is alsoavailable online.Originally forked fromdjango-contact-form.
Package: django-contactforms
Introductiondjango-contactforms is a very simple application package. It's help you create your contact forms. Please refer to the tests to see how it's done.PrerequisitesDjango 3+Python 3+InstallationDirectly install fromPyPiTo install this just type:pip install django-contactformsAfter installation is complete:add 'contactforms' to your INSTALLED_APPS directive andmigrate:./manage.py migrate contactformsor if you don't:./manage.py makemigrations contactformsAnd then migrate again:./manage.py migrate contactformsURL configurationThe easiest way to set up the views indjango-contactformsis to just use the providedURLconf, found atcontactforms.urls.
You can include it wherever you like in your site's URL configuration; for example, to have it live at the URL/contact/:from django.urls import path, include

    urlpatterns = [
        # ....
        path('contact/', include('contactforms.urls')),
    ]UsageA basic usage of django-contactforms could be (example):Added this line in home file or where you using contact forms.{% include "contact/contact.html" %}Create contact.html# templates/contact/contact.html<div class="row"><form action="{%url'contact'%}" method="post"><h3>Send a Message</h3>{%csrf_token%}<div class="form-group">{%ifmessages%}{%formessageinmessages%}<span{%ifmessage.tags%}class="{{message.tags}}"{%endif%}style="color: green">{{message}}</span>{%endfor%}{%endif%}</div><div class="form-group">{{forms.name}}</div><div class="form-group">{{forms.email}}</div><div class="form-group">{{forms.subject}}</div><div class="form-group">{{forms.message}}</div><button class="btn btn-primary" type="submit">Submit</button></form></div>A note on the authors of this projectHello, I am Sajib Hossain. I am the author of this project. If you face problem to install or setup this package please feel free to contact with me. I always try to help you. If you want to add someting in this package always welcome to pull request.Contact MeFacebookTwitterLinkedinWebsite
Package: django-contact-recaptcha-v3
Django-contact-form is a simple Django Contact Form with Google Recaptcha v3 - integration.Quick startAdd “form” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
        ...
        'contact-form',
]Include the polls URLconf in your project urls.py like this:path('', include('contact-form.urls')),Runpython manage.py migrateto create the form models.For finding Templates add this line into TEMPLATES in settings.py:TEMPLATES = [
     {
      ...
     'DIRS': [os.path.join(BASE_DIR, 'templates')],
      ...
     }
 ]To setup Email and Recaptcha just paste this code with your keys in settings.py:EMAIL_HOST = 'smtp.foo.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = 'foo@gfoo.com'
EMAIL_HOST_PASSWORD = 'swordfish'

RECAPTCHA_SITE_KEY = ""
RECAPTCHA_SECRET_KEY = ""Visithttp://127.0.0.1:8000/contact/to check the contact-form.
Package: django-contacts
An Address Book for keeping People on Companies.RequirementsPython: 2.7 and <=3.4Django: <=1.8django.contrib.authdjango.contrib.contenttypesdjango.contrib.commentsThanksMarco Louro:http://marcolouro.com/Enrico Batista da Luz:http://ricobl.wordpress.com/Kristijan Mitrovic:http://kris-itproblems.blogspot.com/
Package: django-contactus-email1
Django Contact Us Email Sending applicationSend feedback or contact with usAdditional InformationFor sending the email use the host 'mailtrap.io'. So, First singup form the official mailtrap.io websiteThen copy the configutation selecting the Django Framework like belowEMAIL_HOST = 'smtp.mailtrap.io'EMAIL_HOST_USER = 'XXXXXXXXXXX'EMAIL_HOST_PASSWORD = 'XXXXXXXXXXX'EMAIL_PORT = '2525'Quick startAdd "app1" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
     ...
     'app1',
 ]Include the app1 URLconf in your project urls.py like this::path('', include('app1.urls')),Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000/to create a poll (you'll need the Admin app enabled).
Package: django-contact-widget
A simple contact form widget for Django.InstallDjango Contact Widget is available directly fromPyPI:$ pip install django-contact-widget*).And don’t forget to addcontact_widgetto yourINSTALLED_APPS.RequirementDjango>=1.10.1Database Migration$ ./manage.py makemigrations contact_widget
$ ./manage.py migrate contact_widgetSetting ConfigurationEmail Configuration in file ofsettings.pyEMAIL_HOST = 'smtp.gmail.com'  # eg: 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'your_email@domain.com'
EMAIL_HOST_PASSWORD = 'your_password'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'URL configurationThe easiest way to set up the views indjango-contact-widgetis to just use the providedURLconf, found atcontact_widget.urls.
You can include it wherever you like in your site’s URL configuration; for example, to have it live at the URL/contact/:from django.conf.urls import include, url

urlpatterns = [
    # ....
    url(r'^contact/', include('contact_widget.urls')),
]UsageInclude the template fromcontact_widget/contact.htmlto your sidebar for example.{% include "contact_widget/contact.html" %}LicenseMIT
Package: django-content-licenses
django-content-licensesAuthor:George NotarasDevelopment Web Site:django-content-licenses projectSource Code Repository:django-content-licenses source codeDocumentation:django-content-licenses documentationDownloads:django-content-licenses releasesdjango-content-licenses is a Django app that adds support for adding licensing information to content.Licensed under theApache License version 2.0. More licensing information
exists in thelicensesection.FeaturesProvides theLicenseFieldmodel field.Templates for licensesDocumentationApart from thedjango-content-licenses Online Documentation, more information about the
installation, configuration and usage of this application may be available
at the project’swiki.DonationsThis software is released as free-software and provided to you at no cost. However,
a significant amount of time and effort has gone into developing this software
and writing this documentation. So, the production of this software has not
been free from cost. It is highly recommended that, if you use this softwarein production, you should consider making a donation.To make a donation, please visit the CodeTRAXdonations pagewhich contains
aPayPaldonatebutton.Thank you for considering making a donation to django-content-licenses.Bugs and feature requestsIn case you run into any problems while using this application or think that
a new feature should be implemented, it is highly recommended yousubmita new
report about it at the project’sissue tracker.Using theissue trackeris the recommended way to notify the authors about
bugs or make feature requests. Also, before submitting a new report, please
make sure you have read thenew issue guidelines.SupportCodeTRAX does not provide support for django-content-licenses.You can still get community support at theCommunity Support Forums:LicenseCopyright 2010 George Notaras <gnot [at] g-loaded.eu>Licensed under theApache License, Version 2.0(the “License”);
you may not use this file except in compliance with the License.Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.A copy of the License exists in the product distribution; theLICENSEfile.
For copyright and other important notes regarding this release please read
theNOTICEfile.
Package: django-content-safe-uploader
django-content-safe-uploaderFileField security validators: FileExtensionValidator, FileContentMatchesWithFileExtensionValidator.Installpip install django-content-safe-uploaderUsagepro/settings.pyINSTALLED_APPS = [
    ...
    "django_content_safe_uploader",
    ...
]app/models.pyfrom django.db import models
from django_content_safe_uploader.validators import FileExtensionValidator
from django_content_safe_uploader.validators import FileContentMatchesWithFileExtensionValidator
from django_content_safe_uploader.validators import IMAGE_EXTENSIONS

class Book(models.Model):
    title = models.CharField(max_length=128)
    preview = models.FileField(
        upload_to="book_previews",
        validators=[
            FileExtensionValidator(*IMAGE_EXTENSIONS),
            FileContentMatchesWithFileExtensionValidator(lax_extensions=[IMAGE_EXTENSIONS]),
        ])Releasev0.1.0First release.