我们可以在云托管中安装任何模块吗?

问题描述

这是我第一个使用 Python 和 Django 的应用程序,我无法在共享虚拟主机中安装所有这些模块。所以我有一个查询,我可以在云托管中安装任何模块,例如:

asgiref==3.2.10
atomicwrites==1.4.0
attrs==19.3.0 colorama==0.4.3
Django==3.1
iniconfig==1.0.1
install==1.3.3
more-itertools==8.4.0
olefile==0.46
packaging==20.4
Pillow==7.2.0
pluggy==0.13.1
psycopg2==2.8.5
psycopg2-binary==2.8.5
py==1.9.0
pyparsing==2.4.7
pytest==6.0.1
pytz==2020.1
six==1.15.0
sqlparse==0.3.1
toml==0.10.1

请指导我如何托管我的 Django 网站...谢谢

解决方法

是的,您通常在 requirements.txt 的帮助下安装模块。托管小型网站的最佳选择之一是 heroku.com ,您可以在此处找到文档和入门:https://devcenter.heroku.com/start