refactors load_sample_data.py for generating sample data
partially implements challenges view
Some notes:
There are sample json data in the PR, so that is why it has many changes.
I am aware of the repetition of the service files' create method. I will find a better way to achieve the same thing without repetition.
I commented-out some of the service files' create methods. I will replace them with the new methods.
I did not translate sign up and sign in views' template files to Jinja syntax because the UX designer might come up with a different UI. Therefore, sign in and sign up views throw error at the moment. If we agree on keeping this UI, I will translate the necessary parts ASAP.
This PR contains the code that:
load_sample_data.py
for generating sample dataSome notes:
create
method. I will find a better way to achieve the same thing without repetition.create
methods. I will replace them with the new methods.