import os
from django.conf import settings
from django.shortcuts import render
from django.templatetags.static import static

# Create your views here.
def index(request):
    path = settings.STATIC_ROOT
    print ("EEEEEEEEEE" + path)

    img_list = os.listdir(path + '\\images\\gallery')
    
    context = {'images' : img_list}
    return render(request, "photo/index.html", context)