-
1
Demo of AppTimes asked 4Official solution
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) LogoutViva tipBolte-bolte dikhao. Code tab kholna jab poochhein.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
2
make change- show password in red next to login button on navbarTimes asked 2Official solution
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
3
QuestionsTimes asked 4Official solution
SimpleTheory = concepts: ORM, MVC, auth vs authz, Jinja inheritance, sessions. 1-line def + project example.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
4
- What is ORMTimes asked 2Official solution
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=5Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
5
- components of celeryTimes asked 1Official solution
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/awaitbrowser 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.'
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
6
- redis vs celeryTimes asked 2Official solution
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.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
7
- database structure - foreign keys, impact of deleting record which other record point to as foreign keyTimes asked 2Official solution
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)Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
8
- what changes will you need to do to move to postgres from sqliteTimes asked 2Official solution
SimpleSQLite file-based DB — setup easy, MAD1 ke liye perfect. Production heavy traffic pe Postgres better.
Example
SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db'Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet