memoriadecalculo / django-sympycharfield

Django Char Field using Sympy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-sympycharfield

Django Char Field using Sympy

Description

SympyCharField is a simple Django app to use Sympy through a CharField.

Install

Run the command in the terminal::

pip install django-sympycharfield

Quick start

  1. Import in your models.py::

    from sympycharfield.models import SympyCharField

  2. Use it as CharField.

Test

  1. 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', ]

  2. Include the SympyCharField URLconf in your project urls.py like this::

    from django.urls import include ... path('sympycharfield/', include('sympycharfield.demo.urls')),

  3. Run python manage.py makemigrations demo to create the sympycharfield models.

  4. Run python manage.py migrate to create the sympycharfield models.

  5. Start the development server and visit http://127.0.0.1:8000/admin/ to create a sympycharfield (you'll need the Admin app enabled).

  6. Visit http://127.0.0.1:8000/sympycharfield/ to check.

About

Django Char Field using Sympy

License:MIT License


Languages

Language:Python 93.0%Language:HTML 7.0%