From 3da1aeed6bc1fc8a2d63d891742accf56b93175c Mon Sep 17 00:00:00 2001 From: Michael Harrison Date: Fri, 17 May 2024 17:20:03 -0500 Subject: [PATCH] Add news article template and Postman API docs --- README.md | 4 ++++ pages/templates/news/news_article.html | 30 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pages/templates/news/news_article.html diff --git a/README.md b/README.md index 9edc0ecbe..39c3a4bcb 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,10 @@ Run the tests: python3 manage.py test --settings=openstax.settings.test ``` +## Postman API Testing +To test the API, use can request access to the OpenStax Postman account. +The collection is available [here](https://openstax.postman.co/workspace/CMS~2390e38a-b720-4734-a409-7d279139e1b2/overview). + SQLite Support ======================= SQLite is supported as an alternative to PostgreSQL. In order to switch to SQLite, change the `DATABASES` setting diff --git a/pages/templates/news/news_article.html b/pages/templates/news/news_article.html new file mode 100644 index 000000000..9001f8015 --- /dev/null +++ b/pages/templates/news/news_article.html @@ -0,0 +1,30 @@ +{% load wagtailimages_tags wagtailcore_tags static %} + +{% image page.promote_image original as promote_image %} + + + + + {{ page.title }} + + + + + + + + + + + + + + + + + + + +{% block content %}{% endblock %} + +