Wednesday, September 23, 2015

Re: custom setting provided by myapp

If you have a system based on Django (some CMS for example), rather than an app for folks to add to a site that has a lot of unrelated stuff, then sure, generate one, but don't replace one that may have hours of customization work into it.  Let the site owner/tech do the merging.  If there are no settings when you install, then, yes, you could create the active settings file.  But you might find that difficult as Django versions change, or if you are going to allow it to work with the user's choice of Django version.  One possible approach is to read in the existing settings, see what it doesn't have that you need, and produce a file that the main settings file could import * from.

On Wed, Sep 23, 2015 at 5:12 PM, Luis Zárate <luisza14@gmail.com> wrote:
Hi,

Sure, but why not auto-generate the setting file?, for example I know various CMS than have an installer that provide a custom setting with auto-generate configuration file (I don't know how to do that).

Other idea is that my app can add configuration if is not set explicitly, so the user have the possibility to change whatever he want and my app only guarantee that run well most of time.

2015-09-23 12:10 GMT-06:00 Bill Freeman <ke1g.nh@gmail.com>:
I would be upset to find an app that I installed fiddling with my project settings.

On Wed, Sep 23, 2015 at 12:53 PM, Luis Zárate <luisza14@gmail.com> wrote:
Hi,

l have an app than need other apps to run well, I create a requirements file and setup file and insert the required apps in my settings, also include my custom configurations.

I want to build the settings file automatically (with installer script) or when the user put my app in his installed_apps automatically update the project settings with my custom apps settings.

So what is the best approach for do that.



--
"La utopía sirve para caminar" Fernando Birri



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyMutG68Dh2MuC1h7-uL%3DRzw6Y9v7RM33k5WN8qH-i3VAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB%2BAj0s%3Det%2B7%2BvHVcGGz%2BAkbQNWykHoMqzX6gO-XxxRTE0xmLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
"La utopía sirve para caminar" Fernando Birri


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyMX_YcXaJuyNQi%2BQhfv7cepG5t4WXVnWM3eoyzyf5rV8w%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB%2BAj0sDU80C3hPEr7YLyTE-LbtdjVuptn%2BTBBGq1eN0hMqZ%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment