Part 6 - Designing Our Blog
Getting Started
The Template For Creating
<form action="/blog/create" method="POST">
{{ csrf_field|safe }}
<input type="name" name="title">
<textarea name="body"></textarea>
</form>{% if auth() %}
<form action="/blog/create" method="POST">
{{ csrf_field|safe }}
<label> Title </label>
<input type="name" name="title"><br>
<label> Body </label>
<textarea name="body"></textarea>
<input type="submit" value="Post!">
</form>
{% else %}
<a href="/login">Please Login</a>
{% endif %}Static Files
The Controller For Creating And The Container
Last updated