Minor Modificaions

This commit is contained in:
2019-07-16 10:33:18 +02:00
parent ebfe1415a6
commit 2cc2b1a6d0
4 changed files with 6 additions and 4 deletions

View File

@@ -5,12 +5,12 @@ from . import views
urlpatterns = [
path (
'api/v1/animals/<int:pk>',
'api/animals/<int:pk>',
views.get_delete_update_animal,
name = 'get_delete_update_animal'
),
path (
'api/v1/animals/',
'api/animals/',
views.get_post_animals,
name = 'get_post_animals'
)

View File

@@ -1,4 +1,4 @@
version: '3'
version: '2'
services:
web:

View File

@@ -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!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition
@@ -38,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'animals',
'parameter',
'rest_framework',
'rest_framework_swagger',
]

View File

@@ -23,6 +23,7 @@ schema_view = get_swagger_view (title='Lactor API')
urlpatterns = [
path('', schema_view),
path ('', include ('animals.urls')),
path ('', include ('parameter.urls')),
path (
'api-auth/',
include ('rest_framework.urls', namespace = 'rest_framework')