1) create model of your choice in models.py.
2). Python manage.py makemigrations
3) python manage py migrate.
4 create a python file called forms.py inside your app.
5) import your models there ( from .models import model_name
6) create class to extend forms module.
7) in views.py you either need to define class based views or function based views.
I hope that helps.
-- On Mon, 27 Apr 2020 at 20:59, DimGo<proskuryakov931@gmail.com> wrote:Why is this this strange error?--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a2089af-344a-479d-bf7c-8a943973159b%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/407015029.685337.1588012209457%40mail.yahoo.com.
No comments:
Post a Comment