Hello everyone,

First post on this mailing list. Big thanks to the community and the core dev
of Django!

I'm using Django 1.7c1 with python 3.2 or 3.4.

I'm splitting lots of my website as Django apps. So my main app is handling
(only) the urls routing, the settings, some tests and that's it.

I want to do some data migrations. For example add some
django.contrib.sites.models.Site objects to the database when I migrate my
app. Or some flags (django-waffle) etc. All the data relates to this app.

I don't want to put this data migration into the django.contrib.sites folder
cause it's already packaged as root etc. So it's not runnable from my
development user (to create or read the file into the folder). And it's the
same problem for all these apps I want to add data into.

If I run "python3 manage.py makemigrations --empty <app>", it create the
0001_initial.py migrations. I create the function to add the data inside the
database, and try to run the migrations with "python3 manage.py migrate
<app>", but get the error:

    "CommandError: App <app> does not have migrations (you cannot selectively
    sync unmigrated apps)"

So I'm searching how can I make this <app> migrated? Create an empty initial
migrations? so the django migrations take this app into account.

Thank you for all your help

aRkadeFR

-- 
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+unsubscr...@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/20140715142108.GA10827%40rkade-thinkpad.
For more options, visit https://groups.google.com/d/optout.

Reply via email to