Comments (5)
Там по контексту должно быть понятно что и куда, если не вырывать сниппеты из документации. А так же в репозитории присутствует полная реализация этого самого туториала. Вроде ничего сложного, чтобы должно отпугнуть. Но если такое все нашлось - patches welcome!
from aiohttp-demos.
@nomhoi
Нет, это не специально.
А куски кода в "Creating connection engine" - отсюда:
https://github.com/aio-libs/aiohttp-demos/blob/master/demos/polls/aiohttpdemo_polls/db.py#L36
https://github.com/aio-libs/aiohttp-demos/blob/master/demos/polls/aiohttpdemo_polls/main.py#L25
Как дельно предложил kxepal - есть возможность улучшить.
from aiohttp-demos.
Там по контексту должно быть понятно что и куда, если не вырывать сниппеты из документации.
Я решил не скачивать сразу все исходники и сделать все шаг за шагом, как это предлагается в документации.
А так же в репозитории присутствует полная реализация этого самого туториала.
Про это есть в документации, в самом начале.
Вроде ничего сложного, чтобы должно отпугнуть.
Это да, мне удалось пробиться. Скачал проект из репозитории и запустил. Правда пришлось переместить main.py в папку выше.
Но если такое все нашлось - patches welcome!
Пока ничего не буду патчить, пока изучаю.
from aiohttp-demos.
Нет, это не специально.
Вот пример замечательной документации:
https://code.visualstudio.com/docs/python/tutorial-django#getstarted-articles
-
Когда мы выполняем шаг за шагом предлагаемые действия, то к концу туториала мы должны получить тот-же код, который предлагается на гитхабе, чего не наблюдается.
По туториалу с самого начала мы запускаем сервер с помощью python main.py, если находимся в папке aiohttpdemo_polls, или aiohttpdemo_polls/main.py, если находимся в pools. И это работает в начале.
С раздела Templates уже не работает, потому что нужно запускать с помощью команды python -m aiohttpdemo_polls, и все равно не будет работать, потому что еще нет нужного файла main.py. -
В туториале в одном месте указано from models import question, choice - нет такого модуля, есть db.
-
Про то, что в конце раздела Database не указываются куда какой код добавлять - уже ранее написал.
В общем, туториал производит жуткое впечатление.
from aiohttp-demos.
@nomhoi спасибо за замечания, поправлю
from aiohttp-demos.
Related Issues (20)
- data is not getting populated while running `sample_data(engine)` while seeding the polls data HOT 2
- why run 'python init_db.py' show information that 'ModuleNotFoundError: No module named 'utils''?? HOT 3
- Automatically give write access to the author on PR merging
- TravisCI needs updating HOT 1
- Replace aiopg[sa] with sqlalchemy
- Replace trafaret with pydantic HOT 3
- Plans to add Typing? HOT 1
- Update moderator model HOT 2
- Unable to run moderator on aiohttp 3.8.3 HOT 1
- Migrate from aioslacker in moderator_bot demo
- Add tests for motortwit
- Add tests for shortify
- Migrate to sqlalchemy 2
- polls app tutorial import error HOT 2
- mising "services" in shortify docker-compose file
- Imagetagger demo app failing while "Make run" command HOT 2
- Error running ImageTagger demo app. HOT 1
- Graphql demo code throwing error HOT 6
- AttributeError: 'coroutine' object has no attribute '_set_loop' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiohttp-demos.