Examples of Subclassing models.Field to Account for Postgresql Array Type?

2011-03-26 Thread Mazery Smith
Hello, I really would like to use the Postgresql Array type in some of my Django models but I see there is no direct mapping in Django unless I create my own by subclassing Field. I've read the documentation, I've tried to do it...I've failed miserably ;) Has anyone done this explicitly for

Initial Data SQL not sticking?

2011-03-26 Thread Daniel Pugh
Forgive if this is totally obvious, but I'm having a bit of trouble getting data into my first prototype with django. I am prototyping an application called repository, syncdb builds my tables and all seems to work in the admin interface. However, I have 600 lines of data I want to use as the

Initial Data SQL not sticking?

2011-03-26 Thread Daniel Pugh
Forgive if this is totally obvious, but I'm having a bit of trouble getting data into my first prototype with django. I have put together an application with three tables defined in models.py. syncdb builds them and all seems to work in the admin interface. I w -- You received this message

Admin widget, pass additional variable?

2011-03-26 Thread galgal
I user that method to show image im my ImageField edition: http://www.psychicorigami.com/2009/06/20/django-simple-admin-imagefield-thumbnail/ I need to pass to my widget 1 additional variable - thumbnail address. How can I pass that variable to widget? -- You received this message because you

Re: ManyToMany Intermediate Table on a Separate Database?

2011-03-26 Thread Mazery Smith
Thanks Daniel Roseman...you're always saving me ;) On Mar 26, 12:47 pm, Daniel Roseman wrote: > On Saturday, March 26, 2011 7:33:23 PM UTC, Mazery Smith wrote: > > > Hey, > > I tried setting up an intermediate manytomany table relationship where > > my intermediate table >

Re: Detect if file is being changed

2011-03-26 Thread Rekby
You can use pre_save, post_save signals: http://docs.djangoproject.com/en/1.3/topics/signals/ On Mar 25, 11:52 pm, galgal wrote: > But I don't use any forms. I have simple model with image and date. I use it > only in my Admin. -- You received this message because

Re: ManyToMany Intermediate Table on a Separate Database?

2011-03-26 Thread Daniel Roseman
On Saturday, March 26, 2011 7:33:23 PM UTC, Mazery Smith wrote: > > Hey, > I tried setting up an intermediate manytomany table relationship where > my intermediate table > is in one database, my user table (target table) is in a registration > database and my data table (source table) is in

Re: Verify sqlite connection from the comand line

2011-03-26 Thread Tim Johnson
* Shawn Milochik [110326 11:15]: > Follow the instructions in the beginning of the Django tutorial to set > up sqlite3 > as your database. > > Then: > > manage.py dbshell > > This should bring you to the sqlite3 interactive prompt if it works. > > For extra fun you can

ManyToMany Intermediate Table on a Separate Database?

2011-03-26 Thread Mazery Smith
Hey, I tried setting up an intermediate manytomany table relationship where my intermediate table is in one database, my user table (target table) is in a registration database and my data table (source table) is in another database. Things aren't working correctly and I'm just checking to make

Re: Verify sqlite connection from the comand line

2011-03-26 Thread Shawn Milochik
Follow the instructions in the beginning of the Django tutorial to set up sqlite3 as your database. Then: manage.py dbshell This should bring you to the sqlite3 interactive prompt if it works. For extra fun you can create a simple model then try this: manage.py syncdb This will

Verify sqlite connection from the comand line

2011-03-26 Thread Tim Johnson
FYI: I am putting together the resources for a tutorial (not development) on a slax OS running off of an SD card in an Asus Netbook. I am using currently available slax modules - sqlite-3.6.14.2, python-2.5.2 and django-1.1. Although some will want to recommend getting more current stuff, that is

Re: Tutorial Problems

2011-03-26 Thread ruler501
I thought it was more useful to have the entire filepath there with all files On Mar 26, 9:34 am, delegb...@dudupay.com wrote: > Do you have problems using pastebin??? > Sent from my BlackBerrywireless devicefrom MTN > > -Original Message- > From: ruler501 > >

Re: Tutorial Problems

2011-03-26 Thread ruler501
I thought it was more useful to have the entire filepath there with all files On Mar 26, 9:34 am, delegb...@dudupay.com wrote: > Do you have problems using pastebin??? > Sent from my BlackBerrywireless devicefrom MTN > > -Original Message- > From: ruler501 > >

Re: Django 1.3 - Question about static files

2011-03-26 Thread Igor Nemilentsev
On 26-03-2011, Sandro Dutra wrote: >Hello everyone! >I'm using Python 2.7.x with Django 1.3 and I've some questions about >the new way to set the static files for the dev server. >abspath = lambda *p: os.path.abspath(os.path.join(*p)) >PROJECT_ROOT =

Re: Tutorial Problems

2011-03-26 Thread ruler501
I thought it was more useful to have the entire filepath there with all files On Mar 26, 9:34 am, delegb...@dudupay.com wrote: > Do you have problems using pastebin??? > Sent from my BlackBerrywireless devicefrom MTN > > -Original Message- > From: ruler501 > >

Re: Tutorial Problems

2011-03-26 Thread delegbede
Do you have problems using pastebin??? Sent from my BlackBerry wireless device from MTN -Original Message- From: ruler501 Sender: django-users@googlegroups.com Date: Sat, 26 Mar 2011 07:32:13 To: Django users Reply-To:

Re: Tutorial Problems

2011-03-26 Thread ruler501
Sorry I tthought that would let you download. Here is another download http://www.mediafire.com/?aqdav0n22vz2uxt On Mar 25, 10:13 pm, Mike Ramirez wrote: > On Friday, March 25, 2011 08:03:30 pm ruler501 wrote: > > > I have been going through the tutorial and this is the code

Re: mod_wsgi - two sites on apache

2011-03-26 Thread CrabbyPete
I'm running apache on a windows server. I updated pywin32 and it works now. On Mar 25, 4:56 pm, Graham Dumpleton wrote: > Impossible to know because you haven't supplied the Apache configuration for > VirtualHosts to verify you have done it correctly. Also need to

Re: extend User Model for custom fields

2011-03-26 Thread Antonio Sánchez
Yeah sure, i should have used "recommended" word instead of correct. The difference between link i wrote and b-list is that the last one uses a foreign-key, while first uses one-to-one, and this is the way is recommended in doc, so... I think i will follow that post recommendations. Thanks

Re: Tutorial Problems

2011-03-26 Thread southof40
Yes put the code on pastebin and can you be a bit more explicit about the last thing that behaved as the tut says it should and the first thing that doesn't ? (I appreciate the latter should be derived from the former but just in case !). Also might be worth checking what version of Django you've

Re: RelatedManager - obj.x_set.add(y) doesn't work for me ?

2011-03-26 Thread southof40
> > > You are a bit confused about ForeignKeys. You have an FK from BookMark to > User. That means that each BookMark can only have one User, but one user can > have many bookmarks. That sounds right. > > So, there is no such thing as a `user_set` manager for BookMarks. There is > simply a