Skip to content

Commit

Permalink
allow api urls without slash at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosmartin committed Sep 24, 2013
1 parent cd73c0a commit ef32cd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions timtec/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@
],
}

APPEND_SLASH = False

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'e%6a01vfbue28$xxssu!9r_)usqjh817((mr+7vv3ek&@#p0!$'

Expand Down
2 changes: 1 addition & 1 deletion timtec/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from forum.views import CourseForumView, QuestionView, QuestionCreateView, QuestionViewSet, AnswerViewSet
from rest_framework import routers

router = routers.DefaultRouter()
router = routers.DefaultRouter(trailing_slash=False)
router.register(r'lessons', LessonViewSet)
router.register(r'student_progress', StudentProgressViewSet)
router.register(r'question', QuestionViewSet)
Expand Down

0 comments on commit ef32cd5

Please sign in to comment.