urlpatterns = [ # Router API urls url(r'^api/', include(router.urls)), url(r'^docs/', login_required(schema_view)), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), # Add mqtt_password to api url(r'^api/user/(?P<user__username>[\w.@+-]+)/password/$', PasswordView.as_view(), name='mqtt_password'), # Add mqtt_settings to api url(r'^api/settings/$', SettingsView.as_view(), name='mqtt_settings'), # ambulance url(r'^ambulance/', include('ambulance.urls')), # ambulance url(r'^hospital/', include('hospital.urls')), # login url(r'^auth/', include('login.urls')), # equipment url(r'^equipment/', include('equipment.urls')), # admin url(r'^admin/', admin.site.urls),
urlpatterns = i18n_patterns(*[ # Router API urls url(r'^api/', include(router.urls)), url(r'^docs/', login_required(schema_view)), url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), # Add mqtt_password to api url(r'^api/user/(?P<user__username>[\w.@+-]+)/password/$', PasswordView.as_view(), name='mqtt_password'), # Add settings to api url(r'^api/settings/$', SettingsView.as_view(), name='mqtt_settings'), # Add version to api url(r'^api/version/$', VersionView.as_view(), name='version'), ]) urlpatterns += i18n_patterns(*[ # ambulance url(r'^ambulance/', include('ambulance.urls')), # ambulance