Login to add a question
Please login from student email id only (@ds.study.iitm.ac.in).
Student Google login
-
1
Asked to run the code , after that asked questions about validation in product editing and purchasing , asked the base class of exception handling in python , how to validate the celery task which is long running file and when the user logs out or when the token gets expired , how to handle this celery task . What's the default time of authentication token. Differences between redis cache and memcache . Purpose of redis . Asked about swapping of decorators in backend .Times asked 1Official solution
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 wrapperCommunity answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet