S
S
Sanche11112017-09-21 17:18:10
Django
Sanche1111, 2017-09-21 17:18:10

Creation of the first site. EXPLAIN?

Zdarova People, I have a problem, I can't access the local site.
I looked at the tutorial on how to create a regular site, but I got completely confused in the Url, I seem to understand the top, but still, it’s far from complete understanding, since it doesn’t go to the local server. even I was wiser there, please, EXPLAIN what and how and why, who, of course, has time. but I can't fully understand it myself. here are the screenshotsa8fbb483f8cb43e4a1df4cf9dbad3049.jpgb7fa3d34026e4e428b9a9afbcac945b0.jpgd7a5613ee1be41458370ab04ce90423b.jpg52cd686e369c499e8fb0afb144f24f00.jpg4cff75b6cb5a438184bd024844ac59ee.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilyas, 2017-09-21
@id2669099

change in views.py

def sait(request):
    return render(request, 'templates/sait.sait.html', locals())

on the
def sait(request):
    return render(request, 'sait/sait.html')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question