I'm investigating this as well. I just read that using the natural
keys dumpdata option might help.
https://docs.djangoproject.com/en/dev/topics/serialization/#topics-serialization-natural-keys
On Oct 28, 9:48 am, ycseattle wrote:
> Hi,
>
> In my application, I have fixed groups (like admin, sta
Hi,
In my application, I have fixed groups (like admin, staff, subscribers)
etc, and this data in auth_groups is not intended to change in the program,
so I am loading them in initial_data.json. I also want to load data into
auth_group_permissions as the application is not expected to change i
On Wed, Aug 17, 2011 at 8:39 PM, Daniel Roseman wrote:
> On Wednesday, 17 August 2011 19:00:13 UTC+1, Adam Zedan wrote:
>>
>> Hi it seems I cant access data from local static paths such as
>> c:\\somefolder\somefile.gif in my templates when I enter the url
>> the code for my template is simplified
On Wednesday, 17 August 2011 19:00:13 UTC+1, Adam Zedan wrote:
>
> Hi it seems I cant access data from local static paths such as
> c:\\somefolder\somefile.gif in my templates when I enter the url
> the code for my template is simplified to something like this
>
>
>
>
>
> D
Fields seperated with \t sounds a bit like a CSV export right? I
needed to import CSV too, so I used the csv module to parse the file
and then django models to store it in the database, no custom sql
needed.
# set up django environment
[ ... ]
import csv
reader = csv.reader(open('file.csv', 'r'),
The input file is a plain txt file with \t, I just want to know if
there is a function to import data from the existing file, if i don't
write a script with a sql='insert into table values(...) '
On May 23, 8:43 am, George Song wrote:
> On 5/22/2009 5:07 PM, Herta wrote:
>
> > I want to load dat
On Fri, May 22, 2009 at 7:43 PM, George Song wrote:
>
> On 5/22/2009 5:07 PM, Herta wrote:
> > I want to load data to database (sqlite3 ) from file. I have already
> > connect django and my database, and build the tables but how can i
> > load data from file?
>
> What kind of files are these? If
On 5/22/2009 5:07 PM, Herta wrote:
> I want to load data to database (sqlite3 ) from file. I have already
> connect django and my database, and build the tables but how can i
> load data from file?
What kind of files are these? If they are existing legacy data files,
you'll have to write some so
Hi, everyone,
I want to load data to database (sqlite3 ) from file. I have already
connect django and my database, and build the tables but how can i
load data from file?
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
9 matches
Mail list logo