from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin

from store.views import ProductCatalogue, ProductList

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', ProductList.as_view(), name='home'),
    url(r'^catalogue/$', ProductCatalogue.as_view(), name='catalogue'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin

from store.views import ProductList

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', ProductList.as_view(), name='home'),
    url(r'^products/', include('store.urls', namespace='products')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Move catalogue to products URL namespace
Move catalogue to products URL namespace

  from django.conf import settings
  from django.conf.urls import include, url
  from django.conf.urls.static import static
  from django.contrib import admin
  
- from store.views import ProductCatalogue, ProductList
+ from store.views import ProductList
  
  urlpatterns = [
      url(r'^admin/', include(admin.site.urls)),
      url(r'^$', ProductList.as_view(), name='home'),
-     url(r'^catalogue/$', ProductCatalogue.as_view(), name='catalogue'),
+     url(r'^products/', include('store.urls', namespace='products')),
  ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
Move catalogue to products URL namespace
## Code Before:
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin

from store.views import ProductCatalogue, ProductList

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', ProductList.as_view(), name='home'),
    url(r'^catalogue/$', ProductCatalogue.as_view(), name='catalogue'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

## Instruction:
Move catalogue to products URL namespace
## Code After:
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin

from store.views import ProductList

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', ProductList.as_view(), name='home'),
    url(r'^products/', include('store.urls', namespace='products')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
