Changes between Initial Version and Version 1 of Ticket #31964


Ignore:
Timestamp:
Aug 29, 2020, 6:14:39 AM (4 years ago)
Author:
Mariusz Felisiak
Comment:

You should use a namespaced URL, i.e. {% url 'E_shop:home-page' %}.

Please don't use Trac as a support channel. Closing per TicketClosingReasons/UseSupportChannels.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31964

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #31964 – Description

    initial v1  
    22
    33project url.py:
     4{{{
    45from django.contrib import admin
    56from django.urls import path, include
     
    1011    path('', include('E_shop.urls', namespace='E_shop')),
    1112]
    12 
     13}}}
    1314
    1415app url.py:
     16{{{
    1517from django.urls import path
    1618from . import views
     
    2325    path('product/<slug>/', views.ItemDetailView.as_view(), name='product-page')
    2426]
    25 
     27}}}
    2628views.py:
     29{{{
    2730from django.shortcuts import render
    2831from django.views.generic import ListView, DetailView
     
    4245def check_out(request):
    4346    return render(request, 'checkout.html')
    44 
    45 
     47}}}
    4648
    4749model.py:
     50{{{
    4851from django.db import models
    4952from django.conf import settings
     
    98101    def __str__(self):
    99102        return self.user.username
    100 
     103}}}
    101104html code
     105{{{
    102106<a class="nav-link waves-effect" href="{% url 'home-page'  %}">Home
     107}}}
Back to Top