overalll good expeirnce with him
- what it flask
Proctor workspace
Based on 16 student review(s) and 13 tip(s) for this examiner (grouped from similar proctor IDs).
Generally calm and student-friendly
Often probes theory concepts. Expects you to know and possibly modify your project code
• for viva level 1 you should know your models well each key and relationship . should know about your project like how each functionality in your app works .rest it's very easy .just be confident. • Level 1 is easy, not much to worry about. In level 2 you HAVE TO know your project. If you don't know an answer just accept it, not an issue. Be chill and explain everything, you will be fine. (All of this only applies if you made the project yourself, otherwise you should panic) • Just be good with the theory part and be able to explain code - like what it actually does and why you're using a specific thing. Keep cool, i stuttered a bit, but he was pretty chill. Will also give you a review of how you performed. • The proctor was good just be honest and explain what do know , a little bit of it. • Know your code, you can be asked to explain any line of code in app.py, templates and models. Be confident, the proctor is chill and gives you time to think your answer. • Proctor was very polite. • the examiner asked practical questions that are related to the project, so try to have a example within the project. • You should know your code well. I actually misunderstood in homepage question due to language barrier. He is too kind. He switched to hindi for convenience. If you are not comfortable in english, dont hesitate in switching language. He suggested to go through all concepts as level 2 viva will be tough and will be challenging in coding based questions. At end he wished me luck and goodbye. • Just make sure you have all functionalities ready and know theory and your project well • The proctor was very polite and supportive.The overall interaction was smooth and comfortable. • Know your code • Go with full confidence, don't hesitate, he is really a chill guy done with viva in 15m • he is chill proctor, just go thorough the proctor question in the sheets, he asked me that only. genuinely a good guy
overalll good expeirnce with him
he is chill proctor, just go thorough the proctor question in the sheets, he asked me that only.
genuinely a good guy
Go with full confidence, don't hesitate, he is really a chill guy done with viva in 15m
Know your code
The proctor was very polite and supportive.The overall interaction was smooth and comfortable.
Just make sure you have all functionalities ready and know theory and your project well
You should know your code well. I actually misunderstood in homepage question due to language barrier. He is too kind. He switched to hindi for convenience. If you are not comfortable in english, dont hesitate in switching language. He suggested to go through all concepts as level 2 viva will be tough and will be challenging in coding based questions. At end he wished me luck and goodbye.
Shared viva questions from response sheet: 1.Show the id 2.Checksum 3.Create Doctor; Register new patient; Avilable slot
the examiner asked practical questions that are related to the project, so try to have a example within the project.
Shared viva questions from response sheet: For Viva1: First asked me to demonstrate the website (blacklist, appointments (if ones books an appointment it will be blocked for other patient), search function of admin); What is the use of delete-cascade and backref, why are you using them?; Show Jinja in your code
Proctor was very polite.
Shared viva questions from response sheet: Level 1 viva: After Demo-; Show how have you used jinja; What is template inheritance
Know your code, you can be asked to explain any line of code in app.py, templates and models. Be confident, the proctor is chill and gives you time to think your answer.
The proctor was good just be honest and explain what do know , a little bit of it.
Just be good with the theory part and be able to explain code - like what it actually does and why you're using a specific thing. Keep cool, i stuttered a bit, but he was pretty chill. Will also give you a review of how you performed.
Level 1 is easy, not much to worry about. In level 2 you HAVE TO know your project. If you don't know an answer just accept it, not an issue. Be chill and explain everything, you will be fine. (All of this only applies if you made the project yourself, otherwise you should panic)
for viva level 1 you should know your models well each key and relationship . should know about your project like how each functionality in your app works .rest it's very easy .just be confident.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSearch: form/query param → ilike filter → results template.
Example
q = request.args.get('q', '').strip()
lots = Lot.query.filter(Lot.name.ilike(f'%{q}%')).all()
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET data read/show karta hai (idempotent). POST create/submit karta hai (form).
Example
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
# validate + session
...
return render_template('login.html')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpleredirect dusre URL pe bhejta hai. flash one-time message session mein rakh ke next page pe dikhata hai.
Example
flash('Login successful', 'success')
return redirect(url_for('user.dashboard'))
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET data read/show karta hai (idempotent). POST create/submit karta hai (form).
Example
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
# validate + session
...
return render_template('login.html')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.
Example
Settings → Collaborators
Commits: regular messages, last-day dump nahi.Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSearch: form/query param → ilike filter → results template.
Example
q = request.args.get('q', '').strip()
lots = Lot.query.filter(Lot.name.ilike(f'%{q}%')).all()
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.
Suggested flow1) Portal ZIP download
2) Extract
3) venv + pip install -r requirements.txt
4) flask run / python app.py
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSearch: form/query param → ilike filter → results template.
Example
q = request.args.get('q', '').strip()
lots = Lot.query.filter(Lot.name.ilike(f'%{q}%')).all()
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.
Example
{% for lot in lots %}
<li>{{ lot.name }} — {{ lot.spots }}</li>
{% else %}
<p>No lots</p>
{% endfor %}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleBlacklist/block: user.status='blocked' check login/booking pe. Temporary flag vs hard delete permanent.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).
Example
# auth
if check_password_hash(user.password, pwd):
session['user_id'] = user.id
# authz
if user.role != 'admin':
abort(403)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplebackref reverse attribute auto banata hai. back_populates dono sides explicitly naam dete ho — clearer.
Example
# backref
spots = db.relationship('Spot', backref='lot')
# spot.lot available
# back_populates
spots = db.relationship('Spot', back_populates='lot')
# Spot.lot = db.relationship('Lot', back_populates='spots')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMVC: Model=data (SQLAlchemy), View=Jinja HTML, Controller=Flask routes/business logic.
Flask loosely MVC follow karta hai — routes controllers, templates views, models.py models.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET data read/show karta hai (idempotent). POST create/submit karta hai (form).
Example
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
# validate + session
...
return render_template('login.html')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleBlacklist/block: user.status='blocked' check login/booking pe. Temporary flag vs hard delete permanent.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.
Example
{% for lot in lots %}
<li>{{ lot.name }} — {{ lot.spots }}</li>
{% else %}
<p>No lots</p>
{% endfor %}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleORM = Object Relational Mapping. Tables → Python classes. Raw SQL kam likhte ho.
Example
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120), unique=True)
User.query.get(5) # SELECT ... WHERE id=5
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.
Example
{% for lot in lots %}
<li>{{ lot.name }} — {{ lot.spots }}</li>
{% else %}
<p>No lots</p>
{% endfor %}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.
Example
{% for lot in lots %}
<li>{{ lot.name }} — {{ lot.spots }}</li>
{% else %}
<p>No lots</p>
{% endfor %}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
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 %}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleTheory = concepts: ORM, MVC, auth vs authz, Jinja inheritance, sessions. 1-line def + project example.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.
Example
Settings → Collaborators
Commits: regular messages, last-day dump nahi.Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleTheory = concepts: ORM, MVC, auth vs authz, Jinja inheritance, sessions. 1-line def + project example.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.
Example
{% for lot in lots %}
<li>{{ lot.name }} — {{ lot.spots }}</li>
{% else %}
<p>No lots</p>
{% endfor %}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.
Example
Settings → Collaborators
Commits: regular messages, last-day dump nahi.Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJinja2 Flask ka template engine — HTML ke andar {{ }} variables, {% %} logic.
Example
{% for lot in lots %}
<li>{{ lot.name }} — {{ lot.spots }}</li>
{% else %}
<p>No lots</p>
{% endfor %}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRoute URL ko Python function se map karta hai. Decorator @app.route ya blueprint.route.
Example
@app.route('/lots', methods=['GET', 'POST'])
def lots():
if request.method == 'POST':
...
return render_template('lots.html', lots=Lot.query.all())
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.
Example
Settings → Collaborators
Commits: regular messages, last-day dump nahi.Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCascade parent delete pe children pe kya ho: delete-orphan related rows hata deta hai.
Example
db.relationship('Spot', cascade='all, delete-orphan')Viva tipParking lot delete → uske spots/bookings policy clear bolo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCounts API, bar/pie, booking ke baad number badle.
2 colors live task common.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Example
new Chart(ctx, {
type: 'bar',
data: { labels: ['Jan','Feb'], datasets: [{ data: [12, 19], backgroundColor: ['#36a','#f80'] }] }
})Project example: Admin dashboard.
Viva tipBooking karke chart update dikhao. Examiner 2 colors maange to backgroundColor array chhota kar do.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET data read/show karta hai (idempotent). POST create/submit karta hai (form).
Example
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
# validate + session
...
return render_template('login.html')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMAD1 mein usually session-based auth: login pe session['user_id'], har request pe verify.
Example
session['user_id'] = user.id
uid = session.get('user_id')
user = User.query.get(uid)Viva tipSECRET_KEY set karo warna session insecure. logout pe session.clear().
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleORM = Object Relational Mapping. Tables → Python classes. Raw SQL kam likhte ho.
Example
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120), unique=True)
User.query.get(5) # SELECT ... WHERE id=5
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleChallenges honestly: relationships/cascade, session bugs, overbooking race, CSS layout, deploy. Seekha kya — woh bold karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVertical badi machine. Horizontal aur boxes + load balancer. JWT stateless horizontal friendly.
10k users: Postgres, Redis, gunicorn, CDN, pagination, indexes.
Millions: replicas, queue partition, more workers.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Course app vertical enough. Design answer scale-out.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleUngli rakhe to 4-line formula — panic ki jagah structure.
1) File ka role: model / Flask route / Vue SFC / celery task / config
2) Input kahan: JSON, params, token, props, $route
3) Kya kaam: query, cache, validation, .delay()
4) Output: jsonify, this.items, email, redirect
Unknown keyword: import, decorator, if, commit — har ka reason. Bluff mat.
Suggested flow1) Kaunsi layer?
2) Input?
3) DB/cache/task?
4) Response/UI?
Project example: Booking POST: jwt, seats check, commit, 201, Vue list push.
Viva tipUnknown keyword: import, decorator, if, commit — har ka reason. Panic mat.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplelogin_required jaisa decorator protected routes pe: session nahi to login redirect.
Example
def login_required(fn):
@wraps(fn)
def wrapper(*a, **k):
if 'user_id' not in session:
return redirect(url_for('auth.login'))
return fn(*a, **k)
return wrapper
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePehle 1-line definition, phir apne MAD1 project mein file dikhao, phir chhota example.
Suggested flow1) Concept kya hai?
2) Mere code mein kahan?
3) Example / demo
4) Edge case
Example
# related file: models.py / routes / template
# formula: request → check/auth → DB → render/redirectViva tipExact line yaad nahi to honestly related part dikhao. Bluff mat karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive UI change: relevant CSS/HTML template kholo — color, margin, flex, bootstrap class. Save + hard refresh.
Example
/* button red */
.btn-primary { background: red; }
/* center navbar item */
.navbar { justify-content: center; }Viva tipDevTools se pehle try, phir file mein permanent change.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).
Example
# auth
if check_password_hash(user.password, pwd):
session['user_id'] = user.id
# authz
if user.role != 'admin':
abort(403)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLevel = viva difficulty band. Level 1 usually demo + basics; higher pe live coding + deeper theory.
Viva tipJo level assign hai uske hisaab se demo + theory ready rakho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMVC: Model=data (SQLAlchemy), View=Jinja HTML, Controller=Flask routes/business logic.
Flask loosely MVC follow karta hai — routes controllers, templates views, models.py models.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.
Example
Settings → Collaborators
Commits: regular messages, last-day dump nahi.Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMAD1 frontend usually Jinja templates + HTML/CSS/Bootstrap (+ thoda JS). MAD2 pe Vue ho to clearly bolo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleHTTP postcard (koi padh le). HTTPS envelope (TLS lock).
Same headers, encrypted channel. MITM se password/token bachao. Local viva HTTP OK.
HTTP/1.1 version keep-alive. TCP neeche, TLS security layer, SMTP mail alag.
Browser + API ke beech extra darwaze: CORS origin allow, HTTPS encrypt transit, CSRF cookie-auto-send attack, XSS HTML inject, SQL injection raw query.
MAD2 SPA: Vue :8080 Flask :5000 → Flask-CORS. JWT localStorage XSS se chori ho sakta — v-html user input pe avoid. Password Network tab localhost pe dikhega; prod HTTPS, response mein password echo nahi.
401 unauthenticated, 403 unauthorized, 400 validation. Hash one-way — SHA decrypt nahi hota. Secret key .env, GitHub pe nahi.
Project example: Dev localhost http. Production https:// + cert.
Viva tipProtocols: HTTP/HTTPS app, TCP transport, TLS security, SMTP mail. HTTP/1.1 version — persistent connections.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDebug: terminal traceback padho, print/logging, Flask debug, browser Network/Console, reproduce minimum steps.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplevenv activate → dependencies → DB create/migrate → flask run. Browser pe localhost dikhao.
Example
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
flask run
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).
Example
# auth
if check_password_hash(user.password, pwd):
session['user_id'] = user.id
# authz
if user.role != 'admin':
abort(403)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache = pehli baar hisaab karke copy rakh lo, doosri baar copy dikha do.
Baar-baar same expensive kaam (DB query, counting bookings) mat karo. Result Redis jaise store mein timeout ke saath rakh do.
Cache hit: key mil gayi, DB skip. Cache miss: DB se lao, SET karo, return karo.
Tradeoff: speed vs stale data. Admin naya venue add kare aur cache 50s ka ho to user purani list dekh sakta hai — isliye write pe invalidation zaroori hai.
Browser cache, Flask-Caching, Redis alag layers hain. MAD2 examiner Redis + @cache.cached code dekhta hai.
Example
@cache.cached(timeout=50, query_string=True)
@app.route('/api/shows')
def shows():
return jsonify([s.serialize() for s in Show.query.all()])Project example: Admin dashboard counts / venues list cache. Create/update/delete ke baad cache.delete('venues').
Viva tipprint('DB queried') function ke andar laga ke miss/hit demo karo — hit pe print nahi chalega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMAD1 frontend usually Jinja templates + HTML/CSS/Bootstrap (+ thoda JS). MAD2 pe Vue ho to clearly bolo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.
Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.
Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search + charts
6) CSV export / email job
7) Logout
Project example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.
Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCDN = Vue script tag se, jaise pen drive. CLI/Vite = poori factory (SFC, npm, bundle).
CDN: no build, chhote apps, exam PC pe Node nahi to bhi chal. Weak: no .vue compile, 3rd-party cache, scale/team.
CLI/Vite: Single File Components, env, code-split, production dist/. Scalable.
Examiner 'which + why' — jo use kiya wahi justify, doosra naam rato mat.
Example
<!-- CDN -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
# Vite
npm run dev
npm run buildProject example: CDN: index.html unpkg vue. CLI: package.json, npm run serve / vite.
Viva tipCDN scalable large teams ke liye weak (no SFC compile, caching 3rd party). Examiner 'which + why' poochta hai — jo use kiya wahi justify karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleProject overview: problem → roles → main entities → key flows (register, book, admin approve).
Viva tip1 minute elevator pitch ready rakho, phir demo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache = pehli baar hisaab karke copy rakh lo, doosri baar copy dikha do.
Baar-baar same expensive kaam (DB query, counting bookings) mat karo. Result Redis jaise store mein timeout ke saath rakh do.
Cache hit: key mil gayi, DB skip. Cache miss: DB se lao, SET karo, return karo.
Tradeoff: speed vs stale data. Admin naya venue add kare aur cache 50s ka ho to user purani list dekh sakta hai — isliye write pe invalidation zaroori hai.
Browser cache, Flask-Caching, Redis alag layers hain. MAD2 examiner Redis + @cache.cached code dekhta hai.
Example
@cache.cached(timeout=50, query_string=True)
@app.route('/api/shows')
def shows():
return jsonify([s.serialize() for s in Show.query.all()])Project example: Admin dashboard counts / venues list cache. Create/update/delete ke baad cache.delete('venues').
Viva tipprint('DB queried') function ke andar laga ke miss/hit demo karo — hit pe print nahi chalega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleVue = UI ka smart assistant. Data badlo, screen khud update. MAD1 Jinja har click pe naya HTML.
Progressive frontend framework. Components, reactivity, directives.
MAD2 SPA: ek index.html, Vue Router pages, Flask sirf JSON.
Fayde: easy, SFC, docs. Vs React: templates HTML-like, course sikhata hai. Vs plain JS: baar-baar DOM mat chhedo.
Example
<!-- HelloWorld.vue -->
<template>
<h1>{{ msg }}</h1>
</template>
<script>
export default { data() { return { msg: 'Hello' } } }
</script>Project example: Navbar.vue + views (Login, Dashboard). data() / setup() reactive. fetch APIs.
Viva tipFayde: easy, SFC, reactivity. Vs React: chhota learning curve. Vs plain JS: UI state auto-update.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCDN = Vue script tag se, jaise pen drive. CLI/Vite = poori factory (SFC, npm, bundle).
CDN: no build, chhote apps, exam PC pe Node nahi to bhi chal. Weak: no .vue compile, 3rd-party cache, scale/team.
CLI/Vite: Single File Components, env, code-split, production dist/. Scalable.
Examiner 'which + why' — jo use kiya wahi justify, doosra naam rato mat.
Example
<!-- CDN -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
# Vite
npm run dev
npm run buildProject example: CDN: index.html unpkg vue. CLI: package.json, npm run serve / vite.
Viva tipCDN scalable large teams ke liye weak (no SFC compile, caching 3rd party). Examiner 'which + why' poochta hai — jo use kiya wahi justify karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLogin token create. Decorators protected APIs. JWT/Security init factory.
Where JWT authentication implemented backend. Show auth code.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).
MAD2: POST /api/login = authentication. @jwt_required identity. @roles_required('admin') ya Vue v-if="isAdmin" = authorization. Frontend hide sirf UX — asli deny backend pe.
Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Project example: auth.py + decorators.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCelery background tasks (email, CSV, reports) async chalaata hai. Redis broker/queue + cache.
User 'Export' click → Celery task queue → Redis message → worker CSV banaata hai → user baad mein download.
Saath isliye: Celery ko broker chahiye, Redis tez in-memory. MAD2 topic zyada, MAD1 mein optional.
Priority: task queues/routing. Caching: Redis mein key-value, DB hits kam.
Pub/Sub: publisher channel pe message, subscribers sunte hain — Redis yeh bhi karta hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive Flask coding: chhota route likho, save, browser/curl se test. Syntax error terminal mein padho.
Example
@app.route('/ping')
def ping():
return jsonify(ok=True)
@app.route('/even/<int:n>')
def even(n):
return 'even' if n % 2 == 0 else 'odd'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCode explain formula: input kya aaya → auth/validation → DB change → response/UI.
Viva tipFunction signature + 3-4 important lines + edge case.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLS / SS / memory / httpOnly cookie. Har request Authorization header.
Logout clear. XSS LS risk. Memory refresh lose.
Authentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password hash check. Success pe JWT/session. Galat credentials = 401.
Authorization: uske baad role. Admin hi venue/lot delete kare, student nahi = 403 (logged in ho, allowed nahi).
MAD2: POST /api/login = authentication. @jwt_required identity. @roles_required('admin') ya Vue v-if="isAdmin" = authorization. Frontend hide sirf UX — asli deny backend pe.
Validation alag: form sahi bhara (email format, age 18+). Woh identity prove nahi karta. Password store hash (Werkzeug), JWT payload padha ja sakta hai isliye secret mat daalo.
Example
localStorage.setItem('token', data.token)
localStorage.removeItem('token')Project example: login.vue setItem. interceptor getItem. logout removeItem.
Viva tipSession Storage tab band pe saaf. Cookies expiry + httpOnly. Vuex memory refresh pe gayab — persist alag.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplevenv activate → dependencies → DB create/migrate → flask run. Browser pe localhost dikhao.
Example
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
flask run
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET data read/show karta hai (idempotent). POST create/submit karta hai (form).
Example
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
# validate + session
...
return render_template('login.html')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.
Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.
Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search + charts
6) CSV export / email job
7) Logout
Project example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.
Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache = pehli baar hisaab karke copy rakh lo, doosri baar copy dikha do.
Baar-baar same expensive kaam (DB query, counting bookings) mat karo. Result Redis jaise store mein timeout ke saath rakh do.
Cache hit: key mil gayi, DB skip. Cache miss: DB se lao, SET karo, return karo.
Tradeoff: speed vs stale data. Admin naya venue add kare aur cache 50s ka ho to user purani list dekh sakta hai — isliye write pe invalidation zaroori hai.
Browser cache, Flask-Caching, Redis alag layers hain. MAD2 examiner Redis + @cache.cached code dekhta hai.
Example
@cache.cached(timeout=50, query_string=True)
@app.route('/api/shows')
def shows():
return jsonify([s.serialize() for s in Show.query.all()])Project example: Admin dashboard counts / venues list cache. Create/update/delete ke baad cache.delete('venues').
Viva tipprint('DB queried') function ke andar laga ke miss/hit demo karo — hit pe print nahi chalega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePUT/PATCH update resource; DELETE remove. REST APIs mein. Forms browser mostly GET/POST — method override ya fetch se PUT/DELETE.
Example
@app.route('/lots/<int:id>', methods=['PUT', 'DELETE'])
def lot_detail(id): ...
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJWT teen tukde ki signed chitthi: header.payload.signature. Padhi ja sakti hai, badli nahi ja sakti.
Encoded (Base64) + signed, encrypted nahi (JWE alag). Payload mein password mat daalo — koi jwt.io pe dekh lega.
Login pe server secret se HMAC (HS256). Har API Authorization: Bearer <token>.
Expiry exp. Change payload → signature fail → 401.
Session MAD1 server yaad rakhta. JWT MAD2 client rakhta, server stateless-ish.
Example
eyJhbGciOiJIUzI1NiJ9.{"sub":1,"role":"admin"}.signature
# Authorization: Bearer <token>Project example: POST /login → token LS. fetch interceptor header. @jwt_required APIs.
Viva tipAlgo HS256. Secret env var. jwt.io pe payload dikhao, secret public site pe mat paste.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplev-if ghar se nikaal deta hai (DOM se). v-show sirf light band karta hai (display:none).
v-if false → element exist hi nahi — costly create/destroy, lekin secret HTML DOM mein nahi.
v-show → hamesha DOM, CSS hide, toggle tez.
Rare / permission UI: v-if (admin panel). Dropdown bar-bar: v-show.
: shorthand v-bind ka, v-if ka nahi.
Example
<div v-if="isAdmin">Admin panel</div>
<div v-show="open">Dropdown</div>Project example: Admin links v-if="role==='admin'". FAQ accordion v-show="open".
Viva tipSecurity ke liye sirf v-if kaafi nahi — API 403 bhi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMAD1 mein usually session-based auth: login pe session['user_id'], har request pe verify.
Example
session['user_id'] = user.id
uid = session.get('user_id')
user = User.query.get(uid)Viva tipSECRET_KEY set karo warna session insecure. logout pe session.clear().
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.
Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.
Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search + charts
6) CSV export / email job
7) Logout
Project example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.
Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).
Example
# auth
if check_password_hash(user.password, pwd):
session['user_id'] = user.id
# authz
if user.role != 'admin':
abort(403)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCamera pe clearly college/IITM ID dikhao — naam aur photo match hone chahiye.
Viva tipPehle se ID haath mein rakho, glare mat aane do. Iske baad GitHub + project run.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGitHub repo open karo: commits, collaborators, README. Examiner check karta hai tumne khud kaam kiya.
Example
Settings → Collaborators
Commits: regular messages, last-day dump nahi.Viva tipPrivate repo access pehle de do. Main branch submitted ZIP se match honi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJWT teen tukde ki signed chitthi: header.payload.signature. Padhi ja sakti hai, badli nahi ja sakti.
Encoded (Base64) + signed, encrypted nahi (JWE alag). Payload mein password mat daalo — koi jwt.io pe dekh lega.
Login pe server secret se HMAC (HS256). Har API Authorization: Bearer <token>.
Expiry exp. Change payload → signature fail → 401.
Session MAD1 server yaad rakhta. JWT MAD2 client rakhta, server stateless-ish.
Example
eyJhbGciOiJIUzI1NiJ9.{"sub":1,"role":"admin"}.signature
# Authorization: Bearer <token>Project example: POST /login → token LS. fetch interceptor header. @jwt_required APIs.
Viva tipAlgo HS256. Secret env var. jwt.io pe payload dikhao, secret public site pe mat paste.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleHonest raho: kitna AI help. Report mein mention policy follow. Code samajh ke explain karo — AI % se zyada understanding matter.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePOST naya janam (har baar naya id). PUT poori photo replace. PATCH sticker chipkao.
POST create, not idempotent. PUT full update, idempotent. PATCH partial.
POST ki jagah PUT se REST semantics toot. GET typically no body.
CRUD map: POST create, GET read, PUT/PATCH update, DELETE delete.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
POST /api/venues
PUT /api/venues/1 {all fields}
PATCH /api/venues/1 {only name}Project example: POST /api/venues create. PUT /venues/1 saari fields. PATCH sirf name.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache = pehli baar hisaab karke copy rakh lo, doosri baar copy dikha do.
Baar-baar same expensive kaam (DB query, counting bookings) mat karo. Result Redis jaise store mein timeout ke saath rakh do.
Cache hit: key mil gayi, DB skip. Cache miss: DB se lao, SET karo, return karo.
Tradeoff: speed vs stale data. Admin naya venue add kare aur cache 50s ka ho to user purani list dekh sakta hai — isliye write pe invalidation zaroori hai.
Browser cache, Flask-Caching, Redis alag layers hain. MAD2 examiner Redis + @cache.cached code dekhta hai.
Example
@cache.cached(timeout=50, query_string=True)
@app.route('/api/shows')
def shows():
return jsonify([s.serialize() for s in Show.query.all()])Project example: Admin dashboard counts / venues list cache. Create/update/delete ke baad cache.delete('venues').
Viva tipprint('DB queried') function ke andar laga ke miss/hit demo karo — hit pe print nahi chalega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMAD1 frontend usually Jinja templates + HTML/CSS/Bootstrap (+ thoda JS). MAD2 pe Vue ho to clearly bolo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.
Scheduled vs user-triggered dono dikhao. Missing feature honestly.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) redis
2) worker
3) beat
4) crontab now
5) logs + MailHog
Example
CELERY_BEAT_SCHEDULE = {
'daily-reminder': {
'task': 'jobs.daily_reminder',
'schedule': crontab(hour=18, minute=0),
},
}Project example: Change schedule current time. MailHog. Export button 202.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.
Scheduled vs user-triggered dono dikhao. Missing feature honestly.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) redis
2) worker
3) beat
4) crontab now
5) logs + MailHog
Example
CELERY_BEAT_SCHEDULE = {
'daily-reminder': {
'task': 'jobs.daily_reminder',
'schedule': crontab(hour=18, minute=0),
},
}Project example: Change schedule current time. MailHog. Export button 202.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCounts API, bar/pie, booking ke baad number badle.
2 colors live task common.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Example
new Chart(ctx, {
type: 'bar',
data: { labels: ['Jan','Feb'], datasets: [{ data: [12, 19], backgroundColor: ['#36a','#f80'] }] }
})Project example: Admin dashboard.
Viva tipBooking karke chart update dikhao. Examiner 2 colors maange to backgroundColor array chhota kar do.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCache baar-baar DB/compute na karne ke liye result yaad rakhta hai.
Browser cache, Flask cache, Redis. Example: dashboard counts 30 sec Redis mein.
Cookies alag (client data). HTTP 304 Not Modified bhi cache related.
MAD1 mein optional. Scale poochhe to pehle indexes + cache, phir extra servers.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleExaminer portal wala submitted ZIP chahta hai. Local extra changes mat dikhana.
Suggested flow1) Portal ZIP download
2) Extract
3) venv + pip install -r requirements.txt
4) flask run / python app.py
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCRUD = Create Read Update Delete. Admin pe ek resource ke 4 ops dikhao.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDecorator + Redis ping + invalidation line + miss/hit demo idea.
Kaunsi routes, timeout, key_prefix, query_string. POST pe nahi.
print after set sirf miss. Timeout chhota karke expiry.
Redis in-memory key-value store hai — fridge pe sticky note, poori kitchen (SQL database) har baar mat kholo.
MAD2 mein Redis do kaam: (1) cache — same venues/shows/dashboard JSON baar-baar DB se nahi (2) Celery broker — Flask task queue mein daalta hai, worker uthata hai.
Flow: cache.get(key) → hit pe return, miss pe SQLAlchemy + SET with timeout. Admin write ke baad cache.delete, warna stale list.
Source of truth database hi hai. Redis crash/band = cache miss (app chalni chahiye) + queue ruk sakti hai. Important bookings sirf Redis mein mat rakho.
Alag: Redis ≠ Memcached (Celery broker nahi). Redis ≠ localStorage (woh browser). redis-cli ping → PONG viva proof.
Project example: resources list GET cached. create_venue delete key.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.
Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.
Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search + charts
6) CSV export / email job
7) Logout
Project example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.
Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDB dikhao: SQLite browser / flask shell se tables. Users, roles, sample rows.
Example
flask shell
>>> from models import User
>>> User.query.count()
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLevel = viva difficulty band. Level 1 usually demo + basics; higher pe live coding + deeper theory.
Viva tipJo level assign hai uske hisaab se demo + theory ready rakho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCamera pe clearly college/IITM ID dikhao — naam aur photo match hone chahiye.
Viva tipPehle se ID haath mein rakho, glare mat aane do. Iske baad GitHub + project run.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSearch: form/query param → ilike filter → results template.
Example
q = request.args.get('q', '').strip()
lots = Lot.query.filter(Lot.name.ilike(f'%{q}%')).all()
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRoute URL ko Python function se map karta hai. Decorator @app.route ya blueprint.route.
Example
@app.route('/lots', methods=['GET', 'POST'])
def lots():
if request.method == 'POST':
...
return render_template('lots.html', lots=Lot.query.all())
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleREST: resources + HTTP verbs. GET read, POST create, PUT/PATCH update, DELETE remove. Stateless ideal.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleHTTP verbs REST ke tools. Methods HTTP ke hain, REST unhe convention se use karta hai.
GET read cacheable. POST create payload. PUT replace. PATCH patch. DELETE remove.
GET exists bina REST ke bhi — browser address bar.
HTTP verbs + status REST ki zabaan. GET read, POST create, PUT replace, PATCH partial, DELETE remove. GET typically no body.
Status: 200 OK, 201 created, 202 accepted (Celery task), 400 bad input, 401 no/bad token, 403 role nahi, 404 missing, 409 conflict (double book), 500 server.
AJAX/fetch page reload nahi. SPA poori isi pe. Postman se bina Vue ke API prove karo — examiner pasand.
Example
GET /api/venues
POST /api/venues
PUT /api/venues/1
DELETE /api/venues/1Project example: resources.py methods list. Postman 4-5 calls.
Viva tipGET typically no body (cacheable). POST/PUT/PATCH haan payload. PUT idempotent, POST nahi.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.
Scheduled vs user-triggered dono dikhao. Missing feature honestly.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) redis
2) worker
3) beat
4) crontab now
5) logs + MailHog
Example
CELERY_BEAT_SCHEDULE = {
'daily-reminder': {
'task': 'jobs.daily_reminder',
'schedule': crontab(hour=18, minute=0),
},
}Project example: Change schedule current time. MailHog. Export button 202.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSMTP = Simple Mail Transfer Protocol — email bhejne ka standard. Flask-Mail / smtplib se reminders/reports.
Example
from flask_mail import Message
msg = Message('Subject', recipients=[user.email])
msg.body = 'Hello'
mail.send(msg)Viva tipViva mein MailHog/inbox dikhao. Port 587 TLS common; local pe MailHog 1025.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCelery = background naukri. HTTP request ko 10 second email bhejne ke liye mat rokna.
Distributed task queue: aap function ko abhi nahi, worker process mein later/retry/schedule pe chalaate ho.
MAD2 typical jobs: daily reminder mail, monthly HTML report, user-triggered CSV export.
Web request 200ms hona chahiye. 10,000 emails request thread mein = timeout. Worker alag CPU pe kaam kare.
Redis broker chahiye. Beat alag process schedule ke liye.
Example
@celery.task
def daily_reminder():
for u in User.query.filter_by(active=True):
send_mail(u.email, 'Book something today!')Project example: User Export click → 202 Accepted. Worker CSV + email. Daily 6pm Beat reminder.
Viva tipWorker + Redis bina Beat ke user-triggered chalega. Scheduled jobs ke liye Beat bhi chahiye.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLevel = viva difficulty band. Level 1 usually demo + basics; higher pe live coding + deeper theory.
Viva tipJo level assign hai uske hisaab se demo + theory ready rakho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice: 5–7 min, Admin + User roles, saare mandatory features.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search
6) Logout
Viva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCDN = Vue script tag se, jaise pen drive. CLI/Vite = poori factory (SFC, npm, bundle).
CDN: no build, chhote apps, exam PC pe Node nahi to bhi chal. Weak: no .vue compile, 3rd-party cache, scale/team.
CLI/Vite: Single File Components, env, code-split, production dist/. Scalable.
Examiner 'which + why' — jo use kiya wahi justify, doosra naam rato mat.
Example
<!-- CDN -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
# Vite
npm run dev
npm run buildProject example: CDN: index.html unpkg vue. CLI: package.json, npm run serve / vite.
Viva tipCDN scalable large teams ke liye weak (no SFC compile, caching 3rd party). Examiner 'which + why' poochta hai — jo use kiya wahi justify karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Examiner code pe ungli rakh ke poochta hai — panic mat karo, 4-line formula bolo.
1) Yeh file/line kya role hai (model / route / template / config)?
2) Input kahan se aata hai (form, URL <id>, session, JSON)?
3) DB pe kya query/write?
4) Output kya (render_template / redirect / jsonify)?
Example
@app.route('/book/<int:id>', methods=['POST']) — logged-in user session se, trek id URL se, Booking add, slots--, redirect history.Unknown line: imports (request, url_for, flash), decorators, if checks, commit — har keyword ka reason ready rakho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAuthentication: tu kaun hai? (login). Authorization: tujhe permission hai? (role check).
Example
# auth
if check_password_hash(user.password, pwd):
session['user_id'] = user.id
# authz
if user.role != 'admin':
abort(403)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleForeign key dusri table ke PK ko point karti hai — relationship banati hai.
Example
lot_id = db.Column(db.Integer, db.ForeignKey('lot.id'), nullable=False)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.
Scheduled vs user-triggered dono dikhao. Missing feature honestly.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) redis
2) worker
3) beat
4) crontab now
5) logs + MailHog
Example
CELERY_BEAT_SCHEDULE = {
'daily-reminder': {
'task': 'jobs.daily_reminder',
'schedule': crontab(hour=18, minute=0),
},
}Project example: Change schedule current time. MailHog. Export button 202.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplemodels.py = har table ki class: columns, PK/FK, relationships. Yeh Model layer hai.
Suggested flow1) Classes list karo
2) Har table ka kaam 1 line
3) Relationships (1-M / M-M)
4) Constraints (unique, nullable)
Example
class Lot(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80), nullable=False)
spots = db.relationship('Spot', backref='lot', lazy=True)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePrimary key row ka unique identity — usually id Integer autoincrement.
Example
id = db.Column(db.Integer, primary_key=True)
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePause async fn until settle. Value or throw.
Missing await = Promise not data.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: this.items = await res.json()
Project example: this.items = await res.json()
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRBAC = Role Based Access Control. Roles (admin/user) se permissions milti hain, har user pe alag list nahi.
Example
if current_user.role != 'admin':
flash('Not allowed')
return redirect(url_for('user.home'))
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo 5–7 min ki kahani: saari roles, koi milestone skip nahi, bolte-bolte dikhao.
Examiner list tick karta hai. Crash ho to panic nahi — terminal error padho.
Code tab kholna jab poochhein. Extra uncommitted features mat dikhana agar portal ZIP mein nahi.
Suggested flow1) Register/login user
2) Admin login — CRUD
3) Approval/blacklist
4) Booking/apply + edge case
5) Search + charts
6) CSV export / email job
7) Logout
Project example: Jo statement/parking/jobs/tickets hai uske user+admin journeys.
Viva tipBol: 'Yahan overbooking rokta hoon'. Mandatory features pehle, polish baad.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleLive jobs: Redis, worker, beat, crontab abhi, logs + email/CSV.
Scheduled vs user-triggered dono dikhao. Missing feature honestly.
Examiner 2 cheezein: simple desi line + tumhare project ki exact file.
Pehle ID, GitHub, portal ZIP. Phir run: Redis + Flask + worker + beat + Vue. Feature demo: login, RBAC, cache hit/miss, Celery mail, search.
Line pe ungli: input kahan, kaunsa check, query/cache/task, JSON/UI. Copilot band. Jo nahi kiya honestly bolo + kaise add karte.
Suggested flow1) redis
2) worker
3) beat
4) crontab now
5) logs + MailHog
Example
CELERY_BEAT_SCHEDULE = {
'daily-reminder': {
'task': 'jobs.daily_reminder',
'schedule': crontab(hour=18, minute=0),
},
}Project example: Change schedule current time. MailHog. Export button 202.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleTables + lines (FK) + 1-M / M-M. Draw mentally, phir models.py.
Har class: PK, important columns, relationships. Why normalized (no duplicate venue name in every show as only string without FK).
Indexes search columns. Unique email. Cascade policy bookings pe.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: User-Role M-M. User-Booking 1-M. Venue-Show 1-M. Show-Booking 1-M.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePrimary Key unique not null identity. Usually integer autoincrement.
Candidate keys mein se chosen. Composite PK possible, course simple id.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Har model id = db.Integer primary_key=True.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleForeign Key dusri table ki PK ki ungli pakadna. Relationship ka backbone.
user_id → user.id. Referential integrity. Unique extra ho sakta 1-1 ke liye.
Sirf UNIQUE se relationship nahi banti.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Example
user_id = db.Column(db.Integer, db.ForeignKey('user.id', ondelete='CASCADE'))Project example: booking.user_id, show.venue_id. models.py dikhao.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpleasync/await Promise ko seedha-seedha padhne jaisa banata hai, magic nahi.
await sirf async ke andar. try/catch reject. Parallel: Promise.all.
Celery se confuse mat hona — yeh JS event loop, woh Python worker.
JS browser ki language. const rebind nahi, let block. Arrow () => this lexical.
Promise: pending/fulfill/reject. async/await usko seedha padhne jaisa. try/catch await pe. Yeh Celery nahi — Celery Python worker.
fetch native AJAX. array.filter/map computed lists. Vue data reactive; plain JS DOM querySelector se manual.
Example
async function load() {
const r = await fetch('/api/venues')
return r.json()
}Project example: async mounted() { this.rows = await api() }
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRBAC = role ka badge. Admin badge se delete, user badge se sirf book.
Role-Based Access Control. Har user pe alag permission list nahi — roles.
Models: User M-M Role association. Decorators @roles_required. Vue v-if + router meta.
Frontend hide UX. Backend 403 real security.
Example
if current_user.roles[0].name != 'admin':
return jsonify(msg='Forbidden'), 403Project example: roles_users table. admin stats API roles_required. User booking POST user role.
Viva tipCode mein roles_required, Vue meta.role, models User↔Role many-to-many (roles_users table).
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAuthentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password check karke prove karte ho ki tum genuine user ho. Success pe session/token milta hai.
Authorization: uske baad role check. Admin hi parking lot / venue / drive delete kar sakta hai, normal user nahi.
MAD2 mein yeh alag layers hain: login API = authentication (JWT milta hai). @roles_required('admin') ya Vue v-if="isAdmin" = authorization.
Validation alag cheez hai (form sahi bhara hai ya nahi, jaise age 18+). Authentication identity hai, authorization permission, validation input quality.
Example
# Authentication
if user and check_password_hash(user.password, form_password):
token = create_access_token(identity=user.id)
# Authorization
if current_user.role != 'admin':
abort(403) # logged in ho, lekin allowed nahiProject example: Student login = authentication. Student admin dashboard nahi khol sakta = authorization. Frontend button hide sirf UX hai — asli check backend pe hona chahiye.
Viva tip401 = not logged in / bad token. 403 = logged in, role galat. Examiner yeh difference bahut poochta hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCDN isliye simple deploy, kabhi Node nahi chahiye viva machine pe.
Show <script src=vue> index.html. Tradeoff: SFC nahi, ek bada JS file.
Agar CLI use kiya to yeh answer ulta: SFC + build isliye CLI.
SPA = ek HTML, Vue Router se views, full reload nahi. MPA = MAD1 Jinja har URL naya HTML.
Vue Router: routes array, router-view, router-link, meta.auth + beforeEach guard. Dynamic /venues/:id → $route.params.id.
Vite/CLI SFC + npm build dist/. CDN script tag, no SFC. Jo tumne use kiya wahi justify. Flask send_from_directory('dist') production pattern.
Project example: index.html bottom script tags Vue + vue-router + app.js.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCamera pe clearly IITM/college ID dikhao — naam photo match.
Pehle se ID haath mein rakho. Glare mat aane do. Examiner screenshot/verify karta hai. Iske baad GitHub + project run.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleChecksum file ka hash (jaise SHA256) — file change hui ya nahi verify.
Portal pe submitted ZIP ka checksum diya hota hai. Local file ka hash nikaalo, match hona chahiye.
Linux: sha256sum project.zip
Mismatch = galat file / corrupt download. Examiner integrity check karta hai ki tumhari submitted copy hi run ho rahi hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice karo, 5-7 minute, saari roles.
Suggested flow
1) Register/login user 2) Admin login — CRUD 3) Approval/blacklist 4) Booking/apply 5) Search 6) Validation edge (slots 0, duplicate) 7) Logout
Bolte-bolte dikhao: 'Yahan overbooking rokta hoon'. Code tab kholna jab poochhein.
Crash ho to debug calmly: terminal error, typo, DB path.
Mandatory features skip mat karna — examiner list tick karta hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDemo script pehle se practice karo, 5-7 minute, saari roles.
Suggested flow
1) Register/login user 2) Admin login — CRUD 3) Approval/blacklist 4) Booking/apply 5) Search 6) Validation edge (slots 0, duplicate) 7) Logout
Bolte-bolte dikhao: 'Yahan overbooking rokta hoon'. Code tab kholna jab poochhein.
Crash ho to debug calmly: terminal error, typo, DB path.
Mandatory features skip mat karna — examiner list tick karta hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSearch box GET form, backend query filter, results template mein.
q = request.args.get('q', '').strip()
results = Doctor.query.filter(Doctor.name.ilike(f'%{q}%')).all() if q else []
return render_template('search.html', results=results, q=q)Jinja: {{ results|length }} matches. Empty: 'No results'.
JS-only filter: saara data pehle load, client filter — chhote lists. Bada data: server search.
Search generally GET (shareable URL). Count: len(results) ya db.func.count.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh project-specific feature add/modify hai. 4 layers touch karo: model, route, template, validation.
1) Data chahiye to models.py mein column/relationship + DB update (ALTER / migrate / create_all).
2) Route: GET pe form/page, POST pe request.form se save, flash + redirect.
3) Template: input name=... Jinja se {{ obj.field }} display.
4) Rule: duplicate, range, role check backend pe.
Example naya field 'city':
user.city = db.Column(db.String(50))
user.city = request.form.get('city')
<input name='city'> ... {{ user.city }}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh project-specific feature add/modify hai. 4 layers touch karo: model, route, template, validation.
1) Data chahiye to models.py mein column/relationship + DB update (ALTER / migrate / create_all).
2) Route: GET pe form/page, POST pe request.form se save, flash + redirect.
3) Template: input name=... Jinja se {{ obj.field }} display.
4) Rule: duplicate, range, role check backend pe.
Example naya field 'city':
user.city = db.Column(db.String(50))
user.city = request.form.get('city')
<input name='city'> ... {{ user.city }}
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh feature demo hai. Account ready rakho, steps bol ke dikhao.
Role ke hisaab login → action (create/approve/book) → DB/UI pe result → edge case (fail when slots=0 / blacklisted).
Do browser windows: admin + user. Search/filter alag se dikhao.
Agar feature nahi hai to sach bolo aur 2 minute mein kaise add karoge (query + template) explain karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplemodels.py har table ki class hai — columns, PK/FK, relationships. Yeh Model layer hai.
Viva mein file khol ke bolo:
1) Kaunsi classes/tables hain (User, Role-specific, Booking...)
2) Har table ka kaam 1 line
3) Relationships: 1-1 / 1-M / M-M, backref, cascade, lazy
4) Constraints: unique email, nullable, default status
Example skeleton
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120), unique=True, nullable=False)
role = db.Column(db.String(20), default='user')
bookings = db.relationship('Booking', backref='user', cascade='all, delete-orphan')ER diagram: rectangles entities, lines relationships, PK/FK mark. Schema = yahi structure.
Tables create: db.create_all() ya migrations. SQLite file SQL viewer se dikha sakte ho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplemodels.py har table ki class hai — columns, PK/FK, relationships. Yeh Model layer hai.
Viva mein file khol ke bolo:
1) Kaunsi classes/tables hain (User, Role-specific, Booking...)
2) Har table ka kaam 1 line
3) Relationships: 1-1 / 1-M / M-M, backref, cascade, lazy
4) Constraints: unique email, nullable, default status
Example skeleton
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120), unique=True, nullable=False)
role = db.Column(db.String(20), default='user')
bookings = db.relationship('Booking', backref='user', cascade='all, delete-orphan')ER diagram: rectangles entities, lines relationships, PK/FK mark. Schema = yahi structure.
Tables create: db.create_all() ya migrations. SQLite file SQL viewer se dikha sakte ho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Examiner code pe ungli rakh ke poochta hai — panic mat karo, 4-line formula bolo.
1) Yeh file/line kya role hai (model / route / template / config)?
2) Input kahan se aata hai (form, URL <id>, session, JSON)?
3) DB pe kya query/write?
4) Output kya (render_template / redirect / jsonify)?
Example
@app.route('/book/<int:id>', methods=['POST']) — logged-in user session se, trek id URL se, Booking add, slots--, redirect history.Unknown line: imports (request, url_for, flash), decorators, if checks, commit — har keyword ka reason ready rakho.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET data mangta hai (read), POST data bhejta hai (create/submit).
GETURL mein dikhta hai, bookmark ho sakta hai, browser back/refresh safe hai, data URL query mein jaata hai. Search, page open, login form dikhana.
POSTbody mein data jaata hai, URL mein password nahi dikhta, refresh pe dubara submit ho sakta hai. Login, register, form save.
Example
# page dikhana
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'GET':
return render_template('login.html')
# POST: form submit
email = request.form.get('email')
...GET se theoretically data bhej sakte ho (?q=flask), lekin create/update ke liye nahi use karna — data log/history mein save ho jaata hai, length limit hoti hai.
HTML form default GET hota hai; method='POST' likhna zaroori hai login/register pe.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleMVC = Model-View-Controller. Code ko 3 hisson mein baant ta hai taaki mix na ho.
Model: data + DB. models.py — User, Trek, Booking classes.
View: jo user dekhta hai. templates/*.html + Jinja.
Controller: beech ka logic. routes / app.py — request lo, model se data, view ko do.
Example flow (register):
Browser form POST → Controller register() → User model save → redirect → View dashboard.html
Draw: Browser → Controller → Model → DB, phir Controller → View → Browser.
ORM na ho to bhi MVC ho sakta hai — Model raw SQL functions ho sakte hain. Structure matter karta hai, library nahi.
MVP/MVVM doosri architectures hain; MAD1 mein MVC expected hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleAuthentication poochta hai "tu kaun hai?", Authorization poochta hai "tujhe yeh kaam karne ki permission hai?"
Authentication: login. Username + password check karke prove karte ho ki tum genuine user ho. Success pe session/token milta hai.
Authorization: uske baad role check. Admin hi parking lot delete kar sakta hai, normal user nahi.
Example (Flask):
# Authentication
if user and check_password_hash(user.password, form_password):
session['user_id'] = user.id
# Authorization
if session.get('role') != 'admin':
abort(403) # logged in ho, lekin allowed nahiProject example: student login = authentication. Student admin dashboard nahi khol sakta = authorization.
Validation alag cheez hai (form sahi bhara hai ya nahi, jaise age 18+).
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleGET data mangta hai (read), POST data bhejta hai (create/submit).
GETURL mein dikhta hai, bookmark ho sakta hai, browser back/refresh safe hai, data URL query mein jaata hai. Search, page open, login form dikhana.
POSTbody mein data jaata hai, URL mein password nahi dikhta, refresh pe dubara submit ho sakta hai. Login, register, form save.
Example
# page dikhana
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'GET':
return render_template('login.html')
# POST: form submit
email = request.form.get('email')
...GET se theoretically data bhej sakte ho (?q=flask), lekin create/update ke liye nahi use karna — data log/history mein save ho jaata hai, length limit hoti hai.
HTML form default GET hota hai; method='POST' likhna zaroori hai login/register pe.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePrimary Key har row ko uniquely identify karti hai. Unique Key bhi unique hoti hai lekin table ki main ID nahi.
id = db.Column(db.Integer, primary_key=True) # auto increment
email = db.Column(db.String(120), unique=True)PK: NOT NULL, ek (ya composite). Index automatically.
Record fetch: User.query.get(id) PK se tez.
FK hamesha unique nahi — Many side pe repeat hoti hai. Unique FK = One-to-One.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimplePrimary Key har row ko uniquely identify karti hai. Unique Key bhi unique hoti hai lekin table ki main ID nahi.
id = db.Column(db.Integer, primary_key=True) # auto increment
email = db.Column(db.String(120), unique=True)PK: NOT NULL, ek (ya composite). Index automatically.
Record fetch: User.query.get(id) PK se tez.
FK hamesha unique nahi — Many side pe repeat hoti hai. Unique FK = One-to-One.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
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).
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simplebackref relationship ki reverse side automatically bana deta hai.
class Post(db.Model):
user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
user = db.relationship('User', backref='posts')Ab post.user milta hai, aur user.posts bhi — Post model pe sirf ek line.
secondary Many-to-Many junction table ke liye: relationship(..., secondary=likes_table, backref='liked_by').
Explicit chahiye to back_populates use karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simpleback_populates dono models pe relationship explicitly link karta hai.
class User(db.Model):
posts = db.relationship('Post', back_populates='author')
class Post(db.Model):
author = db.relationship('User', back_populates='posts')Naam match hona chahiye. Readability better, circular confusion kam. backref ka alternative yahi hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simple@app.route URL ko Python function se jodta hai. @ wala cheez decorator hai.
@app.route('/hello/<name>', methods=['GET'])
def hello(name):
return f'Hello {name}'Decorator function ko wrap karke extra behaviour deta hai (route register, login_required).
Endpoint generally function name. Path /hello/Ram.
<int:id> type converter — sirf integer. Bina converter string. ID chahiye to int safer.
methods=['POST'] only POST. Default GET.
functools.wraps custom decorator mein original function name/docs preserve karta hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simple@app.route URL ko Python function se jodta hai. @ wala cheez decorator hai.
@app.route('/hello/<name>', methods=['GET'])
def hello(name):
return f'Hello {name}'Decorator function ko wrap karke extra behaviour deta hai (route register, login_required).
Endpoint generally function name. Path /hello/Ram.
<int:id> type converter — sirf integer. Bina converter string. ID chahiye to int safer.
methods=['POST'] only POST. Default GET.
functools.wraps custom decorator mein original function name/docs preserve karta hai.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet