demo-hackernews-with-django.../app/web/views.py

9 lines
185 B
Python
Raw Normal View History

2021-06-22 15:43:26 +02:00
from django.shortcuts import render
def home(request):
2021-06-23 15:10:44 +02:00
return render(request, 'pages/list.html', {})
2021-06-22 15:43:26 +02:00
def add_news(request):
return render(request, 'pages/add-news.html', {})