This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from praekelt/feature/reduce-database-calls-fo…
…r-delivering-schedules Reduce database calls for delivering schedules
- Loading branch information
Showing
7 changed files
with
39 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
import os | ||
from django.conf.urls import patterns, include, url | ||
from django.conf.urls import include, url | ||
from django.contrib import admin | ||
from scheduler import views | ||
from rest_framework.authtoken.views import obtain_auth_token | ||
|
||
admin.site.site_header = os.environ.get('SCHEDULER_TITLE', 'Scheduler Admin') | ||
|
||
|
||
urlpatterns = patterns( | ||
'', | ||
urlpatterns = [ | ||
url(r'^admin/', include(admin.site.urls)), | ||
url(r'^api/auth/', | ||
include('rest_framework.urls', namespace='rest_framework')), | ||
url(r'^api/token-auth/', | ||
'rest_framework.authtoken.views.obtain_auth_token'), | ||
url(r'^api/token-auth/', obtain_auth_token), | ||
url(r'^api/metrics/', views.MetricsView.as_view()), | ||
url(r'^api/health/', views.HealthcheckView.as_view()), | ||
url(r'^', include('scheduler.urls')), | ||
url(r'^docs/', include('rest_framework_docs.urls')), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters