
from django.conf.urls import url

from . import views, feeds


# URL patterns configuration
urlpatterns = (

    # License index page
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/$', views.license_detail, name='license_detail'),

    # Related articles feed
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/flux/$', feeds.LatestArticlesFeed(), name='latest_license_articles_rss'),
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/flux/atom/$', feeds.LatestArticlesAtomFeed(), name='latest_license_articles_atom'),
)


from django.conf.urls import url

from . import views, feeds


# URL patterns configuration
urlpatterns = (

    # License index page
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/$', views.license_detail, name='license_articles_detail'),

    # Related articles feed
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/flux/$', feeds.LatestArticlesForLicenseFeed(),
        name='latest_license_articles_rss'),
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/flux/atom/$', feeds.LatestArticlesForLicenseAtomFeed(),
        name='latest_license_articles_atom'),
)

Rework blog license add-on urls
Rework blog license add-on urls

  
  from django.conf.urls import url
  
  from . import views, feeds
  
  
  # URL patterns configuration
  urlpatterns = (
  
      # License index page
-     url(r'^(?P<slug>[-a-zA-Z0-9_]+)/$', views.license_detail, name='license_detail'),
+     url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/$', views.license_detail, name='license_articles_detail'),
  
      # Related articles feed
-     url(r'^(?P<slug>[-a-zA-Z0-9_]+)/flux/$', feeds.LatestArticlesFeed(), name='latest_license_articles_rss'),
-     url(r'^(?P<slug>[-a-zA-Z0-9_]+)/flux/atom/$', feeds.LatestArticlesAtomFeed(), name='latest_license_articles_atom'),
+     url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/flux/$', feeds.LatestArticlesForLicenseFeed(),
+         name='latest_license_articles_rss'),
+     url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/flux/atom/$', feeds.LatestArticlesForLicenseAtomFeed(),
+         name='latest_license_articles_atom'),
  )
  
Rework blog license add-on urls
## Code Before:

from django.conf.urls import url

from . import views, feeds


# URL patterns configuration
urlpatterns = (

    # License index page
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/$', views.license_detail, name='license_detail'),

    # Related articles feed
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/flux/$', feeds.LatestArticlesFeed(), name='latest_license_articles_rss'),
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/flux/atom/$', feeds.LatestArticlesAtomFeed(), name='latest_license_articles_atom'),
)

## Instruction:
Rework blog license add-on urls
## Code After:

from django.conf.urls import url

from . import views, feeds


# URL patterns configuration
urlpatterns = (

    # License index page
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/$', views.license_detail, name='license_articles_detail'),

    # Related articles feed
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/flux/$', feeds.LatestArticlesForLicenseFeed(),
        name='latest_license_articles_rss'),
    url(r'^(?P<slug>[-a-zA-Z0-9_]+)/articles/flux/atom/$', feeds.LatestArticlesForLicenseAtomFeed(),
        name='latest_license_articles_atom'),
)
