We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Home.html
By {{ post.author }} on {{ post.date_posted }}
{{ post.content }}
Blog views.py from django.shortcuts import render
posts = [ { 'author': 'CoreyMS', 'title': 'Blog Post One', 'content': 'First Blog Content Post', 'date_posted': 'August 27,2018' }, { 'author': 'Jane Doe', 'title': 'Blog Post Two', 'content': 'Second Blog Content Post', 'date_posted': 'August 28,2018' } ]
def home(request): context = { 'posts':posts } return render(request, 'blog/home.html, context)
def about(request): return render(request, 'blog/about.html')
I just get a blank white page but no errors Please Help!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Home.html
<title></title> {% for post in posts %}{{ post.title }}
By {{ post.author }} on {{ post.date_posted }}
{{ post.content }}
{% endfor %}Blog views.py
from django.shortcuts import render
Create your views here.
posts = [
{
'author': 'CoreyMS',
'title': 'Blog Post One',
'content': 'First Blog Content Post',
'date_posted': 'August 27,2018'
},
{
'author': 'Jane Doe',
'title': 'Blog Post Two',
'content': 'Second Blog Content Post',
'date_posted': 'August 28,2018'
}
]
def home(request):
context = {
'posts':posts
}
return render(request, 'blog/home.html, context)
def about(request):
return render(request, 'blog/about.html')
I just get a blank white page but no errors Please Help!
The text was updated successfully, but these errors were encountered: