from apps.web.views.profile import intro
from apps.web.views.web import about, index

from django.conf.urls import include, patterns, url
from django.contrib import admin
# from django.views.generic.base import RedirectView

admin.autodiscover()

urlpatterns = patterns('',
                       url(r'^$', index, name="index"),
                       url(r'^u/', include("project.apps.web.views.profile")),

                       url(r'^accounts/logout/$', 'django.contrib.auth.views.logout',
                           {'next_page': '/'}),

                       # url(r'^accounts/login/$', RedirectView.as_view(url='/', permanent=False)),
                       # url(r'^accounts/signup/$', RedirectView.as_view(url='/', permanent=False)),

                       url(r'^accounts/', include('allauth.urls')),
                       url(r'^admin/', include(admin.site.urls)),

                       url(r"^about/", about, name="about"),
                       url(r"^intro/", intro, name="intro"),
                       )
