from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin

from voteswap.views import index
from voteswap.views import landing_page
from voteswap.views import signup


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url('', include('social.apps.django_app.urls', namespace='social')),
    url('^home/$', index, name='index'),
    url('^$', landing_page, name='landing_page'),
    url('^logout/$', 'django.contrib.auth.views.logout', name='logout'),
    url('^user/', include('users.urls', namespace='users')),
    url('^signup/$', signup, name='signup'),
]

from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.views import logout

from voteswap.views import index
from voteswap.views import landing_page
from voteswap.views import signup


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url('', include('social.apps.django_app.urls', namespace='social')),
    url('^home/$', index, name='index'),
    url('^$', landing_page, name='landing_page'),
    url('^logout/$', logout, name='logout'),
    url('^user/', include('users.urls', namespace='users')),
    url('^signup/$', signup, name='signup'),
]

Fix logout view so django stops complaining
Fix logout view so django stops complaining

  from django.conf.urls import include
  from django.conf.urls import url
  from django.contrib import admin
+ from django.contrib.auth.views import logout
  
  from voteswap.views import index
  from voteswap.views import landing_page
  from voteswap.views import signup
  
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url('', include('social.apps.django_app.urls', namespace='social')),
      url('^home/$', index, name='index'),
      url('^$', landing_page, name='landing_page'),
-     url('^logout/$', 'django.contrib.auth.views.logout', name='logout'),
+     url('^logout/$', logout, name='logout'),
      url('^user/', include('users.urls', namespace='users')),
      url('^signup/$', signup, name='signup'),
  ]
  
Fix logout view so django stops complaining
## Code Before:
from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin

from voteswap.views import index
from voteswap.views import landing_page
from voteswap.views import signup


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url('', include('social.apps.django_app.urls', namespace='social')),
    url('^home/$', index, name='index'),
    url('^$', landing_page, name='landing_page'),
    url('^logout/$', 'django.contrib.auth.views.logout', name='logout'),
    url('^user/', include('users.urls', namespace='users')),
    url('^signup/$', signup, name='signup'),
]

## Instruction:
Fix logout view so django stops complaining
## Code After:
from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.views import logout

from voteswap.views import index
from voteswap.views import landing_page
from voteswap.views import signup


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url('', include('social.apps.django_app.urls', namespace='social')),
    url('^home/$', index, name='index'),
    url('^$', landing_page, name='landing_page'),
    url('^logout/$', logout, name='logout'),
    url('^user/', include('users.urls', namespace='users')),
    url('^signup/$', signup, name='signup'),
]
