# -*- coding: utf-8 -*-
"""mysites URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/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 url,include
from django.contrib import admin
from . import view,search,add
from basemodel import views as basemodel
from users import views as users_views
from crmapp import views as crmapp_views

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^hello$',view.hello),
    #url(r'^searchOrganization$',organization.searchOrganization),
    url(r'^search$', search.search),
    #url(r'^addOrganization$',organization.addOrganization),
    url(r'^index.html$',view.index),
    url(r'^test.html',view.test),
    url(r'^add$',add.add),
    url(r'^base/', include('basemodel.urls')),
    #url(r'^$',basemodel.index),
    #url(r'^$',users_views.index),
    url(r'^$',crmapp_views.index),
    url(r'^crmapp/',include('crmapp.urls')),
    url(r'^accounts/',include('users.urls')),
    #url(r'^accounts/profile/',basemodel.accounts_profile),
    url(r'^accounts/profile/',crmapp_views.index),
    url(r'^email$',view.sendemail),
    url(r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
        users_views.activate, name='users_activate'),
    #url(r'^$', crmapp_views.getuserclients, name='user_clients'),
    #url(r'^head.jpg',include('static.img.head.jpg')),


]
