Create a model field within models.py file class Contact(models.Model): name = models.CharField(max_length=100) email = models.EmailField(max_length=100) subject = models.CharField(max_length=100) message = models.TextField() mobile = models.IntegerField(max_length=180)…
Create a model class Page(): id: int name: str Import to View from .models import Page def indexPageView(request): page = Page() page.name =”home” page1…
There are 3 main things we need to do: set STATIC_ROOT in settings.py run python manage.py collectstatic (or python3.5 or python3.6 as appropriate) Example:…
What is a Web Framework? A web framework is a code library which helps you to build a flexible, scalable, and maintainable, dynamic website,…