Re: Django + tiny_mce

2008-07-11 Thread ColdSun
Try changing your change_form.html to reflect the nested directories (by including "../" for each level of directory its in... or, as a simplier fix: Change: to http://127.0.0.1:8000/tiny_mce/ tiny_mce.js"> --~--~-~--~~~---~--~~ You received this message

Re: Accessing Components of a MultipleChoiceField

2008-07-11 Thread Malcolm Tredinnick
On Fri, 2008-07-11 at 14:57 -0700, Tim wrote: > I would like some finer control over the display of a > MultipleChoiceField, but I'm not sure how to get to the individual > components (in my case, checkboxes). For example, if I define the > field in the form like so: > > tags = >

Re: ANN: Join us at a sprint!

2008-07-11 Thread Julien Phalip
... and for the impatient ones, there's a sprint starting... now! It is physically taking place at Europython, but as for other sprints any one can join from all around the world. For for info: http://code.djangoproject.com/wiki/SprintEuroPython2008 On Jul 12, 8:25 am, "Jacob Kaplan-Moss"

Re: Accessing Components of a MultipleChoiceField

2008-07-11 Thread J Meier
This is similar to my question about radio boxes. I hacked in a solution, but I haven't found a proper one yet. Maybe we should raise the issue on the developer's list? [0] http://groups.google.com/group/django-users/browse_thread/thread/0707e4e3665e9cb0# On Jul 11, 3:57 pm, Tim <[EMAIL

Re: Two edit_inlines between the same two models?

2008-07-11 Thread J Meier
I might try setting up Trip without direct reference to the QMs, and QMs with two references to Trip: class Trip(models.Model): ... trip stuff ... class QM(models.Model): found_during = models.ForeignKey(Trip, related_name=''found_qms") killed_during = models.ForeignKey(Trip,

RE: URLS outside of the actual site but on the same domain

2008-07-11 Thread Administration
Actually I apologize. It worked. We were looking at the wrong config file. Raven -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, July 11, 2008 1:46 PM To: Django users Subject: Re: URLS outside of the actual

ANN: Join us at a sprint!

2008-07-11 Thread Jacob Kaplan-Moss
Howdy folks -- Django 1.0 is about two months away — time to get cracking! To help get everything done by the deadline, we'll be holding a series of sprints. Over the next six weeks we'll hold sprints in Sausalito, Lawrence, Austin, and Portland, and virtually all over the world. Each sprint

Re: Two edit_inlines between the same two models?

2008-07-11 Thread Aaron
*- "and" in "for a given QM, and which trip found it," On Jul 12, 12:16 am, Aaron <[EMAIL PROTECTED]> wrote: > Thanks Richard, > > The reason I didn't do it that way is because I want to be able to > look up later for a given QM, and which trip found it, and if it is > dead, which trip killed

Re: Two edit_inlines between the same two models?

2008-07-11 Thread Aaron
Thanks Richard, The reason I didn't do it that way is because I want to be able to look up later for a given QM, and which trip found it, and if it is dead, which trip killed it. This is important because then, for example, you could go find someone who was there and talk to them about it. Do

Re: urllib https post and parsing question

2008-07-11 Thread Norman Harman
Bobby Roberts wrote: > Hi group. I'm using urllib to send information to my payment > processor via https as follows: > > [snip] > import urllib > > [snip] > > DataPacket = urllib.urlopen(PostUrl , DatatoSend) > PayResponse = DataPacket.read() > PayResponse.close() > > PostUrl is the url i'm

RE: URLS outside of the actual site but on the same domain

2008-07-11 Thread Administration
Thank you for all of your replies. However none of it worked. Raven -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Roseman Sent: Thursday, July 10, 2008 1:57 PM To: Django users Subject: Re: URLS outside of the actual site but on

Re: Not Django related, but would love your opinions

2008-07-11 Thread Jon Brisbin
Don't do that! I like living out here in Missouri, raising my chickens and my garden, and staying the hell away from you crazy city folk! ;) Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 2:36 PM, blis102 wrote: > This is insane... > > If this actually happens Im just going to

Re: Automatic Image Resizing upon Upload

2008-07-11 Thread blis102
You could also use django-photologue. Its quite powerful and very useful in templates: http://code.google.com/p/django-photologue/ Cheers, Dana On Jul 11, 12:47 am, "Ben Ford" <[EMAIL PROTECTED]> wrote: > Or you could have a look at google appengine for your image storage. They > have an

Re: Not Django related, but would love your opinions

2008-07-11 Thread blis102
This is insane... If this actually happens Im just going to become a farmer... On Jul 10, 4:48 pm, Frantisek Malina <[EMAIL PROTECTED]> wrote: > http://vizualbod.com/articles/usnetworkneutrality > Just to worry you less, I’ll start running a couple huge proxies in > central Europe for all of

Re: URLS outside of the actual site but on the same domain

2008-07-11 Thread Rajesh Dhawan
On Jul 10, 5:41 pm, Dan Ellis <[EMAIL PROTECTED]> wrote: > On Jul 10, 9:52 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > >http://www.djangoproject.com/documentation/static_files/ > > This isn't going to work. A forum is a dynamic site, so some of it > will be served by, for example, CGI. To

Re: Behavior of add(obj1...) and remove(obj1...)

2008-07-11 Thread Rajesh Dhawan
On Jul 10, 5:37 pm, "Beetle B." <[EMAIL PROTECTED]> wrote: > Hi, > > If I do some_object.users.add(user), it won't complain if the user was > already in some_object. > > Likewise, if I do some_object.users.remove(user), it won't complain if > the user was never there. > > Can I rely on this

Re: extension of generic views...

2008-07-11 Thread Rajesh Dhawan
On Jul 10, 5:41 pm, [EMAIL PROTECTED] wrote: > what's the best way with django to remember a page and redirect to > that page. > > so if you're atwww.mysite.com/entries/2008/jul/04/this-is-my-entry > and you click a link that stores something in a different db field > that once it goes through

Drop down menu using django forms

2008-07-11 Thread Django_newbie
Hey Guyz, I am trying to create a UI which has Buttons , Radio Buttons and Dropdown menu's, I need some documentation which helps me in using advance forms and explains how to design these? Thanks, Mark --~--~-~--~~~---~--~~ You received this message because you

Re: newforms-admin delete uploaded file/image

2008-07-11 Thread Rajesh Dhawan
Hi again, > With newforms-admin is there any way to add a 'delete' checkbox or > something to a FileField/ImageField? Basically, we'd like the ability > to remove an image that's been uploaded without having to replace it > with something else. The whole idea of newforms-admin is that you can

Re: postgres schema support

2008-07-11 Thread Brot
Hello, I think there are a few open-tickets for this topic: http://code.djangoproject.com/ticket/1051 http://code.djangoproject.com/ticket/6148 http://code.djangoproject.com/ticket/2120 Bernd On Jul 11, 3:50 pm, Jon Brisbin <[EMAIL PROTECTED]> wrote: > I hardly ever put anything in the

Re: Customizing newforms-admin

2008-07-11 Thread Rajesh Dhawan
Hi Josh, > What I'm trying to do is re-order the apps and models as they appear > on the admin index, so if there's some other way to do this that I'm > not aware of I'd be just as happy. You can extend django.contrib.admin.sites.AdminSite with your own custom class. Then, extend the method

Re: postgres schema support

2008-07-11 Thread Scott Moonen
Aah, I think you'll need to create the schema yourself. -- Scott On Fri, Jul 11, 2008 at 10:35 AM, Jon Brisbin <[EMAIL PROTECTED]> wrote: > Will this actually create the schema, though? Or will that have to be done > manually, with Django managing the tables inside the schemas I create >

Re: postgres schema support

2008-07-11 Thread Jon Brisbin
Will this actually create the schema, though? Or will that have to be done manually, with Django managing the tables inside the schemas I create myself? Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 9:01 AM, Scott Moonen wrote: > Hi Jon. I believe you can use the Django

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
These changes sound like just what I need. Thanks for the explanations. I update my SVN checkout almost every day, so I'll be on the lookout for these changes... Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 8:51 AM, Marty Alchin wrote: > > On Fri, Jul 11, 2008 at 9:08 AM,

Re: Customizing newforms-admin

2008-07-11 Thread Josh
Anybody? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For

Re: CSV updater, 2 saves in one function. Problem?

2008-07-11 Thread Frantisek Malina
Thank you for your input all. Now it works perfect: http://dpaste.com/hold/62755/ I've inserted print statements by every line just to find out I forgot to call products = Product.objects.order_by('sku') after the second save() to get the updated stock. That said it always worked, I just

newforms-admin delete uploaded file/image

2008-07-11 Thread Josh
With newforms-admin is there any way to add a 'delete' checkbox or something to a FileField/ImageField? Basically, we'd like the ability to remove an image that's been uploaded without having to replace it with something else. --~--~-~--~~~---~--~~ You received

Re: Form hasn't got save attribute

2008-07-11 Thread Malcolm Tredinnick
On Fri, 2008-07-11 at 16:06 +0200, Florencio Cano wrote: [...] > I supposed that every object from any class inherited from > newforms.Form already had a save attribute!?!? Why would you suppose that? A form is a class that holds information about an HTML form. That's all. ModelForms have a

Re: generating tables and forms at runtime with the django subsystem

2008-07-11 Thread José Moreira
Righ on brother man :) thank you 2008/7/3 bruno desthuilliers <[EMAIL PROTECTED]>: > > > > On 1 juil, 15:04, "José Moreira" <[EMAIL PROTECTED]> wrote: >> hello, >> >> i'm a recent django developer. Sometime soon i will have to develop a >> module for a cms solution to allow the content

Form hasn't got save attribute

2008-07-11 Thread Florencio Cano
Hello, I have this piece of code: from django import newforms as forms class RegistroForm(forms.Form): username = forms.CharField(max_length=30) password = forms.CharField(max_length=20, widget=forms.PasswordInput()) nombre = forms.CharField(max_length=50) email

Re: Formsets or Forms with Subforms

2008-07-11 Thread Malcolm Tredinnick
On Fri, 2008-07-11 at 06:59 -0700, Alex wrote: > I have been trying to find a fairly generic way of creating forms that > fill related models similar to the admin method of presenting the main > form and then multiple forms for related objects that can be added in > batches (ex, the tabular

Re: Operational error on Post method

2008-07-11 Thread Malcolm Tredinnick
On Fri, 2008-07-11 at 07:00 -0700, allisongardner wrote: > Thanks for your reply. I have come up against this issue before. > Clearly I have an older version and need to get the svn release. > Looked up what to do and i need subversion (which i think I have). > Problem is a friend loaded

Re: postgres schema support

2008-07-11 Thread Scott Moonen
Hi Jon. I believe you can use the Django model meta property db_table to specify the schema. According to ticket #6064you need to use somewhat hackneyed syntax at the moment (notice the outer single quotes and the explicit inner double quotes): class

Formsets or Forms with Subforms

2008-07-11 Thread Alex
I have been trying to find a fairly generic way of creating forms that fill related models similar to the admin method of presenting the main form and then multiple forms for related objects that can be added in batches (ex, the tabular form). This is a common requirement but I haven't been able

Re: Operational error on Post method

2008-07-11 Thread allisongardner
Thanks for your reply. I have come up against this issue before. Clearly I have an older version and need to get the svn release. Looked up what to do and i need subversion (which i think I have). Problem is a friend loaded everything for me and I haven't a clue where anything is. I need to type

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
Awesome! Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 8:37 AM, Malcolm Tredinnick wrote: > > > On Fri, 2008-07-11 at 08:35 -0500, Jon Brisbin wrote: >> I've considered a custom field. I just don't think I know Django well >> enough yet to pull it off quickly. I'm still learning

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Marty Alchin
On Fri, Jul 11, 2008 at 9:08 AM, Jon Brisbin <[EMAIL PROTECTED]> wrote: > I was a little bummed to discover that the Postgres blob support we depend > on at work I can't use through Django in a project for myself. I'm trying to > keep multiple versions of an original document (including the

postgres schema support

2008-07-11 Thread Jon Brisbin
I hardly ever put anything in the Postgres "public" schema except for things I want exposed to all applications and tables within a database. I usually segregate the tables into schemas based on their relationship to one another. With several hundred tables in the database, this gets

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Malcolm Tredinnick
On Fri, 2008-07-11 at 08:35 -0500, Jon Brisbin wrote: > I've considered a custom field. I just don't think I know Django well > enough yet to pull it off quickly. I'm still learning the basics and > this advanced usage of it is a little beyond my understanding at the > moment. I could probably

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
I've considered a custom field. I just don't think I know Django well enough yet to pull it off quickly. I'm still learning the basics and this advanced usage of it is a little beyond my understanding at the moment. I could probably figure it out, but I don't know how long that would take

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Karen Tracey
On Fri, Jul 11, 2008 at 9:08 AM, Jon Brisbin <[EMAIL PROTECTED]> wrote: > I was a little bummed to discover that the Postgres blob support we depend > on at work I can't use through Django in a project for myself. > Have you considered writing a custom field?

since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
I was a little bummed to discover that the Postgres blob support we depend on at work I can't use through Django in a project for myself. I'm trying to keep multiple versions of an original document (including the embedded content that's inside the file) and had planned on using blobs to

Re: django-registration

2008-07-11 Thread Julien Phalip
django-registration uses the standard settings for sending emails. You need to use the following settings: EMAIL_USE_TLS (Set to True if using Gmail) EMAIL_HOST EMAIL_HOST_USER EMAIL_HOST_PASSWORD EMAIL_PORT More info is available here: http://www.djangoproject.com/documentation/settings/

RE: "remote models" with django?

2008-07-11 Thread Emily Rodgers
So you want it to interact with the db that app A would normally interact with (not just copy your schema / methods)? I don't really know how you can do that :( I have managed to interact with my db, via my django models in an app installed in project 'my_proj', from an external script using:

Re: How to display the images in the template page under the django development server

2008-07-11 Thread Arien
On Fri, Jul 11, 2008 at 4:37 AM, Eric Liu <[EMAIL PROTECTED]> wrote: > When I create a app and try to show a image in the the html ,I ran > into trouble that is the images can't be shown in the page.following > is my page code: > > [...] > > [...] In HTML, the end tag of the img element must be

Re: Operational error on Post method

2008-07-11 Thread Malcolm Tredinnick
On Fri, 2008-07-11 at 04:47 -0700, allisongardner wrote: > Okay, not sure anyone is going to bother to read this but I hope so: I > have read the ticket (understood about a 10th) and looked at the > changeset 6187. I am assuming I copy and paste this somewhere but > precisely what do i copy and

Re: "remote models" with django?

2008-07-11 Thread lgr888999
I was looking for something like rails activeresources In app A, just a regular model class Bar(models.Model): text = models.CharField(_('text'), max_length=140) in app B #ok i cant figure out any better name than RemoteModel atm class Bar(models.RemoteModel): site =

Re: Operational error on Post method

2008-07-11 Thread allisongardner
Okay, not sure anyone is going to bother to read this but I hope so: I have read the ticket (understood about a 10th) and looked at the changeset 6187. I am assuming I copy and paste this somewhere but precisely what do i copy and paste it into and how do I find the file...not to confident about

Re: Operational error on Post method

2008-07-11 Thread allisongardner
Okay found Ticket #1760 which highlights the problem (I looked for ages before but only ever find things AFTER i have asked for help...makes me look a real numopy!). order_with_respect_to statement was the problem. Good this...I answer myself! On Jul 11, 12:18 pm, allisongardner <[EMAIL

Re: How to display the images in the template page under the django development server

2008-07-11 Thread Kenneth Gonsalves
On 11-Jul-08, at 3:07 PM, Eric Liu wrote: > http://lawgon.livejournal.com http://nrcfosshelpline.in/code/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

documentation-creating app

2008-07-11 Thread Jonathan Lukens
I am wondering if there is a pluggable Django app that does something like this. The app would include the following models: class Document(models.Model): body = models.TextField() title = models.CharField(max_length=x) toc = models.TextField() class Section(model.Model):

RE: "remote models" with django?

2008-07-11 Thread Emily Rodgers
Also, what do you mean by 'a restful model backend instead of a database backend'? What are you trying to do? I have some ideas, but I may be barking up the wrong tree!! > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of lgr888999 >

django-registration

2008-07-11 Thread thomas schreiber
Is there a reason emails aren't being sent when running this app on localhost? Is there more that needs to be done to get the email sending part working other then what is included with django- registration? I'll come back to it later today. Thanks, Tom

Operational error on Post method

2008-07-11 Thread allisongardner
Hi, I get the following error: OperationalError at /admin/amyprot/sequence/add/ (1093, "You can't specify target table 'Sequence' for update in FROM clause") Request Method: POST Request URL:http://127.0.0.1:8000/admin/amyprot/sequence/add/ Exception Type: OperationalError

Re: post method does not work

2008-07-11 Thread Evert
> Hello, > > I'm new to django and I might have made a simple mistake that I need > help with. > > I'm writing a todo list application using google app engine and I'm > having trouble with using the post method. > > I'm going to post my code below but I can also email it to you as a > zip file.

Re: "remote models" with django?

2008-07-11 Thread lgr888999
nope different sites on different IPs On 11 Juli, 11:44, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > Are they in the same project? > > > -Original Message- > > From: django-users@googlegroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of lgr888999 > > Sent: 11 July 2008 10:33 > > To:

RE: How to display the images in the template page under the django development server

2008-07-11 Thread Emily Rodgers
Try doing Ideally you want your media url to be available in all of your templates (so you can do in your templates). To do this kind of thing you can set up a context processor. There is a good example here: http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-proces

RE: "remote models" with django?

2008-07-11 Thread Emily Rodgers
Are they in the same project? > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of lgr888999 > Sent: 11 July 2008 10:33 > To: Django users > Subject: "remote models" with django? > > > Lets say i have two django apps A and B. Lets say A

"remote models" with django?

2008-07-11 Thread lgr888999
Lets say i have two django apps A and B. Lets say A has some models, Foo and Bar. Now i know there are plenty of implementations to make Foo and Bar restfuly available via http but is there anything built yet to make Foo and Bar available as Models on B via http? Ie a restful model backend

RE: how does {% url %} work?

2008-07-11 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of V > Sent: 11 July 2008 09:31 > To: Django users > Subject: Re: how does {% url %} work? > > > > > but it gives only > > > /projects/join/6/ > > > > That's exactly what's expected. >

Re: how does {% url %} work?

2008-07-11 Thread V
> > but it gives only > > /projects/join/6/ > > That's exactly what's expected. Have you ever checked the docs (http://www.djangoproject.com/ documentation/templates/#url)? This /clients/client/123/ is expected! if I do (r'^coosci/$', include('coosci.webapp.urls')), it won't work as $ closes

Re: How to access unclean data

2008-07-11 Thread Torsten Bronger
Hallöchen! Malcolm Tredinnick writes: > On Fri, 2008-07-11 at 10:01 +0200, Torsten Bronger wrote: > >> For some reason, I need to know what the user has input after a >> POST request, no matter whether the form validates or not. If it >> doesn't, cleaned_data is not accessible. So at the

How to access unclean data

2008-07-11 Thread Torsten Bronger
Hallöchen! For some reason, I need to know what the user has input after a POST request, no matter whether the form validates or not. If it doesn't, cleaned_data is not accessible. So at the moment, I do this: myfieldname = my_form.data[my_form.prefix + "-myfieldname"][0] However, this

Re: Automatic Image Resizing upon Upload

2008-07-11 Thread Ben Ford
Or you could have a look at google appengine for your image storage. They have an picassa like API that would allow you to do lots of stuff to your images on the fly and you wouldn't pay for any of the processor cost (or storage if you're under 500M). Just a thought. Ben 2008/7/11 Eric Abrahamsen

post method does not work

2008-07-11 Thread Venkat Rao
Hello, I'm new to django and I might have made a simple mistake that I need help with. I'm writing a todo list application using google app engine and I'm having trouble with using the post method. I'm going to post my code below but I can also email it to you as a zip file. Here is my