Re: updating site domain with data migration

2014-09-23 Thread Anil Jangity
Markus, one specific question re your blog post. "What happens when you call python manage.py makemigrations? First of all, since no apps are given, Django reads the migrations from all apps listed in INSTALLED_APPS. In our case, this is ('author', 'book',). " I have the following in

Re: updating site domain with data migration

2014-09-22 Thread Markus Holtermann
On Mon, Sep 22, 2014 at 08:41:36AM -0700, Anil Jangity wrote: If I don't use syncdb, I should also create the super user account using data migration? If so, it seems like I need to go do User.objects.create_superuser(). There still is the option of running "python manage.py createsuperuser"

Re: updating site domain with data migration

2014-09-22 Thread Anil Jangity
Thanks, looks like I need to do a second pass at the documentation. ;-) In my dev environment, I was trying to do a clean/fresh install; including the creation of the super user account. If I don't use syncdb, I should also create the super user account using data migration? If so, it seems

Re: updating site domain with data migration

2014-09-21 Thread Markus Holtermann
Hey Anil, On Sun, Sep 21, 2014 at 05:29:18PM -0700, Anil Jangity wrote: $ python manage.py syncdb Just as a side note: "syncdb" is deprecated and is being replaced by "migrate". I have a main/migration/update_site.py: def update_site(apps, schema_editor): current_site =

updating site domain with data migration

2014-09-21 Thread Anil Jangity
I wanted to update the site domain/name using data migrations in Django 1.7: $ python manage.py makemigrations main Migrations for 'main': 0001_currencies_locations_posts_userprofile.py: - Create model Currencies - Create model Locations - Create model Posts - Create model