Category Archives: Flask

Avoid duplicate process copy through cron

Scenario: You are executing a background job for every x minuts periodically.The job execution time takes approximately y mins.Sometimes y > x. So, you are endup with multiple duplicate active process running at back. Effets: If duplicate process runs at … Continue reading

Posted in 10min, Flask, Python | Tagged , , | 2 Comments

Same Log messages multiple times in Python [issue]

The Mistake happened in my python loggers what ? I use Python/Flask framework to develop web applications. So, For my few usecase scripts, I have to use the logger to log the flow.I have created a common handler which workes … Continue reading

Posted in Flask, Python | Tagged , | 2 Comments

Weird thing to understand from mongoengine in Flask

Inital mongo collection I am creation a mongo dument in Flask using MongoEngine Object mapper.Simple, consider the collection name is TestMe and it has two fields (name, address). The name of the document is nava. from mongoengine import Document, connect, … Continue reading

Posted in Flask, Python | Tagged , | Leave a comment

Start the Captcha to Stop the Bot in Flask

Implementing reCaptcha in your form Objective We are going to learn How to add captcha field in your form to avoid the form being filled by bots.The example implementation is given in Flask.if you have some basic knowledge in python, … Continue reading

Posted in Flask, Python | Tagged , , | Leave a comment

Ajax search predictor in Angularjs

Dynamic question predictor in AngularJs Objective We are using Flask framework for our dynamic question predictor when the user starts typing question in html text field, we have to kick one ajax event to fetch the relevant responses to be … Continue reading

Posted in angularjs, Flask, Python, Ubuntu | Tagged , , , , | Leave a comment

Introspection of one simple github project

I had today few free hours..Are you free now? Recently I came across this project called sachintweets in github. I wanted to introspect the code to learn something from it.So, just a post like bookkeeping. Things I learned from github … Continue reading

Posted in Flask, General, Python | Tagged , , | Leave a comment

How to implement forgot password feature in Flask?

I am using Python, Flask, SqlAlchemy for my project which is being developed in Ubuntu 14.04. So, I am assuming you have the model called User which contains at least email address, password fields. So, it looks like, models.py class … Continue reading

Posted in Flask, General_Tech, Problems, Python, Ubuntu | Tagged , , | 2 Comments