Skip to content

Commit

Permalink
install drf-spectacular
Browse files Browse the repository at this point in the history
  • Loading branch information
ytliuSVN committed Nov 10, 2024
1 parent 29ad7d8 commit 8fe5448
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'core',
'rest_framework',
'drf_spectacular',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -130,3 +132,7 @@
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

AUTH_USER_MODEL = 'core.User'

REST_FRAMEWORK = {
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Django>=3.2.4,<3.3
djangorestframework>=3.12.4,<3.13
psycopg2>=2.8.6,<2.9
drf-spectacular>=0.15.1,<0.16

0 comments on commit 8fe5448

Please sign in to comment.