from pydoc import locate

from django.conf import settings
from django.conf.urls import include, url


from .views.auth import LoginEndpoint, LogoutEndpoint
from .views.attachments import AttachmentsEndpoint
from .views.activities import ActivitiesEndpoint
from .views.comments import CommentsEndpoint
from .views.download import DownloadEndpoint
from .views.ops import OpsEndpoint
from .views.profiles import ProfilesEndpoint
from .views.responders import RespondersEndpoint
from .views.session import SessionEndpoint
from .views.subscribers import SubscribersEndpoint
from .views.tickets import TicketsEndpoint
from .views.ticket_stats import TicketStatsEndpoint


router = locate(settings.ROUTER_CLASS)()
router.register(r'attachments', AttachmentsEndpoint)
router.register(r'activities', ActivitiesEndpoint)
router.register(r'comments', CommentsEndpoint)
router.register(r'download', DownloadEndpoint, base_name='download')
router.register(r'me', SessionEndpoint, base_name='me')
router.register(r'ops', OpsEndpoint, base_name='ops')
router.register(r'profiles', ProfilesEndpoint)
router.register(r'responders', RespondersEndpoint)
router.register(r'subscribers', SubscribersEndpoint)
router.register(r'tickets', TicketsEndpoint)
router.register(r'ticket-stats', TicketStatsEndpoint, base_name='ticket_stats')

auth_router = locate(settings.ROUTER_CLASS)()
auth_router.register(r'login', LoginEndpoint, base_name='login')
auth_router.register(r'logout', LogoutEndpoint, base_name='login')

urlpatterns = [
    url('api/v3/', include(router.urls)),
    url('accounts/', include(auth_router.urls)),
    url('accounts/social/', include('social_django.urls', namespace='social'))
]

@@ -699,16 +699,36 @@
 _CLASS)(
+trailing_slash=False
 )%0Arouter
@@ -1372,16 +1372,36 @@
 _CLASS)(
+trailing_slash=False
 )%0Aauth_r
@@ -1521,18 +1521,19 @@
 ame='log
-in
+out
 ')%0A%0Aurlp

Disable the trailing slash in routes.