Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.shortcuts import render
- from .models import Location
- def location_list(request):
- place = Location.objects.all()
- c = {
- 'places': place
- }
- return render(request, 'places/location_list.html', c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement