Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi i am working with Django and Python on the code part I have red or yellow squiggly lines under some code. when i run
Hi i am working with Django and Python on the code part I have red or yellow squiggly lines under some code. when i run python manage.py makemigrations and then python manage.py migrate on my terminal. when i try to open up the site 127.0.0.1:800 it refuses to connect.
mainapp - admin. settings.py models.py x admin.py Ofrom django.contrib import admin src/1 1 2 3 # Register your models here. Afrom .models import Product 4 5 admin.site.register(Product) I 9 /Users/cindy Lara/Desktop/Python-Projects/src/mainapp/products/adu call last): ma/Desktop/Python-Projects/src/mainanp/products/admin.ny", line 1, i b import admin O module named 'django s.py Remodels.py admin.py from django.db import models # Create your models here. class product.(models: Modeli type = models.CharField(max_length=60) name = models. CharField(max_length=60, default="", blank=True, null=False) description = models. TextField(max_length=300, default="", blank=True) price = models. DecimalField(default=0.00, max_digit=1000, decimal_places=2) image = models.CharField(max_length=255, default='', blank=True) thank you!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started