Skip to main content

Domain name model field and form field for Django.

Project description

django-domainname

django-dominname is a simple django app including a model field and a form field to deal with Domain names.

Getting Started

1.Installation:

  git clone https://github.com/MehdioKhan/django-domainname
  cd djanago-domainname
  python setup.py install

or

  pip install django-domainname

2.Add django_dnf to installed list in settings file:

        INSTALLED_APPS = [
        ...
        'django_dnf',
        ]

3.Use DomainNameField in your models and forms:

models.py

        from django.db import models
        from django_dnf.fields import DomainNameField

        class MyModel(models.Model):
              doamin = DomainNameField(blank=True)
              ...

forms.py

        from django import forms
        from django_dnf.formfields import DomainNameField

        class MyForm(forms.Form):
        doamin = DomainNameField(blank=True)
        ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_domainname-0.1.1-py2.py3-none-any.whl (17.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_domainname-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: django_domainname-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.2

File hashes

Hashes for django_domainname-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5ca6ae1b6a60b3d16525954addb3422cc9a622fe69d14410e57b52bea2ad6ee3
MD5 ead22715c6017bea80a14717fae77842
BLAKE2b-256 7184d9a4a35e0689a98c511ef418eafa0442e84a31b864bbb9918e6fb558cf90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page