An intermediate approach would be to generate an initial_data.json/yaml file and place it in your project's fixtures directory. This at least should be database independent.
https://docs.djangoproject.com/en/dev/howto/initial-data/
Brian Schott
bfschott@gmail.com
On Jul 3, 2012, at 1:33 PM, Robert Steckroth wrote:
> Hey Gang, I am writing a framework to install django projects to the cloud. Currently I have the user specifying
> the site domain and site name in a config file for the django.sites framework and providing the site_id in settings.py.
> Personally, I change the django.sites entries by issuing mysql commands to the database.
> Can any of you provide the most common/best way that the django.sites object is created?
> Is it usually provided in the settings.py file? Or is a database change your current method?
> The docs don't seem to get into how this object get created. Also, is this object created with the syncdb command?
> Much thanks to any help.
>
> --
> Bust0ut, Surgemcgee: Systems Engineer ---
> PBDefence.com
> BudTVNetwork.com
> RadioWeedShow.com
> "Bringing entertainment to Unix"
>
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment