Re: How to load data to auth_permissions from initial_data.json when the auth_groups is also loaded from fixture?

2011-11-08 Thread Jason
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

How to load data to auth_permissions from initial_data.json when the auth_groups is also loaded from fixture?

2011-10-28 Thread ycseattle
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

Re: How to load data from local static path in templates (security error)

2011-08-18 Thread Tom Evans
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

Re: How to load data from local static path in templates (security error)

2011-08-17 Thread Daniel Roseman
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

Re: how to load data?

2009-05-23 Thread Reiner
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'),

Re: how to load data?

2009-05-22 Thread Herta
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

Re: how to load data?

2009-05-22 Thread Alex Gaynor
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

Re: how to load data?

2009-05-22 Thread George Song
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

how to load data?

2009-05-22 Thread Herta
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