django-2.0
Label not some Django
I use a radio and a JavaScript script to do the action of disappearing the agency field of the Model report, the problem is t ... }else{
$('#id_agencia, [for="#id_agencia"]').parent().show()
}
});
});
</script>
Demo:
How to log out in Django?
I was able to create and log a user into the system, but the logout does not work and I do not understand the reason.
View : ... tem" href="{% url 'logout' %}">Logout</a>
</div>
Url :
path('home.html',views.logout_view,name='logout')
Load image in html from Path saved in bank with django
I am trying to make a newspaper using Django and MySQL Bank and now I need to list the images of the news:
In my database I h ... he image does not appear when I try to run, is there something wrong in the code? Or is the image path incorrectly described?
ValueError: Cannot assign "'1'": "User.campus "must be a "Campus" instance. Django Super User registration error
I am developing an application where the user needs to be on a campus. However, when creating the' superuser ' in the termina ... l=False)
def __str__(self):
return self.nome
class Meta:
verbose_name = 'Campus'
verbose_name_plural = 'Campi'