"""apman URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/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 include
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth import views as auth_views

from satsound.urls import *

urlpatterns = [
                  url(r'', include(satsound_urls), name='satsound'),
                  url(r'^accounts/', include('allauth.urls')),
                  url(r'^admin/password_reset/$', auth_views.password_reset, name='admin_password_reset'),
                  url(r'^admin/password_reset/done/$', auth_views.password_reset_done, name='password_reset_done'),
                  url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$', auth_views.password_reset_confirm,
                      name='password_reset_confirm'),
                  url(r'^reset/done/$', auth_views.password_reset_complete, name='password_reset_complete'),
                  url(r'^admin/', admin.site.urls, name='admin'),
                  url(r'^api/', include(api_urls), name='api-root'),
                  url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
              ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
