Git Product home page Git Product logo

Comments (4)

reinout avatar reinout commented on June 21, 2024

I looked up the mattbierner example. It looks fine.

You'll only get the production settings if you tell buildout to actually use the production settings, by the way. Are you doing that?

$ bin/buildout -c productioncfg

Just making sure... :-)

from djangorecipe.

wernight avatar wernight commented on June 21, 2024

No didn't do that. From the README it states "will use the right setting automatically", so I expected it'd use it for things like django.wsgi. Is there a way to have a different settings for bin/django.wsgi and bin/django?

from djangorecipe.

reinout avatar reinout commented on June 21, 2024

The recipe only has one settings = .... option, which it will use for everything that it generates.

The production.cfg that extends buildout.cfg is a common trick to overwrite certain things on the production server. Like using a different setting. This is what the README means.

If you really do not want to use a second buildout file for production, you could add a second djangorecipe part with your productionsettings? [devdjango] and [productiondjango]. That is not common usage, though. But it would give you a bin/devdjango and bin/productiondjango, each with different settings.

from djangorecipe.

wernight avatar wernight commented on June 21, 2024

Ah! Good idea. Thanks for the tip I think that'll do just fine.

May I suggest updating the README to clarify a little bit? May be just say something like: Using -c production.cfg will use production.cfg instead of the default buildout.cfg. If there is nothing specific for django receipe and it's only buildout code, could even be removed or linked to buildout.

Thanks for your help.

from djangorecipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.