Sir is a great guy, interact well with him.
- show the whole app.
- limit the number of drives a student can apply to 2.
- distinguish the newly made drives by changing their background for students
- show the git repo
Proctor workspace
Based on 11 student review(s) and 8 tip(s) for this examiner (grouped from similar proctor IDs).
Generally calm and student-friendly. Described as nice/helpful by students
Expects you to know and possibly modify your project code
• Just present your project nicely and explain the code parts if she asks. She will probably not ask any other questions. • Chill proctor • Nice proctor overall. Try to get the app running within 2-3 minutes. • no need to worry, jsut do you presentation well • examiner was very patient with the project demonstration and also very chill and relaxed...dw too much just make sure yk minor code changes as well • The examiner was chill and listened very carefully during the project demonstration. He asked me a lot of questions • Sir is very nice • Sir is a great guy, interact well with him.
Sir is a great guy, interact well with him.
Sir is very nice
The examiner was chill and listened very carefully during the project demonstration. He asked me a lot of questions
examiner was very patient with the project demonstration and also very chill and relaxed...dw too much just make sure yk minor code changes as well
no need to worry, jsut do you presentation well
Nice proctor overall. Try to get the app running within 2-3 minutes.
Shared viva questions from response sheet: Show the id card; Show the git repo 3.show the demo of the app with all the core functionalities.; Write a hello world using flask in a notepad 5.what is session 6.How we initialize flask?Show in the code .
Chill proctor
Just present your project nicely and explain the code parts if she asks. She will probably not ask any other questions.
Shared viva questions from response sheet: 1.she asked me to show my project ( the functionalities of admin and the user); 2.frameworks i have used; 3.relationship of my tables
Shared viva questions from response sheet: Asked me to change parking lot max spots and show DB live update; What is orm?; Which orm have you used, explain it?
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
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
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
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
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
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
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
Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.
Example
spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleApplication context app-level data (config, db), Request context ek HTTP request (request, session).
Request ke andar Flask khud context push karta hai. Scripts/shell mein db query ke liye:
with app.app_context():
User.query.all()app.app_context().push() same, lekin with better (cleanup).
current_app proxy current Flask app ki taraf. Factory pattern mein import app cycle avoid.
Request context ke bahar request.form error dega.
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
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
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
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
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
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
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
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
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
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
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
SimpleMAD1 typical: Browser → Flask routes → validate/auth → SQLAlchemy → SQLite → Jinja response.
Suggested flowRequest → Route → Auth check → DB → render_template / redirect
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
Simpledb.relationship se object graph: lot.spots, booking.user. backref reverse side auto deta hai.
Example
spots = db.relationship('Spot', backref='lot', cascade='all, delete-orphan')
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleSQLAlchemy MAD1 ka common ORM. Flask-SQLAlchemy wrapper se db.Model, db.session.
Example
user = User(email='a@b.com')
db.session.add(user)
db.session.commit()
users = User.query.filter_by(role='admin').all()
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
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
SimpleStack bolo: Python, Flask, Jinja2, SQLAlchemy, SQLite, HTML/CSS/Bootstrap, maybe Chart.js.
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
Yeh MAD-1 viva question tumhare project ke context se linked hai. Short answer is structure se do:
Pehle 1 line definition/purpose, phir tumhare project ka example, phir chhota code/flow.
Typical Flask flowBrowser request → @app.route controller → SQLAlchemy model/DB → Jinja template response.
Auth: session['user_id'] + role check. CRUD: add/commit, query.all, field update, delete.
Live change maange to: related model → route → template, phir browser refresh karke dikhao.
Example (generic create):
obj = Model(name=request.form.get('name'))
db.session.add(obj); db.session.commit()
return redirect(url_for('list_view'))
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
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
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 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
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
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
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
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
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
Yeh MAD-1 viva question tumhare project ke context se linked hai. Short answer is structure se do:
Pehle 1 line definition/purpose, phir tumhare project ka example, phir chhota code/flow.
Typical Flask flowBrowser request → @app.route controller → SQLAlchemy model/DB → Jinja template response.
Auth: session['user_id'] + role check. CRUD: add/commit, query.all, field update, delete.
Live change maange to: related model → route → template, phir browser refresh karke dikhao.
Example (generic create):
obj = Model(name=request.form.get('name'))
db.session.add(obj); db.session.commit()
return redirect(url_for('list_view'))
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
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
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
SimpleTask function, beat dict, delay() call, worker+beat terminals, MailHog/CSV.
App context DB. Args serializable. How many jobs: reminder, monthly, export — gino honestly.
Celery Python ka distributed task queue — HTTP request ko 10s email/CSV ke liye mat rokna.
Flow: Flask .delay() → Redis broker → Worker execute. Beat alag process hai (clock): crontab padhke due time pe queue mein daalta hai. Beat khud mail nahi bhejta; Worker haath hai.
MAD2 typical: daily reminder (Beat), monthly report (Beat), user Export CSV (button, Beat nahi). JS async/await browser event loop hai, Celery server-side process — mix mat karo.
Demo: tin terminals — redis-server, celery worker, celery beat — plus Flask. MailHog :8025 inbox. Result backend se task SUCCESS poll optional.
Project example: tasks.py + config schedule + POST export.
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
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
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
SimpleStack bolo: Python, Flask, Jinja2, SQLAlchemy, SQLite, HTML/CSS/Bootstrap, maybe Chart.js.
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
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
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
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
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
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
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
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
SimpleAPI = interface jisse systems baat karein. Web API usually JSON return karti hai.
Example
@app.route('/api/lots')
def api_lots():
return jsonify([{'id': l.id, 'name': l.name} for l in 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
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
SimpleAPI = interface jisse systems baat karein. Web API usually JSON return karti hai.
Example
@app.route('/api/lots')
def api_lots():
return jsonify([{'id': l.id, 'name': l.name} for l in Lot.query.all()])
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
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 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
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
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
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
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
SimpleGET lists/stats @cache.cached. Mutations pe delete. CACHE_TYPE Redis.
Why each route: public repeated reads. User-private careful.
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: File+line decorator. redis-cli get key optional.
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 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
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
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
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
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
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
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
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
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
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
SimpleDirectives Vue ke special attributes — HTML ko superpower.
v-if/else/show, v-for, v-bind (:), v-on (@), v-model, v-html (XSS), v-cloak, v-slot.
:src = v-bind:src. @click = v-on:click.
Custom directives bhi (v-focus) — course basics kaafi.
Example
<p v-if="ok">Yes</p>
<li v-for="u in users" :key="u.id">{{ u.name }}</li>
<input v-model="email">
<img :src="url">Project example: List v-for :key. Form v-model. Admin v-if. Image :src.
Viva tip: src ke liye v-bind:src ka shorthand. @click = v-on:click.
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
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 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
SimpleRedis fridge pe sticky note hai — poori kitchen (database) kholne ki zarurat nahi.
Redis in-memory key-value store hai. Data RAM mein rehta hai, isliye disk wale SQLite/Postgres se kai guna tez.
MAD2 mein Redis do kaam karta hai:
1) Cache — same venue/show/dashboard JSON baar-baar DB se mat nikaalo.
2) Celery message broker — Flask task queue mein daalta hai, worker uthata hai.
Source of truth database hi hai. Redis band ho to cache miss ho jaata hai aur Celery queue ruk sakti hai. Crash pe cache gayab ho sakta hai — isliye important data sirf Redis mein mat rakho.
Example
import redis
r = redis.Redis(host='localhost', port=6379, db=0)
r.set('venues', json.dumps(data), ex=30)
print(r.get('venues'))Project example: GET /api/venues pehle Redis dekho. Miss pe SQLAlchemy query, phir SET with timeout. Celery worker Redis list se daily reminder uthata hai.
Viva tipCache ke liye db=1, broker ke liye db=0 rakhna smart hai taaki keys mix na hon. Viva mein redis-cli ping → PONG dikhana strong hai.
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
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
SimpleSync line pe ruk jao (2+2). Async I/O pe wait karte hue baaki kaam chalte (fetch, Celery).
JS async ≠ Celery async jobs. Context se bolo.
Why async jobs: slow/scheduled/bulk off request thread.
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: Login sync hash check fast. Email Celery async. Vue fetch async.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleCrontab 5 boxes: minute hour day-of-month month day-of-week.
crontab(hour=18, minute=0) roz 6pm. day_of_month=1 monthly. minute='*/1' har minute test.
Standard cron seconds support nahi. Examiner 'every 10 seconds' bole to schedule=10.0.
Beat process isi dict ko padhti hai. Edit ke baad beat restart.
Example
from celery.schedules import crontab
crontab(hour=18, minute=0)
crontab(minute='*/1')
crontab(day_of_month=1, hour=9, minute=0)Project example: daily 18:00, monthly 1st 09:00. Viva mein dono 17:20 karke live dikhaya.
Viva tipStandard cron seconds support nahi karta. Har 10 sec ke liye Celery schedule=10.0 use karo.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRedis fridge pe sticky note hai — poori kitchen (database) kholne ki zarurat nahi.
Redis in-memory key-value store hai. Data RAM mein rehta hai, isliye disk wale SQLite/Postgres se kai guna tez.
MAD2 mein Redis do kaam karta hai:
1) Cache — same venue/show/dashboard JSON baar-baar DB se mat nikaalo.
2) Celery message broker — Flask task queue mein daalta hai, worker uthata hai.
Source of truth database hi hai. Redis band ho to cache miss ho jaata hai aur Celery queue ruk sakti hai. Crash pe cache gayab ho sakta hai — isliye important data sirf Redis mein mat rakho.
Example
import redis
r = redis.Redis(host='localhost', port=6379, db=0)
r.set('venues', json.dumps(data), ex=30)
print(r.get('venues'))Project example: GET /api/venues pehle Redis dekho. Miss pe SQLAlchemy query, phir SET with timeout. Celery worker Redis list se daily reminder uthata hai.
Viva tipCache ke liye db=1, broker ke liye db=0 rakhna smart hai taaki keys mix na hon. Viva mein redis-cli ping → PONG dikhana strong hai.
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
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
SimpleHar lib ek line why — list 40 mat.
Flask, SQLAlchemy, JWT/Security, CORS, Caching+Redis, Celery, Vue+Router, Vuex/Pinia, Axios/fetch, Chart.js, Bootstrap.
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: requirements.txt + package.json top 6 open karke bolo.
Viva tipHar lib ek line why: CORS alag origin, Redis tez, Celery async, Chart.js dashboard.
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
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.
SimpleExaminer submitted ZIP chahta hai, local extra changes nahi.
Portal se ZIP download → extract → venv → pip install -r requirements.txt → flask run / python app.py.
Checksum maange to hash match karke dikhao. Camera/OPPE setup unke instructions.
Linux/Mac: paths, gunicorn; Windows paths alag ho to relative paths use karo.
Do browsers: admin + user parallel demo impressive lagta 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
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
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
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
SimpleORM = Object Relational Mapping. Database tables ko Python classes/objects se map karta hai, raw SQL kam likhni padti hai.
Bina ORM: cursor.execute('SELECT * FROM user WHERE id=?', [5])
ORM se: User.query.get(5) ya db.session.get(User, 5)
Example model
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(120), unique=True)FaydePython mein soch sakte ho, SQL injection se protection (parameterized), relationships easy, DB switch thoda aasan.
Nuksaancomplex queries slow/abstract, seekhne ki layer extra, kabhi raw SQL phir bhi chahiye.
MAD1: SQLAlchemy (Flask-SQLAlchemy). Tables db.create_all() ya migrations se banti hain.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRelationships tables ko jodti hain taaki related data object se mil jaaye.
One-to-Many: User → kai Posts. posts = relationship('Post', backref='author'). FK post.user_id.
One-to-One: User → Profile. uselist=False + unique FK. Profile.user_id unique.
Many-to-Many: Student ↔ Drive. Junction/secondary table (student_id, drive_id).
Example 1-1:
class Profile(db.Model):
user_id = db.Column(db.Integer, db.ForeignKey('user.id'), unique=True)
user = db.relationship('User', back_populates='profile', uselist=False)1-M ko 1-1: child FK pe unique=True + uselist=False.
Parent-child: parent PK, child FK. Junction table extra columns bhi rakh sakti hai (applied_on).
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
SimpleApplication context app-level data (config, db), Request context ek HTTP request (request, session).
Request ke andar Flask khud context push karta hai. Scripts/shell mein db query ke liye:
with app.app_context():
User.query.all()app.app_context().push() same, lekin with better (cleanup).
current_app proxy current Flask app ki taraf. Factory pattern mein import app cycle avoid.
Request context ke bahar request.form error dega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleFlask session request-across data store karta hai, generally signed cookie mein.
session['user_id'] = user.id
uid = session.get('user_id')
session.clear() # logout
Type: dictionary-like (SecureCookieSession). SECRET_KEY se sign — tamper detect.
Store kahan: default client cookie. Server-side Redis/filesystem bhi laga sakte ho.
Browser storage: cookies, localStorage, sessionStorage. Session cookie tab-close pe jaa sakti hai.
Remember-me: permanent session ya alag token cookie.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleJinja2 Flask ka template engine hai. HTML ke andar Python-jaisa data print/loop/if kar sakte ho.
Bina Jinja har user ke liye alag HTML file. Jinja se ek template + data.
{{ user.name }} print, {% for x in items %} loop, {% if %} condition, {% extends %} layout.Example routereturn render_template('dash.html', treks=treks)
dash.html: {% for t in treks %}<li>{{ t.name }}</li>{% endfor %}
HTML files templates/ folder mein isliye kyunki Flask default wahan dhundhta hai. render_template Jinja ko run karta hai.
Boolean Jinja handle karta hai: {% if user.is_admin %}.
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
Definition style question: 1 line simple Hinglish + project example + mini code.
Template'X ka kaam Y hai. Mere project mein Z jagah use hua.'
Example'Session login state rakhta hai. session[user_id]=u.id login pe, logout pe session.clear().'
Agar topic Vue/Celery/Redis ho aur project mein nahi hai to sach bolo, theory example do.
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
Patternfilter query → template/JSON. Examiner jo entity bole us class ka naam use karo.
@app.route('/admin/blacklisted')
def blacklisted():
rows = User.query.filter_by(is_blacklisted=True).all()
return render_template('list.html', rows=rows)
JSON: return jsonify([{'id': r.id, 'name': r.name} for r in rows])
ID se: User.query.get_or_404(id)
Do filters: .filter(Drive.approved==False, Drive.title=='Data Scientist')Join example: students jinhone blacklisted company ke drive pe apply kiya — join Application-Drive-Company.
PUT@app.route('/x/<int:id>', methods=['PUT']) + request.get_json()
url param display: @app.route('/show/<int:id>') return render_template('show.html', id=id)
Form → next page: POST values render_template('out.html', **request.form)
Count: return str(User.query.filter_by(is_blacklisted=True).count())
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Patternfilter query → template/JSON. Examiner jo entity bole us class ka naam use karo.
@app.route('/admin/blacklisted')
def blacklisted():
rows = User.query.filter_by(is_blacklisted=True).all()
return render_template('list.html', rows=rows)
JSON: return jsonify([{'id': r.id, 'name': r.name} for r in rows])
ID se: User.query.get_or_404(id)
Do filters: .filter(Drive.approved==False, Drive.title=='Data Scientist')Join example: students jinhone blacklisted company ke drive pe apply kiya — join Application-Drive-Company.
PUT@app.route('/x/<int:id>', methods=['PUT']) + request.get_json()
url param display: @app.route('/show/<int:id>') return render_template('show.html', id=id)
Form → next page: POST values render_template('out.html', **request.form)
Count: return str(User.query.filter_by(is_blacklisted=True).count())
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Yeh live UI/CSS change hai. Examiner jo element bole uski CSS turant badlo.
Bootstrap class badlo (btn-primary → btn-success, bg-dark → bg-warning) ya inline style='color:red; background:#eee'.
Center: d-flex justify-content-center text-center. Navbar neeche: navbar fixed-bottom.
Example
<button class='btn btn-success' style='background:#16a34a'>Book</button>Pehle browser inspect karke class dhundo, phir template mein change karke refresh.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet