Commit f681c9ca authored by grisel-davy's avatar grisel-davy
Browse files

Configuration des urls et des templates dans settings

parent 8ea9400b
<center> Winaps Is Not A Positiong System! </center>
......@@ -14,10 +14,12 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
from django.contrib import admin
from django.urls import include, path
from django.urls import include, path, re_path
from . import views
urlpatterns = [
re_path('^send\/\?.+$', views.receive, name='POST request'),
from django.shortcuts import render
def index(request):
"""Index du site"""
return render(request,'winaps/index.html',{})
def receive(request):
"""Reception des request POST et utilisation des données"""
test = request.POST.get("text")
context = {'text':text}
return render(request,'winaps/reception.html')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment