The best method that worked for me:

Change your location. Notice how your brain begins to change as you distance yourself from your daily distractions.

Practical:

- Book a flight to Europe (if you're in the US) for two weeks. Or book a flight to the US (if you're in Europe) for two weeks.

- Bring your laptop.

- Set a deadline for your project on the tenth day of your trip.