eCommerce icon indicating copy to clipboard operation
eCommerce copied to clipboard

include app name

Open dauntlessnomad opened this issue 7 years ago • 3 comments

https://github.com/codingforentrepreneurs/eCommerce/blob/fc97ee8fd094a47aeb47ad7b25cf2d5a04c78fe8/src/ecommerce/urls.py url(r'^products/',include(('products.urls', 'products'), namespace='products')), showing error on django 2.0+ without the above change

dauntlessnomad avatar May 14 '18 10:05 dauntlessnomad

As Justin explains in his videos, the course was specifically written for the LTS version of Django (1.11). You can read here for more information and discussion.

RommelTJ avatar May 14 '18 15:05 RommelTJ

Remove the namespace parameter from the url and try to add

app_name = 'products'

in products->urls.py file.

vishalkallem avatar Jul 18 '18 15:07 vishalkallem

simply add the app_name = 'products' in the url.py of the product before the urlpatterns

shubham1811 avatar Jul 19 '18 03:07 shubham1811