-
1
Told me to make a change in the codeTimes asked 2
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
Proctor workspace
No student reviews for this proctor 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
SimpleBeat clock hai, Worker haath hai. Clock kaam nahi karti, haath nahi sochte kab.
Worker: @celery.task execute. Beat: crontab padhke due time pe queue mein daal.
Sirf worker = scheduled nahi. Sirf beat = queue bhar jaaye, koi run nahi.
Dono ke saath redis-server. Logs mein 'Sending due task' Beat, 'Task succeeded' Worker.
Example
celery -A app.celery worker -l info
celery -A app.celery beat -l infoProject example: daily_reminder Beat 18:00. Worker MailHog. Export worker-only (button).
Viva tipSirf worker = scheduled jobs nahi chalenge. Sirf beat = queue bhar jaaye, koi run nahi karega.
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 tour + draw. Design decisions unique/cascade.
SQL models = same.
ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.
class User(db.Model) + Column + relationship. query.filter_by / db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.
SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.
Bookings source of truth DB, Redis cache copy.
Project example: 3 relationships explain.
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
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
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
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
SimpleClient (Flask .delay), Broker (Redis), Worker. Optional Beat + result backend.
Viva line'Flask produce, Redis transport, worker consume.'
include task modules, app context ke andar DB session. Windows pe eventlet/gevent issues — docs se command.
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: create_app ke baad celery.conf.update. tasks import taaki register hon.
Viva tip
Viva line'Flask task produce karta hai, Redis transport, worker consume.'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRedis box hai, Celery us box se kaam uthane wala worker hai — same cheez nahi.
Redis: store (cache keys) + queue (broker lists).
Celery: Python library jo tasks define karti hai, .delay() se queue mein daalti hai, worker execute karta hai.
Dono localhost pe ho sakte hain. Alag Redis DB index use karo. Redis band = cache miss + Celery stuck.
Example
Celery: broker_url='redis://localhost:6379/0'
Cache: CACHE_REDIS_URL='redis://localhost:6379/1'Project example: export_csv.delay(user_id) Flask se. Worker Redis se task uthata hai, CSV+email. Cache alag keys venues.
Viva tipAgar possible ho to cache db=1, broker db=0 — keys mix nahi hoti.
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
SimpleSQLite file-based DB — setup easy, MAD1 ke liye perfect. Production heavy traffic pe Postgres better.
Example
SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db'
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
Simplemodels.py tour + draw. Design decisions unique/cascade.
SQL models = same.
ORM objects ko tables se map karta hai — raw SQL kam. SQLAlchemy MAD2 default.
class User(db.Model) + Column + relationship. query.filter_by / db.session.get. Fayda: portable SQLite→Postgres, injection se safer. Nuksaan: N+1, complex SQL.
SQLite file, zero server — course friendly. Postgres scale. Relationships: FK, backref, lazy/joinedload, cascade on delete. Constraints unique/not null integrity.
Bookings source of truth DB, Redis cache copy.
Project example: 3 relationships explain.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleDon't store plain. If insist dummy from form v-model not DB. Better won't display secrets masked. Display password red next to login on navbar.
Weird live. Security comment.
Look: Bootstrap utility classes (margin m-3, flex, grid) ya khud CSS. Responsive = media query / Bootstrap breakpoints se mobile.
Vue scoped style leak nahi. :class binding. Examiner colour/button live change maange to DevTools nahi, source class dikhao.
CSS ≠ Bootstrap. Bootstrap CSS+JS framework. Inline style last resort.
Project example: Don't dump DB password.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleListen restate smallest diff run explain. Docs if they say. Make requested code change.
Don't refactor universe.
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: Confirm requirement.
Project example: Confirm requirement.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleORM = translator. Python object bolo, woh SQL mein baat kare.
Object Relational Mapper. Class User ↔ table user. Raw SQL kam.
SQLAlchemy MAD1/MAD2. Fayde: portable SQLite→Postgres, relationships, parameterized queries (injection kam).
Nuksaan: N+1, hidden SQL, complex reports pe raw better.
Direct sqlite3 se SQLAlchemy isliye: models, switch DB, safer queries.
Example
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
email = db.Column(db.String(128), unique=True)
User.query.filter_by(email='a@b.com').first()Project example: models.py db.Model. resources User.query.filter_by. Koi f-string SQL nahi.
Viva tipFayde: safe-ish, portable (SQLite→Postgres). Nuksaan: complex queries, N+1, leaky abstractions. Direct SQLite se SQLAlchemy isliye: models + injection protection + switch DB.
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
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
SimpleDepends ondelete: CASCADE children jaate, RESTRICT fail, SET NULL.
Bookings/venue: business. Soft-delete safer. Doctor deleted similarly.
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: Explain YOUR models ondelete. Don't guess opposite cascade.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
Simple3.5–4/5 + why: core done, tests/UI missing. 5/5 overclaim.
Justify. Enjoy frontend vs backend honest.
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: Weak: celery demo flaky / UI.
Project example: Weak: celery demo flaky / UI.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleClient (Flask .delay), Broker (Redis), Worker. Optional Beat + result backend.
Viva line'Flask produce, Redis transport, worker consume.'
include task modules, app context ke andar DB session. Windows pe eventlet/gevent issues — docs se command.
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: create_app ke baad celery.conf.update. tasks import taaki register hon.
Viva tip
Viva line'Flask task produce karta hai, Redis transport, worker consume.'
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleRedis box hai, Celery us box se kaam uthane wala worker hai — same cheez nahi.
Redis: store (cache keys) + queue (broker lists).
Celery: Python library jo tasks define karti hai, .delay() se queue mein daalti hai, worker execute karta hai.
Dono localhost pe ho sakte hain. Alag Redis DB index use karo. Redis band = cache miss + Celery stuck.
Example
Celery: broker_url='redis://localhost:6379/0'
Cache: CACHE_REDIS_URL='redis://localhost:6379/1'Project example: export_csv.delay(user_id) Flask se. Worker Redis se task uthata hai, CSV+email. Cache alag keys venues.
Viva tipAgar possible ho to cache db=1, broker db=0 — keys mix nahi hoti.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet
SimpleBeat clock hai, Worker haath hai. Clock kaam nahi karti, haath nahi sochte kab.
Worker: @celery.task execute. Beat: crontab padhke due time pe queue mein daal.
Sirf worker = scheduled nahi. Sirf beat = queue bhar jaaye, koi run nahi.
Dono ke saath redis-server. Logs mein 'Sending due task' Beat, 'Task succeeded' Worker.
Example
celery -A app.celery worker -l info
celery -A app.celery beat -l infoProject example: daily_reminder Beat 18:00. Worker MailHog. Export worker-only (button).
Viva tipSirf worker = scheduled jobs nahi chalenge. Sirf beat = queue bhar jaaye, koi run nahi karega.
No replies yet
Open My solution to be the first to share yours.
Not submitted yet