from django.conf.urls import patterns, include, url
from myuw_mobile.views.page import index, myuw_login
from myuw_mobile.views.api import StudClasScheCurQuar, TextbookCurQuar, InstructorContact

urlpatterns = patterns('myuw_mobile.views.page',
    url(r'login', 'myuw_login'),
    url(r'support', 'support'),
    url(r'^visual', 'index'),
    url(r'^textbooks', 'index'),
    url(r'^instructor', 'index'),
    url(r'^links', 'index'),
    url(r'^$', 'index'),
    url(r'^api/v1/schedule/current/$', StudClasScheCurQuar().run),
    url(r'^api/v1/books/current/$', TextbookCurQuar().run),
    url(r'^api/v1/person/(?P<regid>.*)$', InstructorContact().run),
)


from django.conf.urls import patterns, include, url
from myuw_mobile.views.page import index, myuw_login
from myuw_mobile.views.api import StudClasScheCurQuar, TextbookCurQuar, InstructorContact

urlpatterns = patterns('myuw_mobile.views.page',
    url(r'login', 'myuw_login'),
    url(r'support', 'support'),
    url(r'^visual', 'index'),
    url(r'^textbooks', 'index'),
    url(r'^instructor', 'index'),
    url(r'^links', 'index'),
    url(r'^$', 'index'),
)

urlpatterns += patterns('myuw_mobile.views.api',
    url(r'^api/v1/books/current/$', TextbookCurQuar().run),
    url(r'^api/v1/schedule/current/$', StudClasScheCurQuar().run),
    url(r'^api/v1/person/(?P<regid>.*)$', InstructorContact().run),
)

Use a separate set of urlpatterns for each file in views.
Use a separate set of urlpatterns for each file in views.

  from django.conf.urls import patterns, include, url
  from myuw_mobile.views.page import index, myuw_login
  from myuw_mobile.views.api import StudClasScheCurQuar, TextbookCurQuar, InstructorContact
  
  urlpatterns = patterns('myuw_mobile.views.page',
      url(r'login', 'myuw_login'),
      url(r'support', 'support'),
      url(r'^visual', 'index'),
      url(r'^textbooks', 'index'),
      url(r'^instructor', 'index'),
      url(r'^links', 'index'),
      url(r'^$', 'index'),
+ )
+ 
+ urlpatterns += patterns('myuw_mobile.views.api',
+     url(r'^api/v1/books/current/$', TextbookCurQuar().run),
      url(r'^api/v1/schedule/current/$', StudClasScheCurQuar().run),
-     url(r'^api/v1/books/current/$', TextbookCurQuar().run),
      url(r'^api/v1/person/(?P<regid>.*)$', InstructorContact().run),
  )
  
- 
Use a separate set of urlpatterns for each file in views.
## Code Before:
from django.conf.urls import patterns, include, url
from myuw_mobile.views.page import index, myuw_login
from myuw_mobile.views.api import StudClasScheCurQuar, TextbookCurQuar, InstructorContact

urlpatterns = patterns('myuw_mobile.views.page',
    url(r'login', 'myuw_login'),
    url(r'support', 'support'),
    url(r'^visual', 'index'),
    url(r'^textbooks', 'index'),
    url(r'^instructor', 'index'),
    url(r'^links', 'index'),
    url(r'^$', 'index'),
    url(r'^api/v1/schedule/current/$', StudClasScheCurQuar().run),
    url(r'^api/v1/books/current/$', TextbookCurQuar().run),
    url(r'^api/v1/person/(?P<regid>.*)$', InstructorContact().run),
)


## Instruction:
Use a separate set of urlpatterns for each file in views.
## Code After:
from django.conf.urls import patterns, include, url
from myuw_mobile.views.page import index, myuw_login
from myuw_mobile.views.api import StudClasScheCurQuar, TextbookCurQuar, InstructorContact

urlpatterns = patterns('myuw_mobile.views.page',
    url(r'login', 'myuw_login'),
    url(r'support', 'support'),
    url(r'^visual', 'index'),
    url(r'^textbooks', 'index'),
    url(r'^instructor', 'index'),
    url(r'^links', 'index'),
    url(r'^$', 'index'),
)

urlpatterns += patterns('myuw_mobile.views.api',
    url(r'^api/v1/books/current/$', TextbookCurQuar().run),
    url(r'^api/v1/schedule/current/$', StudClasScheCurQuar().run),
    url(r'^api/v1/person/(?P<regid>.*)$', InstructorContact().run),
)
