擅长:python、mysql、java
<p>您所要求的功能已经在Django通用视图中实现:</p>
<p><a href="https://github.com/django/django/blob/1.2.X/django/views/generic/create_update.py#L115" rel="nofollow">https://github.com/django/django/blob/1.2.X/django/views/generic/create_update.py#L115</a></p>
<p>您将在主模板中通过<a href="http://docs.djangoproject.com/en/1.2/ref/contrib/messages/#displaying-messages" rel="nofollow">displaying messages</a>看到这些消息。</p>