Как развернуть и запустить проект на локальном сервере с Bitbucket-а?
Вопрос такой есть проект на Bitbucket его склонировал создал виртуальное окружение на ПК установил все библиотеки из requirements.txt, но в консоли при запуске сервера выдает вот что:
WARNINGS:
?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 a
nd the TEMPLATES dictionary takes precedence. You must put the values of the fol
lowing settings into your default TEMPLATES dict: TEMPLATE_DEBUG, TEMPLATE_LOADE
RS.
а далее вот такие строки:
System check identified 1 issue (0 silenced).
Unhandled exception in thread started by
Traceback (most recent call last):
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\utils\a
utoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\core\ma
nagement\commands\runserver.py", line 117, in inner_run
self.check_migrations()
(env) C:\Users\antipin-av\projects\boroda\src>python manage.py runserver 8002
Performing system checks...
C:\Users\antipin-av\projects\boroda\src\forms\urls.py:6: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got forms.views.registrationpartner). Pass the callable instead
.
url(r'^add-partner/$', 'forms.views.registrationpartner', name='add_partner'),
C:\Users\antipin-av\projects\boroda\src\forms\urls.py:7: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got forms.views.registrationmember). Pass the callable instead.
C:\Users\antipin-av\projects\boroda\src\forms\urls.py:9: RemovedInDjango110Warni
ng: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10
. Update your urlpatterns to be a list of django.conf.urls.url() instances inste
ad.
url(r'^add-success/$', ajax_required(RegSuccessView.as_view()), name='add_succ
ess'),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:16: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got pages.views.aboutproject). Pass the callable instead.
url(r'^o-proekte/$', 'pages.views.aboutproject', name='aboutproject'),
C:\Users\antipin-av\projects\boroda\src\polls\urls.py:15: RemovedInDjango110Warn
ing: Support for string view arguments to url() is deprecated and will be remove
d in Django 1.10 (got polls.views.mainView). Pass the callable instead.
name='poll_detail',
C:\Users\antipin-av\projects\boroda\src\polls\urls.py:19: RemovedInDjango110Warn
ing: Support for string view arguments to url() is deprecated and will be remove
d in Django 1.10 (got polls.views.vote_for_candidate). Pass the callable instead
.
'polls.views.vote_for_candidate',
C:\Users\antipin-av\projects\boroda\src\polls\urls.py:24: RemovedInDjango110Warn
ing: Support for string view arguments to url() is deprecated and will be remove
d in Django 1.10 (got polls.views.add_vote). Pass the callable instead.
name='add_vote',
C:\Users\antipin-av\projects\boroda\src\polls\urls.py:29: RemovedInDjango110Warn
ing: Support for string view arguments to url() is deprecated and will be remove
d in Django 1.10 (got polls.views.load_form). Pass the callable instead.
name='load_form',
C:\Users\antipin-av\projects\boroda\src\polls\urls.py:34: RemovedInDjango110Warn
ing: Support for string view arguments to url() is deprecated and will be remove
d in Django 1.10 (got polls.views.current_poll_redirect). Pass the callable inst
ead.
name='to_poll'
C:\Users\antipin-av\projects\boroda\src\publications\urls.py:13: RemovedInDjango
110Warning: django.conf.urls.patterns() is deprecated and will be removed in Dja
ngo 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instanc
es instead.
url(r'^(?P[\d\w-]+)/$', ArticleItemDetailView.as_view(), name='articles_
item'),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:19: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got pages.views.event). Pass the callable instead.
url(r'^event/', 'pages.views.event', name='event'),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:20: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got pages.views.nominationspage). Pass the callable instead.
url(r'^nominacii-delovoj-borody/', 'pages.views.nominationspage', name='nomina
tionspage'),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:22: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got pages.views.frontpage). Pass the callable instead.
url(r'^$', 'pages.views.frontpage', name='frontpage'),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:23: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got common.views.search). Pass the callable instead.
url(r'^search/$', 'common.views.search', name="search"),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:24: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got pages.views.registration). Pass the callable instead.
url(r'^popast-na-meropriyatie/$', 'pages.views.registration', name='registrati
on'),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:24: RemovedInDjango110Warni
ng: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10
. Update your urlpatterns to be a list of django.conf.urls.url() instances inste
ad.
url(r'^popast-na-meropriyatie/$', 'pages.views.registration', name='registrati
on'),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:30: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got django.views.static.serve). Pass the callable instead.
url(r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': se
ttings.MEDIA_ROOT,}),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:31: RemovedInDjango110Warni
ng: Support for string view arguments to url() is deprecated and will be removed
in Django 1.10 (got django.views.static.serve). Pass the callable instead.
url(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': s
ettings.STATIC_ROOT,}),
C:\Users\antipin-av\projects\boroda\src\core\urls.py:31: RemovedInDjango110Warni
ng: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10
. Update your urlpatterns to be a list of django.conf.urls.url() instances inste
ad.
url(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': s
ettings.STATIC_ROOT,}),
System check identified some issues:
WARNINGS:
?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 a
nd the TEMPLATES dictionary takes precedence. You must put the values of the fol
lowing settings into your default TEMPLATES dict: TEMPLATE_DEBUG, TEMPLATE_LOADE
RS.
System check identified 1 issue (0 silenced).
Unhandled exception in thread started by
Traceback (most recent call last):
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\utils\a
utoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\core\ma
nagement\commands\runserver.py", line 117, in inner_run
self.check_migrations()
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\core\ma
nagement\commands\runserver.py", line 163, in check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\migr
ations\executor.py", line 20, in __init__
self.loader = MigrationLoader(self.connection)
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\migr
ations\loader.py", line 49, in __init__
self.build_graph()
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\migr
ations\loader.py", line 176, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\migr
ations\recorder.py", line 65, in applied_migrations
self.ensure_schema()
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\migr
ations\recorder.py", line 52, in ensure_schema
if self.Migration._meta.db_table in self.connection.introspection.table_name
s(self.connection.cursor()):
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\back
ends\base\base.py", line 231, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\back
ends\base\base.py", line 204, in _cursor
self.ensure_connection()
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\back
ends\base\base.py", line 199, in ensure_connection
self.connect()
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\util
s.py", line 95, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\back
ends\base\base.py", line 199, in ensure_connection
self.connect()
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\back
ends\base\base.py", line 171, in connect
self.connection = self.get_new_connection(conn_params)
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\django\db\back
ends\postgresql\base.py", line 175, in get_new_connection
connection = Database.connect(**conn_params)
File "C:\Users\antipin-av\projects\boroda\env\lib\site-packages\psycopg2\__ini
t__.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: ┬└╞═╬: яюы№чютрЄхы№ "boroda" эх яЁю°╕ы яЁютхЁ
ъє яюфышээюёЄш (яю ярЁюы■)
Артемий Антипин: база данных возвращает вам ошибку "пользователь 'boroda' не прошёл проверку подлинности (по паролю)", а значит у вас или в конфигурации django-проекта указан неправильный пароль или неправильно настроен сервер баз данных.