-
1
what is : on delete cascade ,Times asked 1Official solution
SimpleCascade parent ke saath child pe automatic action (generally delete).
Company delete → uski drives bhi delete, warna orphan rows / FK error.
SQLAlchemy: db.relationship('Drive', cascade='all, delete-orphan', backref='company')
SQL: ForeignKey(..., ondelete='CASCADE')Cascade sirf delete nahi: save-update, merge, refresh-expire, expunge, delete-orphan.
Cascade Update: parent PK change to child FK update (rare, PK mat badlo).
Parent delete jab children active hon: constraint error, ya cascade se children gayab, ya pehle children handle karo — design choice examiner poochta hai.
CSS cascading alag topic hai (styles inherit/override).Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
2
in network tab of inspect after logging in, in the payload section : password was visible, question was how to hide that ?Times asked 2Official solution
SimpleNetwork tab mein password dikhna HTTPS pe encrypted transit hai, DevTools local dikhata hai. Kabhi query string mein password mat bhejo — POST body. Production HTTPS mandatory.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
3
how to implement template inheritance functionality (MAD1) in Vue? [question was in context of displaying Navbar on everypage]Times asked 2Official solution
SimpleBase template pe navbar/footer, child pages {% extends %} + {% block %} se content bharte hain. DRY.
Example
{# base.html #} {% block content %}{% endblock %} {# home.html #} {% extends 'base.html' %} {% block content %} <h1>Home</h1> {% endblock %}Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet