Skip to content

Commit d920639

Browse files
fix bug shop url
1 parent e22a263 commit d920639

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

server/shop/urls.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from django.urls import path
2+
from . import views
3+
4+
app_name = "shop"
5+
urlpatterns = [
6+
path("", views.shop_home, name="shop-home"),
7+
]

server/shop/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django.shortcuts import render
2-
from django.http import HttpResponse
2+
33
# Create your views here.
4-
def index(request):
5-
return HttpResponse("This is the shop index.")
4+
def shop_home(request):
5+
return render(request, 'shop/shop_home.html')

0 commit comments

Comments
 (0)