Closed mbaechtold closed 6 years ago
There should be no comment code in your code base.
1) Load the url patterns only, if DEBUG=True:
DEBUG=True
if settings.DEBUG: urlpatterns += [ ... ]
2) Improve the view insert_to_db:
insert_to_db
Check if it the authenticated user is a super user. Insert the data only if this is the case.
This has been solved in the pull request #21 👍
There should be no comment code in your code base.
1) Load the url patterns only, if
DEBUG=True
:2) Improve the view
insert_to_db
:Check if it the authenticated user is a super user. Insert the data only if this is the case.