Skip to content

MehdioKhan/django-domainname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
        ...

About

Domain name model field and form field for Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages