[Python] What does .models mean in Django? [duplicate]

Discussão em 'Python' iniciado por Stack, Fevereiro 4, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to import a class named 'Questions' from my models.py to admin.py from .models import Questions I don't understand why we have to use a period in .models, what does it mean and what exactly is it pin pointing to?

    I tried this combinations but it was no avail from models import Questions from Model.models import Questions

    Continue reading...

Compartilhe esta Página