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