If you specify your branch and domain of the project, then it will be easier to guide you. I suppose you are in your final year of your Masters and unable to make the proper utilisation of time. In engineering, a lot of subjects are covered in only the basic level,. for example C, Java programming for cse students as time is limited due to the semester format.
I would suggest that you first find out your domain of study, and try to cover up the basics first before starting on your project.
For example, if you are a cse student and your project is an online shopping website then you need to only concentrate on web programming basics and the programming language of your choice for coding the project. The same concept follows for other branch students too.
Next, you should choose a very experienced guide who has real on-site experience in that domain to go on the right track for your project or thesis.
You can also search for all the related content online and practice coding, for example, on your laptop and try to build small webpages.
Next, try something more difficult and aim to finish your seminars and presentations in a thorough manner.
Getting diverted is very easy, but if you plan it out properly and choose a suitable guide and mentors, you can turn your project into a success.
"If things go wrong, don’t go with them"