Minor Modificaions
This commit is contained in:
@@ -5,12 +5,12 @@ from . import views
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path (
|
path (
|
||||||
'api/v1/animals/<int:pk>',
|
'api/animals/<int:pk>',
|
||||||
views.get_delete_update_animal,
|
views.get_delete_update_animal,
|
||||||
name = 'get_delete_update_animal'
|
name = 'get_delete_update_animal'
|
||||||
),
|
),
|
||||||
path (
|
path (
|
||||||
'api/v1/animals/',
|
'api/animals/',
|
||||||
views.get_post_animals,
|
views.get_post_animals,
|
||||||
name = 'get_post_animals'
|
name = 'get_post_animals'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
version: '3'
|
version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ SECRET_KEY = '(a^(q85$5tn=(9wmg6c$*lrkpbg^iw%v2-!!!1$965pqzdbm#-'
|
|||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
@@ -38,6 +38,7 @@ INSTALLED_APPS = [
|
|||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'animals',
|
'animals',
|
||||||
|
'parameter',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
'rest_framework_swagger',
|
'rest_framework_swagger',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ schema_view = get_swagger_view (title='Lactor API')
|
|||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', schema_view),
|
path('', schema_view),
|
||||||
path ('', include ('animals.urls')),
|
path ('', include ('animals.urls')),
|
||||||
|
path ('', include ('parameter.urls')),
|
||||||
path (
|
path (
|
||||||
'api-auth/',
|
'api-auth/',
|
||||||
include ('rest_framework.urls', namespace = 'rest_framework')
|
include ('rest_framework.urls', namespace = 'rest_framework')
|
||||||
|
|||||||
Reference in New Issue
Block a user