Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Basic homepage model. #2

Merged
merged 2 commits into from
Aug 25, 2016
Merged

Basic homepage model. #2

merged 2 commits into from
Aug 25, 2016

Conversation

GabeIsman
Copy link
Contributor

Add and hook up the basic fields for the homepage.

main_title = models.CharField(max_length=50, default="Every news site should be secure.")
sub_title = models.CharField(max_length=50, default="It's critical for both journalists and readers.")
how_header = models.CharField(max_length=50, default="Switching to HTTPS is easier than ever")
why_header = models.CharField(max_length=50, default="Encryption protects your readers")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it feels a little weird to me to use the placeholder text from the design mockups as default values in the database schema (separation of concerns?) but I think it's ok for now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I agree that it feels weird. However, it really simplifies what you have to do to get a development environment or new install up and running.

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

Successfully merging this pull request may close these issues.

2 participants