Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def choose(request): return render(request,'ch/main.html') def lav1(request): return render(request,'ch/lavr/lav1.html') def lav05(request): return render(request,'ch/lavr/lav05.html') def lav03(request): return render(request,'ch/lavr/lav03.html') def apple1(request): return render(request,'ch/lavr/apple1.html') def apple05(request): return render(request,'ch/lavr/apple05.html') def apple03(request): return render(request,'ch/lavr/apple03.html') def chili1(request): return render(request,'ch/lavr/chili1.html') def chili05(request): return render(request,'ch/lavr/chili05.html') def chili03(request): return render(request,'ch/lavr/chili03.html') def sahar1(request): return render(request,'ch/lavr/sahar1.html') def sahar05(request): return render(request,'ch/lavr/sahar05.html') def sahar03(request): return render(request,'ch/lavr/sahar03.html')
from django.conf.urls import include, url from choose import views urlpatterns = [ # Examples: # url(r'^$', 'sites.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^$', views.choose), url(r'^/lavs1$', views.lav1,name="lav1"), url(r'^/lav05$', views.lav05,name="lav05"), url(r'^/lav03$', views.lav03,name="lav03"), url(r'^/apple1$', views.apple1,name="apple1"), url(r'^/apple05$', views.apple05,name="apple05"), url(r'^/apple03$', views.apple03,name="apple03"), url(r'^/sahar1$', views.sahar1,name="sahar1"), url(r'^/sahar05$', views.sahar05,name="sahar05"), url(r'^/sahar03$', views.sahar03,name="sahar03"), url(r'^/chili1$', views.chili1,name="chili1"), url(r'^/chili05$', views.chili05,name="chili05"), url(r'^/chili03$', views.chili03,name="chili03"), ]