Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add views similar to django like structure #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vrongmeal
Copy link

No description provided.

@wangzitian0
Copy link
Collaborator

@vrongmeal Thank you for your work.
I think gin was more likely to Flask, installed of Django.
Django offer us a Generic editing views https://docs.djangoproject.com/zh-hans/2.1/ref/class-based-views/generic-editing/, and then we could inherit the view class in view.py. But we don't have that or golang interface. Why we need split them?

@vrongmeal
Copy link
Author

This sample application seemed quite similar to that of any Django app. Even I think gin is more like Flask but architecture of this app seemed quite similar to that of Django or I should say the MVT architecture. Also, I felt there is no harm in keeping different things in separate files. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants