Q:

Как задать css модели в Django?

models.py:
...
class Post(models.Model):
    title = models.CharField(max_length=250)
    author = models.ForeignKey(
        'auth.User',
        on_delete=models.CASCADE,
    )
    body = models.TextField()
    tags = models.CharField(max_length=50, default = " ")

    def __str__(self):
        return self.title
...

templates/newpost.html:
{% extends 'base.html' %}

{% block content %}
    <h1>New post</h1>
    <form action="" method="post">{% csrf_token %}
      {{ form.as_p }}
      <input type="submit" value="Save" />
    </form>
{% endblock content %}

views.py:
...
class BlogCreateView(CreateView):
    model = Post
    template_name = 'post_new.html'
    fields = ['title', 'author', 'body', 'tags']
...

Это выглядит ужасно. Как задать стиль?

A:

static/css/base.css:
...
#id_body{
    /*some style for the body of form*/
    ...

}
#id_title{
    /*some style for the title of form*/
    ...
}
#id_tags{...}
#id_author{...}
...

