Changes between Initial Version and Version 1 of Ticket #31964
- Timestamp:
- Aug 29, 2020, 6:14:39 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31964
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #31964 – Description
initial v1 2 2 3 3 project url.py: 4 {{{ 4 5 from django.contrib import admin 5 6 from django.urls import path, include … … 10 11 path('', include('E_shop.urls', namespace='E_shop')), 11 12 ] 12 13 }}} 13 14 14 15 app url.py: 16 {{{ 15 17 from django.urls import path 16 18 from . import views … … 23 25 path('product/<slug>/', views.ItemDetailView.as_view(), name='product-page') 24 26 ] 25 27 }}} 26 28 views.py: 29 {{{ 27 30 from django.shortcuts import render 28 31 from django.views.generic import ListView, DetailView … … 42 45 def check_out(request): 43 46 return render(request, 'checkout.html') 44 45 47 }}} 46 48 47 49 model.py: 50 {{{ 48 51 from django.db import models 49 52 from django.conf import settings … … 98 101 def __str__(self): 99 102 return self.user.username 100 103 }}} 101 104 html code 105 {{{ 102 106 <a class="nav-link waves-effect" href="{% url 'home-page' %}">Home 107 }}}