Purgeable / full-app

Keep all functionality for (parsers + db + frontend API) inside one Django project.
0 stars 1 forks source link

isolate User and Group from Datapoints #5

Closed epogrebnyak closed 7 years ago

epogrebnyak commented 7 years ago

User, Group are infrastructure classes, I woudl prefer to see them outside of the .api folder, and leave there only what is related to Datapoints. Even though User, Group are small, better isolate them

Possible solutions:

Правда я думаю скорее это подмодуль. Вообще каждая модель будет иметь соответствующий модуль состоящий из model-serializer-view

epogrebnyak commented 7 years ago

I like user and Group are isolated now, but for future refactoring -- maybe we can consider templating the project under https://github.com/osminogin/cookiecutter-django-ultimate or some of the conventions proposed.

The reason I like the template is that it promises us the following:

There are other templates as https://github.com/pydanny/cookiecutter-django, but one above seems cleanest.

@tinivir - your opinion?

epogrebnyak commented 7 years ago

I think we need settings branching as in https://stackoverflow.com/questions/1626326/how-to-manage-local-vs-production-settings-in-django/15325966#15325966

tinivir commented 7 years ago

Cookiecutter - ok. We will do it after our project will be really stable I think.

epogrebnyak commented 7 years ago

Let me put enw separate issues and close this. I agree template will be a step good for a stable version.