Saturday, October 13, 2012

Re: Create table and load data

Thanks Kurtis. That's will save me a bit of time. I'm going to dig
into it now. I'll let you know what I find.

On Fri, Oct 12, 2012 at 2:25 PM, Kurtis Mullins
<kurtis.mullins@gmail.com> wrote:
> Whoops, sorry that was the master branch. Here you go:
> https://github.com/django/django/blob/1.4.1/django/core/management/commands/syncdb.py
>
>
> On Fri, Oct 12, 2012 at 4:24 PM, Kurtis Mullins <kurtis.mullins@gmail.com>
> wrote:
>>
>> Good luck to you! The code is here if you want to start crawling through
>> it for a good point to place a breakpoint:
>> https://github.com/django/django/blob/master/django/core/management/commands/syncdb.py
>>
>>
>> On Fri, Oct 12, 2012 at 3:30 PM, Larry Martell <larry.martell@gmail.com>
>> wrote:
>>>
>>> On Fri, Oct 12, 2012 at 12:22 PM, Kurtis Mullins
>>> <kurtis.mullins@gmail.com> wrote:
>>> > On Fri, Oct 12, 2012 at 2:09 PM, Larry Martell
>>> > <larry.martell@gmail.com>
>>> > wrote:
>>> >>
>>> >>
>>> >> So my client decided to use xml. I created the file and put it in
>>> >> fixtures/initial_data.xml. On my development machine, which is a Mac,
>>> >> it worked fine - running syncdb loaded the data. But on my client's
>>> >> machine, which is running CentOS, running syncdb did not load the data
>>> >> (it said 'Installed 0 object(s) from 0 fixture(s)'). But when I ran:
>>> >>
>>> >> manage.py loaddata fixtures/initial_data.xml
>>> >>
>>> >> That worked. Anyone have any ideas why sycndb worked on my mashine,
>>> >> but it's not working on theirs?
>>> >
>>> >
>>> > That's very weird. I haven't seen that affect off-hand. I've worked
>>> > with
>>> > Django on Linux (CentOS, Ubuntu, Debian) as well as OSX and it has
>>> > always
>>> > tended to work fine. I'm not sure on a solution other than to keep
>>> > checking
>>> > for inconsistencies or issues with the .xml file itself. Hopefully
>>> > someone
>>> > else who has ran into this problem before can chime in and offer some
>>> > help.
>>> > Good luck!
>>>
>>> Yeah, I don't think it's platform dependent. The xml file was pulled
>>> from our git repository, and it matches mine. And it works with
>>> loaddata. I'll have to set a breakpoint and see why manage doesn't see
>>> the file.
>>>
>>> --
>>> 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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate