diff --git a/bhtom2/bhtom_mymodule/__init__.py b/bhtom2/bhtom_mymodule/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bhtom2/bhtom_mymodule/urls.py b/bhtom2/bhtom_mymodule/urls.py new file mode 100644 index 0000000..0a8827b --- /dev/null +++ b/bhtom2/bhtom_mymodule/urls.py @@ -0,0 +1,9 @@ +from django.urls import path +from . import views + +app_name = 'bhtom_mymodule' + +urlpatterns = [ + path('list/', views.mymodule_list, name='list'), + path('details/', views.mymodule_details, name='details'), +] diff --git a/bhtom2/bhtom_mymodule/views.py b/bhtom2/bhtom_mymodule/views.py new file mode 100644 index 0000000..3d5091d --- /dev/null +++ b/bhtom2/bhtom_mymodule/views.py @@ -0,0 +1,7 @@ +from django.shortcuts import render + +def mymodule_list(request): + return render(request, 'bhtom_mymodule/list.html') + +def mymodule_details(request): + return render(request, 'bhtom_mymodule/details.html') diff --git a/bhtom2/static/oca_tom_image.jpg b/bhtom2/static/oca_tom_image.jpg new file mode 100644 index 0000000..420148c Binary files /dev/null and b/bhtom2/static/oca_tom_image.jpg differ diff --git a/bhtom2/templates/bhtom_common/base.html b/bhtom2/templates/bhtom_common/base.html index 94323cc..b8a225c 100644 --- a/bhtom2/templates/bhtom_common/base.html +++ b/bhtom2/templates/bhtom_common/base.html @@ -25,11 +25,11 @@ {% bootstrap_javascript jquery='True' %} -