Always, your failure to stay focused comes from a lack of ability or desire to relentlessly remove the distractions around you. You gravitate towards these distractions for obvious reasons—they are distracting and keep you from doing the real work you need to do. They allow you to resist and feel somewhat productive while you’re at it.
You must not let resistance beat you, ever. You must not resort to escapism, ever. You must remove the distractions long before they tempt you.