Skip to content

Commit

Permalink
removed more unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Dec 28, 2024
1 parent f5cb393 commit a0ac379
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ python manage.py migrate

echo "Collecting static files, this may take a while..."

python manage.py collectstatic_js_reverse
python manage.py collectstatic --noinput

echo "Done"
Expand Down
4 changes: 0 additions & 4 deletions recipes/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def extract_comma_list(env_key, default=None):
load_dotenv()
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SCRIPT_NAME = os.getenv('SCRIPT_NAME', '')
# path for django_js_reverse to generate the javascript file containing all urls. Only done because the default command (collectstatic_js_reverse) fails to update the manifest
JS_REVERSE_OUTPUT_PATH = os.path.join(BASE_DIR, "cookbook/static/django_js_reverse")
JS_REVERSE_SCRIPT_PREFIX = os.getenv('JS_REVERSE_SCRIPT_PREFIX', SCRIPT_NAME)

STATIC_URL = os.getenv('STATIC_URL', '/static/')
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
Expand Down Expand Up @@ -181,7 +178,6 @@ def extract_comma_list(env_key, default=None):
'drf_spectacular_sidecar',
'django_cleanup.apps.CleanupConfig',
'django_vite',
'django_js_reverse',
'hcaptcha',
'allauth',
'allauth.account',
Expand Down
2 changes: 0 additions & 2 deletions recipes/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from django.urls import include, path, re_path
from django.views.i18n import JavaScriptCatalog
from django.views.static import serve
from django_js_reverse import views as reverse_views

urlpatterns = [
path('', include('cookbook.urls')),
Expand All @@ -43,7 +42,6 @@

if settings.GUNICORN_MEDIA or settings.DEBUG:
urlpatterns += re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
urlpatterns += re_path(r'^jsreverse.json$', reverse_views.urls_js, name='js_reverse'),

for p in settings.PLUGINS:
try:
Expand Down

0 comments on commit a0ac379

Please sign in to comment.