diff --git a/boofilsic/urls.py b/boofilsic/urls.py index 50c1acdc..43778b6f 100644 --- a/boofilsic/urls.py +++ b/boofilsic/urls.py @@ -25,6 +25,7 @@ urlpatterns = [ path('users/', include('users.urls')), path('books/', include('books.urls')), path('movies/', include('movies.urls')), + path('announcement/', include('management.urls')), path('', include('common.urls')), ] diff --git a/books/templates/books/create_update.html b/books/templates/books/create_update.html index a6c9427c..fdd7ec61 100644 --- a/books/templates/books/create_update.html +++ b/books/templates/books/create_update.html @@ -12,8 +12,6 @@
{{ ann.content | truncate:200 }}
+{{ form.content }}
+ + {{ form.media }} +{{ announcement.get_plain_content }}
+{% trans '暂无公告' %}
+ {% endfor %} +