Create basic API for models

This commit is contained in:
2018-09-12 17:18:11 -06:00
parent a432535997
commit 2a3823f739
10 changed files with 107 additions and 8 deletions
+4
View File
@@ -38,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'authserver.api',
]
MIDDLEWARE = [
@@ -119,3 +120,6 @@ USE_TZ = True
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'