from django.conf.urls.defaults import *

from shortwave.views import wave_list, wave_detail


urlpatterns = patterns('',
    url(r'^$', wave_list, name='shortwave-wave-list'),
    url(r'^(?P<username>[-\w]+)/$', wave_detail, name='shortwave-wave-detail'),
)

from django.conf.urls.defaults import *

from shortwave.views import wave_list, wave_detail


urlpatterns = patterns('',
    url(r'^$',
        wave_list,
        name='shortwave-wave-list',
    ),
    url(r'^(?P<username>[-\w]+)/$',
        wave_detail,
        name='shortwave-wave-detail',
    ),
)

Format URL patterns into more readable form.
Format URL patterns into more readable form.

  from django.conf.urls.defaults import *
  
  from shortwave.views import wave_list, wave_detail
  
  
  urlpatterns = patterns('',
-     url(r'^$', wave_list, name='shortwave-wave-list'),
-     url(r'^(?P<username>[-\w]+)/$', wave_detail, name='shortwave-wave-detail'),
+     url(r'^$',
+         wave_list,
+         name='shortwave-wave-list',
+     ),
+     url(r'^(?P<username>[-\w]+)/$',
+         wave_detail,
+         name='shortwave-wave-detail',
+     ),
  )
  
Format URL patterns into more readable form.
## Code Before:
from django.conf.urls.defaults import *

from shortwave.views import wave_list, wave_detail


urlpatterns = patterns('',
    url(r'^$', wave_list, name='shortwave-wave-list'),
    url(r'^(?P<username>[-\w]+)/$', wave_detail, name='shortwave-wave-detail'),
)

## Instruction:
Format URL patterns into more readable form.
## Code After:
from django.conf.urls.defaults import *

from shortwave.views import wave_list, wave_detail


urlpatterns = patterns('',
    url(r'^$',
        wave_list,
        name='shortwave-wave-list',
    ),
    url(r'^(?P<username>[-\w]+)/$',
        wave_detail,
        name='shortwave-wave-detail',
    ),
)
