fromdjango.contribimportadminfromdjango.urlsimportpath,include,re_pathfromdjango.views.genericimportTemplateViewfromdjango.contrib.authimportviewsasauth_viewsfromdjango.contrib.sitemapsimportGenericSitemap# new
fromdjango.contrib.sitemaps.viewsimportsitemap# new
fromface.viewsimporterror_500,error_404fromface.modelsimportPost
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you so much! I was really struggling to figure out why other blogs code snippets looked different. I will use that for my next blog!
It's easy with backtick and also will be useful for the readers so they can easily copy codes.
check more information for python code in markdown:
python-markdown.github.io/extensio...