from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views

from django.views.generic import TemplateView

from . import demo_urls

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', TemplateView.as_view(template_name="base/base.html")),
    url(r'^demo/', include(demo_urls)),
    url(r'^login/', auth_views.login, {'template_name': 'auth/login.html'}),
    url(r'^logout/', auth_views.logout, {'template_name': 'auth/logout.html'}),
]

from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views

from django.views.generic import TemplateView

from . import demo_urls
from votes import urls as votes_urls

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', TemplateView.as_view(template_name="base/base.html")),
    url(r'^demo/', include(demo_urls)),
    url(r'^(?P<system_name>[\w-]+)/', include(votes_urls)),
    url(r'^login/', auth_views.login, {'template_name': 'auth/login.html'}),
    url(r'^logout/', auth_views.logout, {'template_name': 'auth/logout.html'}),
]

Add votes URL scheme to main URL scheme
Add votes URL scheme to main URL scheme

  from django.conf.urls import include, url
  from django.contrib import admin
  from django.contrib.auth import views as auth_views
  
  from django.views.generic import TemplateView
  
  from . import demo_urls
+ from votes import urls as votes_urls
  
  urlpatterns = [
      url(r'^admin/', include(admin.site.urls)),
      url(r'^$', TemplateView.as_view(template_name="base/base.html")),
      url(r'^demo/', include(demo_urls)),
+     url(r'^(?P<system_name>[\w-]+)/', include(votes_urls)),
      url(r'^login/', auth_views.login, {'template_name': 'auth/login.html'}),
      url(r'^logout/', auth_views.logout, {'template_name': 'auth/logout.html'}),
  ]
  
Add votes URL scheme to main URL scheme
## Code Before:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views

from django.views.generic import TemplateView

from . import demo_urls

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', TemplateView.as_view(template_name="base/base.html")),
    url(r'^demo/', include(demo_urls)),
    url(r'^login/', auth_views.login, {'template_name': 'auth/login.html'}),
    url(r'^logout/', auth_views.logout, {'template_name': 'auth/logout.html'}),
]

## Instruction:
Add votes URL scheme to main URL scheme
## Code After:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views

from django.views.generic import TemplateView

from . import demo_urls
from votes import urls as votes_urls

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', TemplateView.as_view(template_name="base/base.html")),
    url(r'^demo/', include(demo_urls)),
    url(r'^(?P<system_name>[\w-]+)/', include(votes_urls)),
    url(r'^login/', auth_views.login, {'template_name': 'auth/login.html'}),
    url(r'^logout/', auth_views.logout, {'template_name': 'auth/logout.html'}),
]
