Created
January 24, 2017 06:23
-
-
Save LuqiPan/ca77d4320e7007bc4822951efb47b5ed to your computer and use it in GitHub Desktop.
Log Driven Development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def login(login, password): | |
# ... | |
if request.POST['VIP_KEY'] == '5fa3e7a21e34714b44720836573a71ce': | |
request.session['is_vip'] = True | |
# log_helper.log method accept | |
log_helper.log('vip_log', {'is_vip': True, 'user_id': user.id}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment