-
Notifications
You must be signed in to change notification settings - Fork 0
/
Проблемы-Решения.txt
executable file
·99 lines (94 loc) · 6.02 KB
/
Проблемы-Решения.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
ПРОБЛЕМА С УСТАНОВКОЙ NODEJS
----------------------------
(https://askubuntu.com/questions/755627/used-curl-to-get-nodejs-how-to-remove-the-files-have-not-installed-nodejs-yet)
----------------------------------------------------------------------------------------------------------------------
I used: curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - because
I wanted to install NodeJS, but after executing the command - I realised I used the wrong command.
need NodeJS version 5, not 4.
I have not used apt-get install nodejs yet. How can I remove the files that the first command downloaded,
so that I can execute a different curl command and then install NodeJS using apt-get install nodejs ?
I'm rather new to Ubuntu.
-----------------------------------------------------------------------------------------------------------
РЕШЕНИЕ
-------
I would remove nodesource.list from apt/sources.list.d/
`sudo rm /etc/sources.list.d/nodesource.list`(МОЕ `sudo rm /etc/apt/sources.list.d/nodesource.list`)
Then apt-get update
`sudo apt-get update`
=======================================================================================================================
НЕ МОГУ УТСАНОВИТЬ PILLOW
------------------------
(http://stackoverflow.com/questions/24646305/error-for-pip-install-pillow-on-ubuntu-virtualenv)
-----------------------------------------------------------------------------------------------------------------------
ERRORS:
products.ProductImage.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "pip install Pillow".
System check identified 1 issue (0 silenced).
(venv) pasha@PahaMihaXU:~/PROJECTS_NN/shop$ pip install Pillow
pip install Pillow: команда не найдена
--------------------------------------
-------------------------------------------------------------------------------------------------------------
РЕШЕНИЕ
-------
`sudo apt-get install python3.5-dev`
`sudo apt-get install libjpeg8-dev`
`sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib`
`pip3 install Pillow`
=======================================================================================================================
ПРИ ПЕРВОМ ЗАПУСКЕ СУЩЕСТВУЮЩЕГО ПРОЭКТА, ВЫДАЕТ ОШИБКУ
-------------------------------------------------------
(venv) pasha@PahaMihaXU:~/PROJECTS/alur$ python3 manage.py runserver
CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.
-----------------------------------------------------------------------------------------------------------------------
РЕШЕНИЕ
-------
`python manage.py runserver` - используеться python2
======================================================================================================================
ПРОБЛЕМЫ С НАСТРОЙКОЙ БАЗЫМ ДАННЫХ
----------------------------------
settings.DATABASES is improperly configured. Please supply the NAME value.
----------------------------------------------------------------------------------------------------------------------
(http://stackoverflow.com/questions/18664074/getting-error-peer-authentication-failed-for-user-postgres-when-trying-to-ge#18664239)
The problem is still your pg_hba.conf file (/etc/postgresql/9.1/main/pg_hba.conf). This line:
local all postgres peer
Should be
local all postgres md5
After altering this file, don't forget to restart your PostgreSQL server.
If you're on Linux, that would be
`sudo service postgresql restart`.
======================================================================================================================
После ПУШ выдало ошибку
-----------------------
(venv) pavel@DTAPavelU:~/PROJECTS/alur$ git push origin Collapse_Category
error: src refspec Collapse_Category matches more than one.
error: не удалось отправить некоторые ссылки в «https://miha_pavel@bitbucket.org/Anton2013/alur.git»
-------------------------------------------------------------------------------------------------------------
РЕШЕНИЕ
-------
(venv) pavel@DTAPavelU:~/PROJECTS/alur$ git status
На ветке Collapse_Category
нечего коммитить, нет изменений в рабочем каталоге
(venv) pavel@DTAPavelU:~/PROJECTS/alur$ git tag
Collapse_Category
(venv) pavel@DTAPavelU:~/PROJECTS/alur$ git tag -d Collapse_Category удаление тэга к коммиту Collapse_Category
Метка «Collapse_Category» удалена (была e91699c)
(venv) pavel@DTAPavelU:~/PROJECTS/alur$ git push origin Collapse_Category
Password for 'https://miha_pavel@bitbucket.org':
======================================================================================================================
После запуска теста, выдало ошибку
----------------------------------
django.db.utils.ProgrammingError: ОШИБКА: столбец orders_order.charge_id не существует
LINE 1: ...r"."content_type_id", "orders_order"."object_id", "orders_or...
-------------------------------------------------------------------------------------------------------------
Причина
------
После слияния локального репазитария с обновленным удоленным (git pull origin master),
были локально залиты новые миграции, но не были применены
-------------------------------------------------------------------------------------------------------------
РЕШЕНИЕ
-------
запустить тесты без keepdb
python3 manage.py test
и выполнить заданные условия
======================================================================================================================