from django.conf.urls import url

from . import views

urlpatterns = [
        url(r'^$', views.MainPage.as_view(), name='index'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/$', views.SessionPage.as_view(), 
            name='Session'),
        url(r'^GlobalMap/$', views.GlobalMap.as_view(), 
            name='GlobalMap'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/Map$', views.MapPage.as_view(), 
            name='Map'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/download$', views.download_file, 
            name='ses_down'),
]

from django.conf.urls import url

from . import views

urlpatterns = [
        url(r'^$', views.MainPage.as_view(), name='index'),
        url(r'^GlobalMap/$', views.GlobalMap.as_view(), 
            name='GlobalMap'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/$', views.SessionPage.as_view(), 
            name='Session'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/Map$', views.MapPage.as_view(), 
            name='Map'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/download$', views.download_file, 
            name='ses_down'),
]

Move global map url before session url.
gui: Move global map url before session url.

  from django.conf.urls import url
  
  from . import views
  
  urlpatterns = [
          url(r'^$', views.MainPage.as_view(), name='index'),
+         url(r'^GlobalMap/$', views.GlobalMap.as_view(), 
+             name='GlobalMap'),
          url(r'^(?P<ses_id>[a-zA-Z0-9]+)/$', views.SessionPage.as_view(), 
              name='Session'),
-         url(r'^GlobalMap/$', views.GlobalMap.as_view(), 
-             name='GlobalMap'),
          url(r'^(?P<ses_id>[a-zA-Z0-9]+)/Map$', views.MapPage.as_view(), 
              name='Map'),
          url(r'^(?P<ses_id>[a-zA-Z0-9]+)/download$', views.download_file, 
              name='ses_down'),
  ]
  
Move global map url before session url.
## Code Before:
from django.conf.urls import url

from . import views

urlpatterns = [
        url(r'^$', views.MainPage.as_view(), name='index'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/$', views.SessionPage.as_view(), 
            name='Session'),
        url(r'^GlobalMap/$', views.GlobalMap.as_view(), 
            name='GlobalMap'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/Map$', views.MapPage.as_view(), 
            name='Map'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/download$', views.download_file, 
            name='ses_down'),
]

## Instruction:
Move global map url before session url.
## Code After:
from django.conf.urls import url

from . import views

urlpatterns = [
        url(r'^$', views.MainPage.as_view(), name='index'),
        url(r'^GlobalMap/$', views.GlobalMap.as_view(), 
            name='GlobalMap'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/$', views.SessionPage.as_view(), 
            name='Session'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/Map$', views.MapPage.as_view(), 
            name='Map'),
        url(r'^(?P<ses_id>[a-zA-Z0-9]+)/download$', views.download_file, 
            name='ses_down'),
]
