Remov django-node-assets from settings, add sudo request in npm install -g npx

This commit is contained in:
Andrew Smirnov 2021-05-13 20:10:38 +03:00
parent 8b70827f07
commit edd32094c0
No known key found for this signature in database
GPG Key ID: 0EFE318E5BB2A82A
2 changed files with 1 additions and 3 deletions

View File

@ -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. Тестирование в той же папке

View File

@ -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