I can’t understand why my code doesn’t work. Before it worked, but now, when I run the server and test, the code does not work. When the user is registering, I send him activation email, like this: acc_active_email.html and my url file but I have this error: highlights this line http://{{ domain }}{% url ‘activate’ uidb64=uid token=token %} Answer In
Tag: django-2.0
Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
I have two classes in my sqlite database, a parent table named Categorie and the child table called Article. I created first the child table class and addes entries. So first I had this: And after I have added parent table, and now my models.py looks like this: So when I run python manage.py makemigrations <my_app_name>, I get this error: