Django Char Field using Unum
UnumCharField is a simple Django app to use Unum through a CharField.
Run the command in the terminal::
pip install django-unumcharfield
-
Import in your models.py::
from unumcharfield.models import UnumCharField
-
Use it as CharField.
-
If you would like to check if UnumCharField is working fine, add UnumCharField demo application to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'unumcharfield.demo', ]
-
Include the UnumCharField URLconf in your project urls.py like this::
from django.urls import include ... path('unumcharfield/', include('unumcharfield.demo.urls')),
-
Run
python manage.py makemigrations demo
to create the unumcharfield models. -
Run
python manage.py migrate
to create the unumcharfield models. -
Start the development server and visit http://127.0.0.1:8000/admin/ to create a unumcharfield (you'll need the Admin app enabled).
-
Visit http://127.0.0.1:8000/unumcharfield/ to check.