The problem was just the naming convention ... They should have been named initial_data.json as mentionned in the URL provided by Xavier.
Any help on how to run python scripts directly to create my data sets .... ? What I do now is fine but could be better automated ? [code] from sportotop.Base.models import * countries = [] countries.append(Country(iso_code='FR', name='France')) countries.append(Country(iso_code='DE', name='Germany')) countries.append(Country(iso_code='NL', name='Nederlands')) countries.append(Country(iso_code='UK', name='United Kingdom of Great Britain and Northern Ireland')) countries.append(Country(iso_code='PT', name='Portuges')) countries.append(Country(iso_code='CA', name='Canada')) countries.append(Country(iso_code='DK', name='Denmark')) countries.append(Country(iso_code='BE', name='Belgium')) countries.append(Country(iso_code='SE', name='Sweden')) countries.append(Country(iso_code='IT', name='Italy')) countries.append(Country(iso_code='SP', name='Spain')) countries.append(Country(iso_code='CR', name='Croatia')) countries.append(Country(iso_code='HU', name='Hungary')) for ctry in countries: ctry.save() [/code] On Jun 11, 12:06 pm, Alexandre González <a...@mirblu.com> wrote: > ¿Are you setting the variable FIXTURES_DIR in settings.py? > > > > > > On Fri, Jun 11, 2010 at 12:03, Kenneth Gonsalves <law...@au-kbc.org> wrote: > > On Friday 11 June 2010 14:20:59 tsmets wrote: > > > But I have json's files in multiple "fixtures" directories. > > > [code] > > > Thomas-SMETSs-MacBook-Pro:sportotop tsmets$ find . -type f -name > > > "*.json" | grep -v "\.svn" > > > ./Base/fixtures/Sports.json > > > ./fixtures/Base-with-UserProfilesAndClubsNoAddresses.json > > > ./fixtures/Users-Club-Roles-Addresses-CollectiveSports.json > > > ./fixtures/Users-Club-Roles-Addresses-Sports.json > > > ./fixtures/Users-Club-Roles-Addresses.json > > > [/code] > > > > Why doesn't it pick them up ... ? > > > where are these files? they should be in a fixtures directory which is at > > the > > same level as your models.py and views.py > > -- > > Regards > > Kenneth Gonsalves > > Senior Associate > > NRC-FOSS at AU-KBC > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@google > > groups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/django-users?hl=en. > > -- > Please, don't send me files with extensions: .doc, .docx, .xls, .xlsx, .ppt > and/or .pptxhttp://mirblu.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.