TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rupesh N
NA
380
46.8k
Django - Multi return values in one function
Jan 3 2020 9:44 PM
hi,
I design cms design in the company profile website in Django with sqlite3.
5 pages on the website:
index, about, services, projects, contact.
the problem is,
to display easily DB to frontend expect index page. because. all mixed retrieve DB. just main or sample of the display index page. like., about, service, project, and contact.
like,.: def index(request):
content = {}
return render(request, 'index.html', {})
i want like or how to declare and retrun ?
def home(request):
content = { about, services(4 services display), project (2 projects display), contact}
return render(request, 'index.html', {})
but, how to so many return values in one function?
please help me.
Reply
Answers (
0
)
Connect to MySQL database from Jupyter notebook
I would like to remove special characters from a string