简体   繁体   中英

How to create simple python project using buildout?

I'm developing a Django application with buildout. I configured everything properly, it's working like a charm (at least during the development).

I want to create a companion project (module?), within the same buildout.cfg. How do you do that with buildout? I want my module to use tornado web server to serve deferred results, independently from django.

You have to add another part:

[buildout]
parts = django tornado

[django]
recipe = z3c.recipe.scripts
eggs =
    Django
    # DjangoDevKit

[tornado]
recipe = z3c.recipe.scripts
eggs = Tornado

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