Avatar ·

__init__() Takes 1 Positional Argument But 2 Were Given

📁 Advanced Python Topics, question, django, Beginner, work, project

I'm a beginner in Django, so I'm asking for help from more experienced people.

This is a frontend application like a project start page, and the class is a model with references to other applications. That is, a site header. I'm expecting a working result from this. And it most likely works, but throws the exception in the title of my question.

from django.db import models
class LinksInHead(models.Model):
    navigate = models.CharField(max_length=16)
    link_way = models.CharField(max_length=16)
    def