Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d01160b

Browse files
deployment
1 parent 885dd36 commit d01160b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎leetcodeApi/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# SECRET_KEY = os.getenv('SECRET_KEY')
3030

3131
# SECURITY WARNING: don't run with debug turned on in production!
32-
DEBUG = True
32+
DEBUG = False
3333

3434
ALLOWED_HOSTS = ['*']
3535

@@ -122,6 +122,7 @@
122122
},
123123
]
124124

125+
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
125126

126127
# Internationalization
127128
# https://docs.djangoproject.com/en/4.0/topics/i18n/

‎leetcodeApi/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from api.views import *
2020

2121
urlpatterns = [
22-
path('admin/', admin.site.urls),
22+
path('leetcodeadmin/', admin.site.urls),
2323
path('', home),
2424
path('<str:username>/', svg_icon),
2525
path('<str:username>/theme=<str:theme>', svg_icon_theme),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /