Skip to content

Commit

Permalink
Merge pull request #38 from OpenLXP/admindocs
Browse files Browse the repository at this point in the history
add admin docs
  • Loading branch information
KarenAJ authored Mar 25, 2024
2 parents 04d8f3d + 45b5aa9 commit b3d15bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/openlxp_xss_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admindocs',
'corsheaders',
'rest_framework',
'rest_framework.authtoken',
Expand All @@ -61,6 +62,7 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.contrib.admindocs.middleware.XViewMiddleware',
]

ROOT_URLCONF = 'openlxp_xss_project.urls'
Expand Down
1 change: 1 addition & 0 deletions app/openlxp_xss_project/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from django.urls import include, path

urlpatterns = [
path('admin/doc/', include('django.contrib.admindocs.urls')),
url('', include('openlxp_authentication.urls')),
path('admin/', admin.site.urls),
path('api/', include('api.urls')),
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Django>=3.2,<4.0

djangorestframework>=3.12.2,<3.13.0

docutils>=0.20.1

flake8>=3.9.0,<4.0.1

gunicorn>=20.0.4,<20.1.0
Expand Down

0 comments on commit b3d15bc

Please sign in to comment.