Re: Looking for common practice suggestion.

2012-07-03 Thread Brian Schott
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
bfsch...@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Looking for common practice suggestion.

2012-07-03 Thread Robert Steckroth
Well, I guess the user will have to specify the domain and name in the
config file.
I was hoping the information could be provided in the settings file. Only
other way is the
admin system which isn't necessary for an otherwise completely automated
process.

On Tue, 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"
>
>


-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Looking for common practice suggestion.

2012-07-03 Thread Robert Steckroth
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.