Tuesday, April 17, 2018

Multiple settings files with sites framework

What is the best way to structure multiple settings files when using the Sites framework?

I've already got a base settings file along with a local, staging and production file which inherits from this and makes some changes/additions.

But now I need to use the Sites framework so I need another bunch of files that set the relevant SITE_ID, change the TEMPLATES directory etc.

I'm just not sure how to lay all of this out so that the site settings files can inherit (and then potentially override) the correct settings from local, staging or production.

Any ideas?

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f72d6853-e16d-4d82-b2f5-fede38ea9f63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 comment:

  1. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    3D Laser Scanning Targets
    3D Scanning Reverse Engineering
    Reverse Engineering Services

    ReplyDelete