Sankofa Journal Step 2: Addresses

Design the URLs for the journal before writing any views: a list of posts, a single post, posts by tag, and posts by author. Write them down as addresses first and read them aloud. A good address describes what is there and a person could guess it. Then create posts/urls.py with app_name set, include it from the project urls.py, and give every route a name. Write one placeholder view per route that returns an HttpResponse with its own name in it, so you can visit each address and confirm the routing before anything else exists.

SANKOFA SANDBOX
loading editor…
Your turn → Work through it step by step. This is a piece of the course project, not a throwaway exercise.

Built it in both languages?

Mark it done once your Python and JavaScript versions both run correctly. Honesty here is what makes the dashboard useful to you.

← BackNext: Module 3: Views →