简体   繁体   中英

Problems with deploying fabric for mezzanine

As I think I understand it, fabric contains this command which is supposed to configure a server for your mezzanine-django project:

fab all

I get this error:

Aborting, no hosts defined.

The docs for fabric are confusing for me on this aspect. I'm not sure where/how to edit this hosts option.

Thanks, friends.

EDIT Relevant contents of settings.py

 # Hosts/domain names that are valid for this site; required if DEBUG is False # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts ALLOWED_HOSTS = ['.domain.com','.domain.com.',] 

有一个如何在Mezzanine Deployment文档中设置主机配置的示例( http://mezzanine.jupo.org/docs/deployment.html#configuration

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM