`def title(request, name):
filename = f"templates/encylopedia/{name}.html"
content = markdown2.markdown_path(f"entries/{name}.md")
if default_storage.exists(filename) == False:
default_storage.save(filename, ContentFile(content))
return render(request, filename)`
Hello, I am taking CS50 Web development. In project 1, I converted md file into html using this code.but it render with html tag in it also not saving file
Aucun commentaire:
Enregistrer un commentaire