"""djcems URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/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. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from rest_framework import routers
from rest_framework.authtoken import views
from filebrowser.sites import site
from userprofile.views import UserViewSet, GroupViewSet, UserProfileViewSet
from beacon.views import BeaconViewSet
from news.views import NewsViewSet


# rest_framework routes
router = routers.DefaultRouter()
router.register(r'api/user', UserViewSet)
router.register(r'api/group', GroupViewSet)
router.register(r'api/userprofile', UserProfileViewSet)
router.register(r'api/beacon', BeaconViewSet)
router.register(r'api/news', NewsViewSet)


urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'^admin/filebrowser/', include(site.urls)),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    url(r'^api-token-auth/', views.obtain_auth_token),


    url(r'^userprofile/', include('userprofile.urls')),
    url(r'^vehicle/', include('vehicle.urls')),
    url(r'^sms/', include('sms.urls')),
    url(r'^beacon/', include('beacon.urls')),
    url(r'^hello/', include('hello.urls')),
    url(r'^datastat/', include('datastat.urls')),
    url(r'^', include('misc.urls')),

    url(r'^tinymce/', include('tinymce.urls')),
]


if settings.DEBUG:
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    from django.conf.urls.static import static
    urlpatterns += staticfiles_urlpatterns()
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

ff3b2f9b5759326c92ebf4a8a97b1dd93acb87a0
<mask token>

<mask token>
router.register('api/user', UserViewSet)
router.register('api/group', GroupViewSet)
router.register('api/userprofile', UserProfileViewSet)
router.register('api/beacon', BeaconViewSet)
router.register('api/news', NewsViewSet)
<mask token>
if settings.DEBUG:
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    from django.conf.urls.static import static
    urlpatterns += staticfiles_urlpatterns()
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
        )

<mask token>
router = routers.DefaultRouter()
router.register('api/user', UserViewSet)
router.register('api/group', GroupViewSet)
router.register('api/userprofile', UserProfileViewSet)
router.register('api/beacon', BeaconViewSet)
router.register('api/news', NewsViewSet)
urlpatterns = [url('^', include(router.urls)), url('^admin/filebrowser/',
    include(site.urls)), url('^admin/', include(admin.site.urls)), url(
    '^api-auth/', include('rest_framework.urls', namespace='rest_framework'
    )), url('^api-token-auth/', views.obtain_auth_token), url(
    '^userprofile/', include('userprofile.urls')), url('^vehicle/', include
    ('vehicle.urls')), url('^sms/', include('sms.urls')), url('^beacon/',
    include('beacon.urls')), url('^hello/', include('hello.urls')), url(
    '^datastat/', include('datastat.urls')), url('^', include('misc.urls')),
    url('^tinymce/', include('tinymce.urls'))]
if settings.DEBUG:
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    from django.conf.urls.static import static
    urlpatterns += staticfiles_urlpatterns()
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
        )

<mask token>
from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from rest_framework import routers
from rest_framework.authtoken import views
from filebrowser.sites import site
from userprofile.views import UserViewSet, GroupViewSet, UserProfileViewSet
from beacon.views import BeaconViewSet
from news.views import NewsViewSet
router = routers.DefaultRouter()
router.register('api/user', UserViewSet)
router.register('api/group', GroupViewSet)
router.register('api/userprofile', UserProfileViewSet)
router.register('api/beacon', BeaconViewSet)
router.register('api/news', NewsViewSet)
urlpatterns = [url('^', include(router.urls)), url('^admin/filebrowser/',
    include(site.urls)), url('^admin/', include(admin.site.urls)), url(
    '^api-auth/', include('rest_framework.urls', namespace='rest_framework'
    )), url('^api-token-auth/', views.obtain_auth_token), url(
    '^userprofile/', include('userprofile.urls')), url('^vehicle/', include
    ('vehicle.urls')), url('^sms/', include('sms.urls')), url('^beacon/',
    include('beacon.urls')), url('^hello/', include('hello.urls')), url(
    '^datastat/', include('datastat.urls')), url('^', include('misc.urls')),
    url('^tinymce/', include('tinymce.urls'))]
if settings.DEBUG:
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    from django.conf.urls.static import static
    urlpatterns += staticfiles_urlpatterns()
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT
        )

"""djcems URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/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. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from rest_framework import routers
from rest_framework.authtoken import views
from filebrowser.sites import site
from userprofile.views import UserViewSet, GroupViewSet, UserProfileViewSet
from beacon.views import BeaconViewSet
from news.views import NewsViewSet


# rest_framework routes
router = routers.DefaultRouter()
router.register(r'api/user', UserViewSet)
router.register(r'api/group', GroupViewSet)
router.register(r'api/userprofile', UserProfileViewSet)
router.register(r'api/beacon', BeaconViewSet)
router.register(r'api/news', NewsViewSet)


urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'^admin/filebrowser/', include(site.urls)),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    url(r'^api-token-auth/', views.obtain_auth_token),


    url(r'^userprofile/', include('userprofile.urls')),
    url(r'^vehicle/', include('vehicle.urls')),
    url(r'^sms/', include('sms.urls')),
    url(r'^beacon/', include('beacon.urls')),
    url(r'^hello/', include('hello.urls')),
    url(r'^datastat/', include('datastat.urls')),
    url(r'^', include('misc.urls')),

    url(r'^tinymce/', include('tinymce.urls')),
]


if settings.DEBUG:
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    from django.conf.urls.static import static
    urlpatterns += staticfiles_urlpatterns()
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
