Проблема со встроенным сервером
8 years 2 months ago - 8 years 2 months ago #931
by Samidjin
Samidjin created the topic: Проблема со встроенным сервером
Вечер добрый.
Ubuntu server 16.04
Python-3.5.2
Версия SOPDS последняя с GitHub.
web версия встроенного сервера в программу работает отлично.
opds не принимается ни одной программой (coolreader etc).
Стучусь по адресу http://myip:8001/opds/
Настраивал с авторизацией и без.
Подскажите куда копать.
Через браузер с http://myip:8001/opds/ отдаёт следующее:
Ubuntu server 16.04
Python-3.5.2
Версия SOPDS последняя с GitHub.
web версия встроенного сервера в программу работает отлично.
opds не принимается ни одной программой (coolreader etc).
Стучусь по адресу http://myip:8001/opds/
Настраивал с авторизацией и без.
Подскажите куда копать.
Через браузер с http://myip:8001/opds/ отдаёт следующее:
Warning: Spoiler!
[ Click to expand ]
[ Click to hide ]
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:dcterms="http://purl.org/dc/terms" xmlns="http://www.w3.org/2005/Atom">
<id>http://192.168.1.141:8001/opds/</id><icon>/static/images/favicon.ico</icon>
<link href="http://192.168.1.141:8001/opds/" type="application/atom+xml;profile=opds-catalog;kind=navigation" rel="self"/>
<link href="/opds/" type="application/atom+xml;profile=opds-catalog;kind=navigation" rel="start"/>
<title>SimpleOPDS</title>
<subtitle>SimpleOPDS Catalog by www.sopds.ru. Version 0.38.</subtitle>
<updated>2016-12-27T19:51:12+00:00</updated>
<link href="/opds/search/{searchTerms}/" type="application/atom+xml" rel="search"/>
<entry>
<id>m:1</id>
<title>По каталогам</title>
<link href="http://192.168.1.141:8001/opds/catalogs/" rel="alternate"/>
<updated>2016-12-27T19:51:12+00:00</updated>
<content type="text">Каталогов: 107, книг: 311428.</content>
</entry><entry>
<id>m:2</id>
<title>По авторам</title>
<link href="http://192.168.1.141:8001/opds/authors/" rel="alternate"/>
<updated>2016-12-27T19:51:12+00:00</updated>
<content type="text">Авторов: 86220.</content>
</entry><entry>
<id>m:3</id>
<title>По наименованиям</title>
<link href="http://192.168.1.141:8001/opds/books/" rel="alternate"/>
<updated>2016-12-27T19:51:12+00:00</updated>
<content type="text">Книг: 311428.</content>
</entry><entry>
<id>m:4</id>
<title>По жанрам</title>
<link href="http://192.168.1.141:8001/opds/genres/" rel="alternate"/>
<updated>2016-12-27T19:51:12+00:00</updated>
<content type="text">Жанров: 297.</content>
</entry><entry>
<id>m:5</id>
<title>По сериям</title>
<link href="http://192.168.1.141:8001/opds/series/" rel="alternate"/>
<updated>2016-12-27T19:51:12+00:00</updated>
<content type="text">Серий: 24603.</content>
</entry><entry>
<id>m:6</id>
<title>Книжная полка (olga)</title>
<link href="http://192.168.1.141:8001/opds/search/books/u/0/" rel="alternate"/>
<updated>2016-12-27T19:51:12+00:00</updated>
<content type="text">Книг прочитано (olga): 0.</content>
</entry></feed>
Last Edit: 8 years 2 months ago by Samidjin. Reason: убрал простыню под спойлер
Please Войти or Create an account to join the conversation.
- Samidjin
-
Topic Author
- Offline
- Новый участник
-
Less
More
- Posts: 2
8 years 2 months ago - 8 years 2 months ago #933
by Samidjin
Samidjin replied the topic: Проблема со встроенным сервером
Собственно разобрался в чем проблема.
Помогла инструкция по обновлению Django отсюда .
Теперь все работает отлично.
Единственно ошибка в обзаце инструкции была:
Next, remove default python 2 and change the default to python 3 with the 'update-alternatives' command:
update-alternatives --remove python /usr/bin/python2
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
Помогла инструкция по обновлению Django отсюда .
Теперь все работает отлично.
Единственно ошибка в обзаце инструкции была:
Next, remove default python 2 and change the default to python 3 with the 'update-alternatives' command:
update-alternatives --remove python /usr/bin/python2
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
Last Edit: 8 years 2 months ago by Samidjin.
Please Войти or Create an account to join the conversation.
- Samidjin
-
Topic Author
- Offline
- Новый участник
-
Less
More
- Posts: 2
Time to create page: 0.131 seconds