From edd32094c0fa3aa6b8441b1cf478adcea9dc98cc Mon Sep 17 00:00:00 2001 From: Andrew Smirnov Date: Thu, 13 May 2021 20:10:38 +0300 Subject: [PATCH] Remov django-node-assets from settings, add sudo request in `npm install -g npx` --- README.md | 2 +- access_controller/settings.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 82e3483..24dbd6b 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ cd static/main/js/control_page 3. Выполнить установку модулей для js ```bash npm install -npm -g install npx +sudo npm -g install npx npx webpack ``` 4. Тестирование в той же папке diff --git a/access_controller/settings.py b/access_controller/settings.py index 2c4a75b..eb3e33f 100644 --- a/access_controller/settings.py +++ b/access_controller/settings.py @@ -41,7 +41,6 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'django_registration', 'rest_framework', - 'django_node_assets', 'main', ] @@ -138,7 +137,6 @@ STATICFILES_DIRS = [ STATICFILES_FINDERS = [ 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', - 'django_node_assets.finders.NodeModulesFinder', ] ACCOUNT_ACTIVATION_DAYS = 7