and if not, from security perspective what should I do - besides disabling the debug mode - when development is finished?
It’s a really bad idea.
One mistake at the wrong time, and you might leak all your data, expose your server to be hacked, accidentally delete all your code or data, …
Don’t do it. Use a PaaS instead if you’re just learning. Check out the djangogirls tutorial.