Django-personal-website | Portfolio website with Django on a backend | Portfolio library
kandi X-RAY | Django-personal-website Summary
kandi X-RAY | Django-personal-website Summary
Portfolio website with Django on a backend
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Django-personal-website
Django-personal-website Key Features
Django-personal-website Examples and Code Snippets
Community Discussions
Trending Discussions on Django-personal-website
QUESTION
I'm trying to return the readtime of the body in a blog post. But I'm finding it difficult to do so with get_context_data()
This is the view function to create a post:
...ANSWER
Answered 2019-May-08 at 17:49I don't understand why you think this should be done inside get_context_data
. You appear to want to set the read_time on the Post object that you're creating as part of the form submission. So you should do that inside form_valid
, just like you set the user.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Django-personal-website
change into the new directory
Run the command python manage.py runserver
Open your web browser and enter the adress of your local server (usually its http://127.0.0.1:8000 )
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page