old_contents: """studentsdb URL Configuration
  
  The `urlpatterns` list routes URLs to views. For more information please see:
      https://docs.djangoproject.com/en/1.9/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. Import the include() function: from django.conf.urls import url, include
      2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
  """
  from django.conf.urls import url
  from django.contrib import admin
  
  from students.views import students, groups
  
  urlpatterns = [
      
      # Students urls
      url(r'^$', students.students_list, name='home'),
      url(r'^students/add/$', students.students_add, 
          name='students_add'),
      url(r'^students/(?P<sid>\d+)/edit/$', students.students_edit,
          name='students_edit'),
      url(r'^students/(?P<sid>\d+)/delete/$', students.students_delete,
          name='students_delete'),
  
      # Groups urls
      url(r'^groups/$', groups.groups_list, name='groups'),
      url(r'^groups/add/$', groups.groups_add,
          name='group_add'),
      url(r'^groups/(?P<gid>\d+)/edit/$', groups.groups_edit,
          name='groups_edit'),
      url(r'^groups/(?P<gid>\d+)/delete/$', groups.groups_delete,
          name='groups_delete'),
  
      # Journal urls
  
      url(r'^admin/', admin.site.urls),
  ]
  
new_contents: """studentsdb URL Configuration
  
  The `urlpatterns` list routes URLs to views. For more information please see:
      https://docs.djangoproject.com/en/1.9/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. Import the include() function: from django.conf.urls import url, include
      2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
  """
  from django.conf.urls import url, patterns
  from django.contrib import admin
  from django.views import static
  
  from students.views import students, groups
  
  urlpatterns = [
      
      # Students urls
      url(r'^$', students.students_list, name='home'),
      url(r'^students/add/$', students.students_add, 
          name='students_add'),
      url(r'^students/(?P<sid>\d+)/edit/$', students.students_edit,
          name='students_edit'),
      url(r'^students/(?P<sid>\d+)/delete/$', students.students_delete,
          name='students_delete'),
  
      # Groups urls
      url(r'^groups/$', groups.groups_list, name='groups'),
      url(r'^groups/add/$', groups.groups_add,
          name='group_add'),
      url(r'^groups/(?P<gid>\d+)/edit/$', groups.groups_edit,
          name='groups_edit'),
      url(r'^groups/(?P<gid>\d+)/delete/$', groups.groups_delete,
          name='groups_delete'),
  
      # Journal urls
  
      url(r'^admin/', admin.site.urls),
  ]
  
  from .settings import MEDIA_ROOT, DEBUG
  
  if DEBUG:
      # Serv files from media folder
      urlpatterns += patterns('',
          url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
          'document_root': MEDIA_ROOT}))
subject: add path for MEDIA files