# coding=utf-8
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^allauth/', include('allauth.urls')),
    url(r'^accounts/', include('accounts.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^', include('main.urls')),
) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

from django.conf import settings

if settings.DEBUG:
    import debug_toolbar
    urlpatterns += patterns(
        url(r'^__debug__/', include(debug_toolbar.urls)),
    )

# coding=utf-8
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^allauth/', include('allauth.urls')),
    url(r'^accounts/', include('accounts.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^', include('main.urls')),
) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

if settings.DEBUG:
    import debug_toolbar
    urlpatterns += patterns(
        url(r'^__debug__/', include(debug_toolbar.urls)),
    )

remove duplicate import