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

Replace home class-based view with function based view. #27

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

Conversation

smajda
Copy link
Contributor

@smajda smajda commented Oct 10, 2015

During our Saturday meeting we used this project and the home view as a simple "Intro to Django" view. Rather than digging right into the class-based view we currently use, we rewrote it as a function based view from scratch. For beginners, function-based views are much better.

I kept both views around in the file for reference, because that's nice to have.

Far easier to introduce to beginners to Django. Keeping both views
around because it's nice to have two identical views in both styles
to compare.
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.

1 participant