S
S
swpavlov2020-05-05 21:51:29
Python
swpavlov, 2020-05-05 21:51:29

Cannot import name 'Bp'?

I don’t understand what the problem is
, the terminal gives an error:
cannot import name 'Bp' from 'bboard.models' (C:\Users\pavlo\PycharmProjects\samplesite\lessonSite\bboard\models.py)

Below is the models.py code

from django.db import models


class Bb(models.Model):
    title = models.CharField(max_length=50)
    content = models.TextField(null=True, blank=True)
    price = models.FloatField(null=True, blank=True)
    published = models.DateTimeField(auto_now_add=True, db_index=True)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan Krapivin, 2020-05-05
@swpavlov

class Bb

cannot import name 'Bp'

B b != B p

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question