from django.contrib import admin
from django.urls import path, include
from bboard.views import (
index,
get_test #test
)
from getcurrency.views import get_currency #app "getcurrency"
urlpatterns = [
path('', index),
path('bboard/', include('bboard.urls')),
path('admin/', admin.site.urls),
#TO САМОЕ?
path('test/', get_test), #test
#app "getcurrency"
path('currency/', include('getcurrency.urls')),
]
<form action="test" method="GET">
<button type="submit" name="testBtn">Submit</button>
</form>
def get_test(request):
test = 'TEST MESSGAE'
context = {'test' : test}
return render(request, 'bboard/test.html', context)