old_contents: """chiphub URL Configuration
  
  The `urlpatterns` list routes URLs to views. For more information please see:
      https://docs.djangoproject.com/en/1.8/topics/http/urls/
  Examples:
  Function views
      1. Add an import:  from my_app import views
      2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
  Class-based views
      1. Add an import:  from other_app.views import Home
      2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
  Including another URLconf
      1. Add an import:  from blog import urls as blog_urls
      2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
  """
  from django.conf.urls import include, url
  from django.contrib import admin
  import chatroom.views as chatroom
  import digikey.views as digikey
  import login.views as login
  import main.views as main
  
  urlpatterns = [
      url(r'^admin/', include(admin.site.urls)),
  
      # Misc
      url(r'^$', main.index),
      url(r'^faq/$', main.faq),
      url(r'^exchange/$', main.exchange),
      url(r'^about_us/$', main.about_us),
  
      # ChatRoom
      url(r'^append/$', chatroom.append),
      url(r'^retreive/$', chatroom.retreive),
      url(r'^chatroom/$', chatroom.chatroom),
  
      # Login
      url(r'^profile/$', login.profile),
      url(r'^update_profile/$', login.update_profile),
      url(r'^list_order/$', chatroom.list_order),
  
      url(r'^islogin/$', login.isLogin),
      url(r'^logout/$', login.logout),
  
      # Google OAuth
      url(r'^google_login/$', login.google_login),
      url(r'^google_callback/$', login.google_callback),
  
      # Digikey
      url(r'^progress/$', digikey.progress_page),
      url(r'^order/$', digikey.order_page),
  
      url(r'^/digikey/order/$', digikey.order_digikey),
      url(r'^/digikey/pay/$', digikey.apply_paying_info),
      url(r'^/digikey/price/$', digikey.get_digikey_price),
      url(r'^/digikey/rally/$', digikey.get_current_rally),
      url(r'^/digikey/groups/$', digikey.get_groups),
      url(r'^/digikey/group_info/$', digikey.get_group_info),
      url(r'^/digikey/user_history/$', digikey.get_user_orders),
      url(r'^/digikey/order_info/$', digikey.get_single_order_info),
  ]
  
new_contents: """chiphub URL Configuration
  
  The `urlpatterns` list routes URLs to views. For more information please see:
      https://docs.djangoproject.com/en/1.8/topics/http/urls/
  Examples:
  Function views
      1. Add an import:  from my_app import views
      2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
  Class-based views
      1. Add an import:  from other_app.views import Home
      2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
  Including another URLconf
      1. Add an import:  from blog import urls as blog_urls
      2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
  """
  from django.conf.urls import include, url
  from django.contrib import admin
  import chatroom.views as chatroom
  import digikey.views as digikey
  import login.views as login
  import main.views as main
  
  urlpatterns = [
      url(r'^admin/', include(admin.site.urls)),
  
      # Misc
      url(r'^$', main.index),
      url(r'^faq/$', main.faq),
      url(r'^exchange/$', main.exchange),
      url(r'^about_us/$', main.about_us),
  
      # ChatRoom
      url(r'^append/$', chatroom.append),
      url(r'^retreive/$', chatroom.retreive),
      url(r'^chatroom/$', chatroom.chatroom),
  
      # Login
      url(r'^profile/$', login.profile),
      url(r'^update_profile/$', login.update_profile),
      url(r'^list_order/$', chatroom.list_order),
  
      url(r'^islogin/$', login.isLogin),
      url(r'^logout/$', login.logout),
  
      # Google OAuth
      url(r'^google_login/$', login.google_login),
      url(r'^google_callback/$', login.google_callback),
  
      # Digikey
      url(r'^progress/$', digikey.progress_page),
      url(r'^order/$', digikey.order_page),
  
      url(r'^digikey/order/$', digikey.order_digikey),
      url(r'^digikey/pay/$', digikey.apply_paying_info),
      url(r'^digikey/price/$', digikey.get_digikey_price),
      url(r'^digikey/rally/$', digikey.get_current_rally),
      url(r'^digikey/groups/$', digikey.get_groups),
      url(r'^digikey/group_info/$', digikey.get_group_info),
      url(r'^digikey/user_history/$', digikey.get_user_orders),
      url(r'^digikey/order_info/$', digikey.get_single_order_info),
  ]
  
subject: remove / which cause 404