Skip to content

Blog post without a picture results in ValueError #11

@Ivansstyle

Description

@Ivansstyle

When posting a blog post without a picture, Django crashes with ValueError: The 'image' attribute has no file associated with it.
Maybe worth checking if a picture is present to display it or not, or otherwise display something else?
file: blog.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions