On 5/12/07, Christian M Hoeppner <[EMAIL PROTECTED]> wrote:
>
> > I don't know much about Symfony, but as I understand what you are
> > saying, the Django approach to achieving this would be to have
> > multiple fixtures, one for each 'environment'.
> This one was more of an off-topic comment. Environments in Symfony are about
> settings, not about fixtures. You're able to set different settings for each
> environment.

Django doesn't have a specifically analogous concept, but there is a
way to get the same functionality.

Write a different settings file for each 'environment', and use the
--settings option on manage.py (or the DJANGO_SETTINGS_MODULE
environment variable if you're using mod_python/fcgi) to point to each
settings file.

If there are settings common to all environments (INSTALLED_APPS
should be fairly common), you can put the common settings into a file,
then put

from common_settings import  *

at the top of each of your environment-specific settings files.

> > If you want a more elaborate example, use ./manage.py dumpdata
> > --format=yaml
> What I get:
>
>         > [EMAIL PROTECTED] weblog]$ ./manage.py dumpdata --format=yaml
>         > Unknown serialization format: yaml
>         > Unable to serialize database: 'yaml'
>         > None
>         > [EMAIL PROTECTED] weblog]$
>
> I've done a svn update to the trunk, just in case, and still...

Ah - Sorry. I forgot to mention that you need to have pyyaml
(http://pyyaml.org/) installed. If it isn't the YAML serializer will
be disabled.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to