Tx a lot "Restless"...
As yr post took me a while to decipher it and get most of the info, I
thought it might be usefull to post extra info based on yr post.
Django allows for extension to the command line (./manage.py).
One of the extension is provided by Google :
http://code.google.com/p/django-
On 11 Cze, 12:19, tsmets wrote:
> 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 be
On Fri, Jun 11, 2010 at 6:19 AM, tsmets wrote:
...
>
> 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 ?
>
...
One possibility is to write yourself one or more management commands
which you could invoke by hand,
I have a XML fixture with the language codes if you need it:
http://pastebin.com/U4cAxXzY
On Fri, Jun 11, 2010 at 12:19, tsmets wrote:
> 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 o
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
¿Are you setting the variable FIXTURES_DIR in settings.py?
On Fri, Jun 11, 2010 at 12:03, Kenneth Gonsalves 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 . -ty
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.j
Hello,
Fixtures are described in the documentation, especially there:
http://docs.djangoproject.com/en/dev/howto/initial-data/#automatically-loading-initial-data-fixtures
You have to follow the name convention to get them automatically loaded.
Regards,
Xavier.
--
You received this message beca
When I run the syncdb :
[code]
Thomas-SMETSs-MacBook-Pro:sportotop tsmets$ ./manage.py syncdb
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating t
9 matches
Mail list logo