Forms: Set default value

2009-07-14 Thread Wiiboy
Hi, I'm defining a form model, and I have a choice field. I have the values in order, and I want one value (in the middle of the values in order) to be the default. How do I do that? Passing initial= anything doesn't work. --~--~-~--~~~---~--~~ You received this

Re: Deployment dilemma

2009-07-14 Thread Rama Vadakattu
i will look into pip and zc.buildout thanks for your suggestions. On Jul 14, 9:31 pm, Lakshman Prasad wrote: > zc.buildout enables reproducible > build and deployments. pip offers a simple solution by the way of freeze and > requirements file at server.

Lost Comments moving from test to production

2009-07-14 Thread goodwinb
I have a project that uses django.contrib.comments wrapped by mptt_comments. It was working fine on my test server. In moving the project to a production server I have missed a setting somewhere and lost Comments. When I hit the page that will contain comments I get "Caught an exception while r

Re: url as folder path possible?

2009-07-14 Thread theiviaxx
awesome, thats exactly what i needed. im still trying to figure out regex stuff. Thank you! On Jul 14, 1:16 am, Eugene Mirotin wrote: > The problem is still unclear. > Do you want to handle the path example.com/some/path/ and route it to > some view that would get the 'some/path' as argument?

syncdb and #10706

2009-07-14 Thread Kenneth Gonsalves
hi, I find that syncdb fails silently to create tables for apps that give the misleading error message described in #10706. I cannot find a ticket for that. Should one be filed, or have I missed it? -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~--

Re: Creating Model with ManyToMany relationship from PyAMF & Flex

2009-07-14 Thread Jesse Warden
Nevermind, found this: http://www.djangoproject.com/documentation/models/many_to_many/ And got it working. woo WOOO!!! On Tue, Jul 14, 2009 at 2:28 PM, Jesse Warden wrote: > n00b here. I'd like to create a complex Model from a Flex Object > (basically decoded JSON). I've created a Model succe

Re: dict objects are unhashable in admin... in this a bug?

2009-07-14 Thread Some Guy
admin.py is here --> http://pastebin.com/m23760293 ... stack trace is here -> http://pastebin.com/m971fc89 It's fairly vanilla. I also had a similar error from the {%doctools%} tag on change_list page. SInce it was not essential I changed it to a comment tag. Things work ok after that, but I ne

Re: I need to get psycopg2 installed on Mac OS X 10.5

2009-07-14 Thread Kevin
Thanks a lot Juan! It works fine on my machine. Would you be able to share your compilation steps? On Jul 14, 7:32 am, Juan Pablo Romero Méndez wrote: > I don't know if it will run in your machine, but here is one compiled > for Python2.5, MacOS X 10.5.7, and PostgreSQL 8.3. > > Regards, > >  

ANN: RuPy '09 Conference

2009-07-14 Thread Jakub P. Nowak
RuPy 2009 :: Strongly Dynamic Conference Poznan, Poland November 7-8, 2009 :: Call for speakers RuPy is a conference about dynamically typed programming languages. Held for the first time in April 2007 it gathered enthusiasts from Poland and other countries. The idea behind the conference is t

Re: Converting django models to google app engine models

2009-07-14 Thread Matteo Rosati
Hello friend, maybe you can consider using the Goole App Engine helper for Django. http://code.google.com/p/google-app-engine-django/ when you download the necessary files, read the README file and read how to deploy a pre existing django application in google AE without modifying your files (exc

Re: Basic AJAX (was: Re: multi applications)

2009-07-14 Thread sjtirtha
Hi, thank you for the explanation. I'll look into it. I found also an ajax lib for Django, it is DAJAX. Steve On Tue, Jul 14, 2009 at 10:09 PM, Shawn Milochik wrote: > > > On Jul 14, 2009, at 3:43 PM, sjtirtha wrote: > > > Thank you for the explanation. > > This helps me very much. > > > > You m

Re: Slug Field

2009-07-14 Thread Alex Gaynor
On Tue, Jul 14, 2009 at 3:56 PM, Sonal Breed wrote: > > Hi all, > > I am little confused about the working of slug fields. > I have a model: > class Story(models.Model): >slug = models.SlugField(unique_for_date = 'date_created', >help_text="suggested values automatically gener

Re: Error: ce is not defined

2009-07-14 Thread Sonal Breed
Well Joost, After I made TINYMCE_COMPRESSOR as False, I could get tinymce toolbar. However, the style dropdown is showing empty, and there are couple of other things I would like to have, like spell checker and color. Have to go through tinymce docs, do u have any tips? Thanks in advance, Sonal.

Slug Field

2009-07-14 Thread Sonal Breed
Hi all, I am little confused about the working of slug fields. I have a model: class Story(models.Model): slug = models.SlugField(unique_for_date = 'date_created', help_text="suggested values automatically generated from title" title = models.CharField(max_length=50, blank

Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Ryan K
Alex, So I have my Menus that contain links and a Link can be in multiple Menus. Are you saying make an explicit model like: class MenuLinks(models.Model): menu = models.ForeignKey(Menu) link = models. ForeignKey(Link) ? Basically what I am doing is making an enhanced flatpages app cal

Basic AJAX (was: Re: multi applications)

2009-07-14 Thread Shawn Milochik
On Jul 14, 2009, at 3:43 PM, sjtirtha wrote: > Thank you for the explanation. > This helps me very much. > > You mentions about handling the smaller apps on the page with AJAX. > Is there any basic functionality to do this from Django Framework? > Or do you have any ajax lib/framework as prefe

Re: dict objects are unhashable in admin... in this a bug?

2009-07-14 Thread Alex Gaynor
On Tue, Jul 14, 2009 at 2:28 PM, Some Guy wrote: > > Hi Group, > I'm using svn version of django and SQLite3 on linux. I set up a basic > admin user and when I try to access the edit page I get the > "TemplateSyntaxError at /admin/auth/user/1/ > Caught an exception while rendering: dict objects a

Re: multi applications

2009-07-14 Thread sjtirtha
Thank you for the explanation. This helps me very much. You mentions about handling the smaller apps on the page with AJAX. Is there any basic functionality to do this from Django Framework? Or do you have any ajax lib/framework as preference? Steve On Tue, Jul 14, 2009 at 9:10 PM, Shawn Milochi

dict objects are unhashable in admin... in this a bug?

2009-07-14 Thread Some Guy
Hi Group, I'm using svn version of django and SQLite3 on linux. I set up a basic admin user and when I try to access the edit page I get the "TemplateSyntaxError at /admin/auth/user/1/ Caught an exception while rendering: dict objects are unhashable" Is this a bug? how far back should I downgrade

Re: Import all modelspy from all apps

2009-07-14 Thread Alex Gaynor
On Tue, Jul 14, 2009 at 2:18 PM, Gustavo Henrique wrote: > > Hi guys! > > How to import all models.py from all apps in a specific views.py in > one app in my project automatically? > > Thanks! > > > > You can use the django model cache: from django.db.models.loading import cache cache.get_apps()

Import all modelspy from all apps

2009-07-14 Thread Gustavo Henrique
Hi guys! How to import all models.py from all apps in a specific views.py in one app in my project automatically? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: multi applications

2009-07-14 Thread Shawn Milochik
On Jul 14, 2009, at 2:57 PM, sjtirtha wrote: > Hi, > > I'm looking for documentation, which describes how to build a web > application which includes many other applications. > For example like Facebook, it has following applications on the > first screen: > 1. On the left side is dynamic me

Re: DjangoCon '09

2009-07-14 Thread Gustavo Henrique
+1, too I thinks interesting record in video all about that. This important for consolidate the Django with all developers in the world. -- Gustavo Henrique Site: http://www.gustavohenrique.net Blog: http://blog.gustavohenrique.net --~--~-~--~~~---~--~~ You re

problem with redirect

2009-07-14 Thread Petry
Hello Guys, I'm having some trouble using redirect in my application after making a request, rather than redirect to the domain + the url it is sending to the IP address of the domain, I capture the request through the Firefox addon HTTP_HEADERS: #request# GET https://www.ucs.br/favicon.ico #r

Re: inheriting Model more than once

2009-07-14 Thread Luc Saffre
On 14.07.2009 17:23, Alex Gaynor wrote: > This looks like an instance of this: > http://code.djangoproject.com/ticket/10808 bug. Thanks, Alex. I applied patch 10808.diff and now it works. Luc --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: home page caching

2009-07-14 Thread Ramdas S
On Tue, Jul 14, 2009 at 11:47 PM, Michel Thadeu Sabchuk wrote: > > Hi Ramdas, > > > It would be great if you can throw some more light on your solution. > Sounds > > like a splendid idea and will be helpful for many including me > > This is easy, I loaded the page through urllib and write it to a

multi applications

2009-07-14 Thread sjtirtha
Hi, I'm looking for documentation, which describes how to build a web application which includes many other applications. For example like Facebook, it has following applications on the first screen: 1. On the left side is dynamic menu 2. In the middle is the microblogging 3. On the right side on

Re: How to store user

2009-07-14 Thread Shawn Milochik
On Jul 14, 2009, at 2:50 PM, Viktor Semykin wrote: > > Hi everyone. > > I use django.views.generic.create_update.create_object to allow users > to post new entries on my site. > How can I make model automatically save the user currently logged in? > Model like > class MyModel(Model): >user =

How to store user

2009-07-14 Thread Viktor Semykin
Hi everyone. I use django.views.generic.create_update.create_object to allow users to post new entries on my site. How can I make model automatically save the user currently logged in? Model like class MyModel(Model): user = ForeignKey(User) --~--~-~--~~~---~--~---

Creating Model with ManyToMany relationship from PyAMF & Flex

2009-07-14 Thread Jesse Warden
n00b here. I'd like to create a complex Model from a Flex Object (basically decoded JSON). I've created a Model successfully already, but am unsure how to do this with the multiple Models that have ManyToMany relationships with each other. This works: def create_power(request, powerObj): try: p

Re: home page caching

2009-07-14 Thread Michel Thadeu Sabchuk
Hi Ramdas, > It would be great if you can throw some more light on your solution. Sounds > like a splendid idea and will be helpful for many including me This is easy, I loaded the page through urllib and write it to a static file, then I served the file through nginx. Anyway, I will create a sn

Re: newbie question information about js

2009-07-14 Thread Shawn Milochik
On Jul 14, 2009, at 12:30 PM, luca72 wrote: > > Hello > I have a question in my view fiole i have this > > def myfunct() > do this... > now i need only to return a js alert message on the same page > is it possible? We need more information. Are you calling myfunct()

Re: Django admin for PHP?

2009-07-14 Thread diogobaeder
I've had a great experience with Symfony, with which I worked for about 9 months, and I can tell it's a great framework, and also fairly easy to create admin interfaces. Of course, not as easy as Django, as you said, but... I also tried CakePHP for a time, but I didn't like the means it used to g

Converting django models to google app engine models

2009-07-14 Thread Vishwajeet
Hi All, I am planning to host my django application on google app engine; I have completed the application using django but now when I decided to host it on google app engine I need to changed models and all it reference to app engines framework; I have googled alot but have not found much inform

Re: Image Field Validation

2009-07-14 Thread kevinski
Thanks Michael, I had no idea of this standard. Making a form for images on a separate page will not be an issue. Your help is greatly appreciated, Kevin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Style sheet not working after shifting from desktop to laptop

2009-07-14 Thread Javier Guerra
On Tue, Jul 14, 2009 at 12:08 PM, Fred Chevitarese wrote: > Use the Chrome Browser to see the source code generated by Django, and > then you can follow the css of your page. all browsers can show the page source, no need to push for any specific one (yeah, Chrome is my favorite) -- Javier --~

Re: Style sheet not working after shifting from desktop to laptop

2009-07-14 Thread Fred Chevitarese
Use the Chrome Browser to see the source code generated by Django, and then you can follow the css of your page. Than, you can see if this is pointing to the rigth place ;) http://chevitarese.wordpress.com Fred Chevitarese - GNU/Linux On Jul 14, 9:55 am, Lakshman Prasad wrote: > Either you hav

Re: Image Field Validation

2009-07-14 Thread Michael
On Tue, Jul 14, 2009 at 12:48 PM, kevinski wrote: > > Hello, > > I am using 3 image fields in my model form. When I browse for images > and submit, the images are uploaded with no problem. When my form does > not validate, error messages appear for invalid fields and correct > fields stay in tact

How to add a new button near to "Add a new article"

2009-07-14 Thread Fred Chevitarese
Hello! I´m needing to add a button near to the button to add another object. For example, there´s a app called Articles... When i´m in the admin interface, i can see all the articles that i have in the database in a grid. In the top, i have a button to add a new article. So, i want to put another

Re: django-admin.py complains about missing DJANGO_SETTINGS_MODULE

2009-07-14 Thread Dhruv Adhia
Copy your app to site-packages folder and see if that works. If you dont know where site-packages folder is , do 'which python' from command line and you will get an idea. Dhruv Adhia http://thirdimension.com On Tue, Jul 14, 2009 at 8:22 AM, Nate Reed wrote: > The admin tool is complaining ab

Image Field Validation

2009-07-14 Thread kevinski
Hello, I am using 3 image fields in my model form. When I browse for images and submit, the images are uploaded with no problem. When my form does not validate, error messages appear for invalid fields and correct fields stay in tact, however my image paths disappear and I am required to browse f

newbie question information about js

2009-07-14 Thread luca72
Hello I have a question in my view fiole i have this def myfunct() do this... now i need only to return a js alert message on the same page is it possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: Saving Data To Your DB. Simple?

2009-07-14 Thread Michael
On Tue, Jul 14, 2009 at 12:15 PM, The Danny Bos wrote: > > Heya, am trying to simply save 3 values to a database, without using > Forms. > > In the Template: > > > > >Rate This: {% for n in numbers %} value="{{ n }}">{{ n }}{% endfor %} > > > > In the View: > > f

Re: Saving Data To Your DB. Simple?

2009-07-14 Thread Lakshman Prasad
> It runs OK (no errors) but doesn't save a single thing It has to run without errors because you have enclosed the whole thing in try. You have to coerce the record_id and user_id into int before assigning to the model fields, for it to save. On Tue, Jul 14, 2009 at 9:45 PM, The Danny

Re: Deployment dilemma

2009-07-14 Thread Lakshman Prasad
zc.buildout enables reproducible build and deployments. pip offers a simple solution by the way of freeze and requirements file at server. On Tue, Jul 14, 2009 at 9:33 PM, Alex Gaynor wrote: > > > On Tue, Jul 14, 2009 at 10:46 AM, Rama Vadakattu > wrote

Re: Complex form for a newbie with ImageField and ForeignField

2009-07-14 Thread djangonoob
thanks dude! that worked out perfectly for me. On Jul 14, 8:48 pm, Lakshman Prasad wrote: > You could replace in the view: > > if form_upload.is_valid(): >   form_upload.save() > > # with this: > > if form_upload.is_valid(): >   form_upload.user = request.user >   form_upload.save() > > You may

Saving Data To Your DB. Simple?

2009-07-14 Thread The Danny Bos
Heya, am trying to simply save 3 values to a database, without using Forms. In the Template: Rate This: {% for n in numbers %}{{ n }}{% endfor %} In the View: from mysite.rating.models import Rating def critics_rating(request): try:

Re: Deployment dilemma

2009-07-14 Thread Alex Gaynor
On Tue, Jul 14, 2009 at 10:46 AM, Rama Vadakattu wrote: > > I have a django project with N number of dependencies to other > packages. > Now i want to deploy the project on production server? > > As of now iam doing this. > 1.Move the django project to production server. > 2.install the dependenci

Re: Will future Django releases support multiple databases?

2009-07-14 Thread Emily Rodgers
On Jul 13, 4:51 pm, Emily Rodgers wrote: > On Jul 3, 6:36 pm, Emily Rodgers > wrote: > > > > > 2009/7/3 Alex Gaynor : > > > > On Fri, Jul 3, 2009 at 12:25 PM, Emily Rodgers > > > wrote: > > > >> On Jul 3, 3:29 pm, Emily Rodgers > > >> wrote: > > >> > On Jul 1, 3:44 pm, Alex Gaynor wrote: >

Re: Has anything changed with Sagepay/protx apart from the name?

2009-07-14 Thread Daniel Hilton
To answer the original post: Sagepay AFAIK is a rebrand as sage have owned protx for a while now. Nothing should have changed apart from names of products. Cheers, Dan 2009/7/14 Kip Parker > > No, I did not. Oh dear. Thanks for pointing this out Karen. > > I am now off to the Satchmo group t

Deployment dilemma

2009-07-14 Thread Rama Vadakattu
I have a django project with N number of dependencies to other packages. Now i want to deploy the project on production server? As of now iam doing this. 1.Move the django project to production server. 2.install the dependencies on production server similar to that of the way i have done on local

Re: Reading data from database tied to another Django project?

2009-07-14 Thread Benjamin Kreeger
I was using PostgreSQL at first, but then I found information about reading data across databases only with MySQL, so I'm using MySQL for the time being. Now, I don't have a database set for P1 yet because it's just displaying reStructuredText files; if I were to set up that site to access P2's d

django-admin.py complains about missing DJANGO_SETTINGS_MODULE

2009-07-14 Thread Nate Reed
The admin tool is complaining about this environment variable, but I've never had this problem before on this box. I'm not sure what's changed since the last time I used it. I tried specifying the path: $ django-admin.py syncdb --settings=mysite.settings Error: Could not import settings 'mysite.

Re: Count from 1 to 50

2009-07-14 Thread The Danny Bos
Great idea. Don't know why I didn't think of that ... Thanks man, d On Jul 15, 12:48 am, Shawn Milochik wrote: > On Jul 14, 2009, at 10:27 AM, The Danny Bos wrote: > > > > > Is there a way to create a simple list using Django to go from 1 to > > 50. > > Eg: > > > 1, 2, 3, 4, 5 ... 49, 50 >

Re: Count from 1 to 50

2009-07-14 Thread Michael
On Tue, Jul 14, 2009 at 10:48 AM, Shawn Milochik wrote: > > > On Jul 14, 2009, at 10:27 AM, The Danny Bos wrote: > > > > > Is there a way to create a simple list using Django to go from 1 to > > 50. > > Eg: > > > > 1, 2, 3, 4, 5 ... 49, 50 > > > > I figured it'd be easy, but I can't get it. > > I

New app: twivert.com

2009-07-14 Thread Vignesh.isquare
I have just finished creating a new app URL: http://www.twivert.com It is a ad network for twitter.com. Technologies used: google app engine, django, blueprint css for style , jquery for javascript. If anyone is interested, please visit the site and post your comments... --~--~-~--~~--

Re: Database Model Layout Advice

2009-07-14 Thread Shawn Milochik
On Jul 14, 2009, at 10:35 AM, Jonathan Buchanan wrote: > > One option would be to use a generic relation: > > http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1 > > Regards, > Jonathan. > > Yes, this is probably the right way to do it. I had heard about generic relation, but

Re: Count from 1 to 50

2009-07-14 Thread Shawn Milochik
On Jul 14, 2009, at 10:27 AM, The Danny Bos wrote: > > Is there a way to create a simple list using Django to go from 1 to > 50. > Eg: > > 1, 2, 3, 4, 5 ... 49, 50 > > I figured it'd be easy, but I can't get it. > I tried ... > > {% for i = 1 in 10 %} > {{ i }}, > {% endfor %

Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Alex Gaynor
On Tue, Jul 14, 2009 at 9:35 AM, Russell Keith-Magee wrote: > > On Tue, Jul 14, 2009 at 6:27 PM, Ryan K wrote: > > > > Yea...it would be so elegant too! Here is a "bug" filing: > > http://code.djangoproject.com/ticket/5390. It's been open for two > > years > > A little history may help explai

Re: Database Model Layout Advice

2009-07-14 Thread Jonathan Buchanan
2009/7/14 The Danny Bos : > > Hey there, this may not be appropriate, but I'm building in Django so > here goes ... > > I'm creating an Interviews app/table in my Django 'Books' (test) > project. Just wrapping my head around it before I start on my music > based website ... Anyway, > > For my 'Int

Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Russell Keith-Magee
On Tue, Jul 14, 2009 at 6:27 PM, Ryan K wrote: > > Yea...it would be so elegant too! Here is a "bug" filing: > http://code.djangoproject.com/ticket/5390. It's been open for two > years A little history may help explain why this has been open for so long. Historically (i.e., when dinosaurs ro

Count from 1 to 50

2009-07-14 Thread The Danny Bos
Is there a way to create a simple list using Django to go from 1 to 50. Eg: 1, 2, 3, 4, 5 ... 49, 50 I figured it'd be easy, but I can't get it. I tried ... {% for i = 1 in 10 %} {{ i }}, {% endfor %} No go. --~--~-~--~~~---~--~~ You re

Re: inheriting Model more than once

2009-07-14 Thread Alex Gaynor
On Tue, Jul 14, 2009 at 7:15 AM, Luc Saffre wrote: > > """ > Can somebody explain why this testcase fails? It looks as if the > attribute 'a' passed to the E instance just gets ignored. > I guess that it has to do with the fact that E inherits Model more than > once. > > >>> i1 = D(a='D') > >>>

Re: Has anything changed with Sagepay/protx apart from the name?

2009-07-14 Thread Kip Parker
No, I did not. Oh dear. Thanks for pointing this out Karen. I am now off to the Satchmo group to post the same message, in case anyone was wondering what it was all about. Kip. On Jul 14, 1:47 pm, Karen Tracey wrote: > On Tue, Jul 14, 2009 at 7:42 AM, Kip Parker wrote: > > > I noticed whilst

Re: Database Model Layout Advice

2009-07-14 Thread Shawn Milochik
On Jul 14, 2009, at 9:23 AM, The Danny Bos wrote: > > > So the Author and Illustrator tables would stay as is. > How would the Interview table talk to both of those tables at once, to > allow me to assign an interview to who I'm interviewing. Whether it's > an Illustrator, Author or even down th

Re: Database Model Layout Advice

2009-07-14 Thread The Danny Bos
So the Author and Illustrator tables would stay as is. How would the Interview table talk to both of those tables at once, to allow me to assign an interview to who I'm interviewing. Whether it's an Illustrator, Author or even down the track a Publisher. Like so? class Interview(models.Model):

Re: Database Model Layout Advice

2009-07-14 Thread Shawn Milochik
I think you'd just have the interview table without any foreign keys, then add a ManyToMany to each of your Author and Illustrator models. You would still, of course, be able to start with your interview table and get the authors or illustrators, if necessary in your app. It might be handy

Re: Way to show Progress bar in django while processing to send emails

2009-07-14 Thread Shawn Milochik
On Jul 14, 2009, at 2:51 AM, gganesh wrote: > > Hi friends, > It could be helpful if someone suggest me to find a way to show > Progress Bar while django is processing to send mails .I have a form > where list of email Id's are displayed with checkbox and user selects > those and submits.Here i

Re: was not closed

2009-07-14 Thread Karen Tracey
On Tue, Jul 14, 2009 at 8:21 AM, Robert wrote: > > Hi, > > My web hosting company get the curious error message above when > configuring httpd.conf. > > [snip] > > admin/media"> > SetHandler None > I don't believe you can put the on the same line as the SetHandler. If that is literally what

Re: I need to get psycopg2 installed on Mac OS X 10.5

2009-07-14 Thread Shawn Milochik
I had the same terrors. Unfortunately I didn't document exactly how I did it, but my best recollection is that this will work: 1. Update setuptools: sudo easy_install -U setuptools 2. Download and unzip the tarball for psycopg2. 3. Edit the config file for psycopg2 as directed on other Web si

Re: Style sheet not working after shifting from desktop to laptop

2009-07-14 Thread Lakshman Prasad
Either you have a wrong directory pointed to, in your settings.py file for static media; or you haven't configured django to serve them. You need to define MEDIA_ROOT and MEDIA_URL in the settings.py appropriately. Once you have done that, you can setup django to serve those during development, by

Re: Complex form for a newbie with ImageField and ForeignField

2009-07-14 Thread Lakshman Prasad
You could replace in the view: if form_upload.is_valid(): form_upload.save() # with this: if form_upload.is_valid(): form_upload.user = request.user form_upload.save() You may also want to not display the user field in the form. You can do it by defining an 'exclude' Meta class attribut

Re: Has anything changed with Sagepay/protx apart from the name?

2009-07-14 Thread Karen Tracey
On Tue, Jul 14, 2009 at 7:42 AM, Kip Parker wrote: > > I noticed whilst researching which payment gateway to use that Protx > has become Sagepay. Anyone know if they've just changed the name (so > that the Protx payment module still works OK) or if they've changed > the product at all (so the Pro

DjangoCon 09 Recording (was: Re: DjangoCon '09)

2009-07-14 Thread Shawn Milochik
I've been listening to a lot of podcasts from PyCon 09, and for the most part the audio is horrible to the point of not being listenable. Are there any plans in place to do any recording at DjangoCon yet? It's vital that the actual speaker is miked. If someone is recording, even from a few

Re: Style sheet not working after shifting from desktop to laptop

2009-07-14 Thread Karen Tracey
On Tue, Jul 14, 2009 at 1:52 AM, djangonoob wrote: > > Hi, I have developed a simple application on my desktop computer > successfully using django 1.02, Ubuntu 9.04, python version 2.6.2 > > I copied my files over to my laptop computer and did the following: > 1) ran the django-admin.py startpro

Database Model Layout Advice

2009-07-14 Thread The Danny Bos
Hey there, this may not be appropriate, but I'm building in Django so here goes ... I'm creating an Interviews app/table in my Django 'Books' (test) project. Just wrapping my head around it before I start on my music based website ... Anyway, For my 'Interview' table, how would I assign an inter

Complex form for a newbie with ImageField and ForeignField

2009-07-14 Thread djangonoob
I'm using django 1.02, Ubuntu 9.04, python 2.6.2 Issue: I am creating a simple application that allows users to upload images. I'm using the User from django.contrib.auth.models to manage my users. For the image class, i have a ForeignKey to the user and a ImageField to store my images My applic

was not closed

2009-07-14 Thread Robert
Hi, My web hosting company get the curious error message above when configuring httpd.conf. I'm trying to deploy a djangoproject on a public server. The webhosting company isn't familiar with python and django. They don't give access to httpd.conf to the clients. It's a cpanel type of webhosting

inheriting Model more than once

2009-07-14 Thread Luc Saffre
""" Can somebody explain why this testcase fails? It looks as if the attribute 'a' passed to the E instance just gets ignored. I guess that it has to do with the fact that E inherits Model more than once. >>> i1 = D(a='D') >>> i1.a 'D' >>> i2 = E(a='E') >>> i2.a 'E' The failure is::

I need to get psycopg2 installed on Mac OS X 10.5

2009-07-14 Thread Kevin
I need to get psycopg2 installed on Mac OS X 10.5 I have read every install guide I could find and I still do not have it working. I have developer tools installed. I am running MacPython 2.6.2 and PostgreSQL 8.4 downloaded from http://www.enterprisedb.com/products/pgdownload.do On my productio

Re: Object attributes in change_form.html

2009-07-14 Thread janedenone
That did the trick. Thank you very much! - Jan On Jul 14, 12:53 pm, Ryan K wrote: > I'm not sure but try {{ original }} ...here is the code: > > http://code.djangoproject.com/browser/django/trunk/django/contrib/adm... > >     context = { > 860                 'title': _('Change %s') % force_uni

Has anything changed with Sagepay/protx apart from the name?

2009-07-14 Thread Kip Parker
I noticed whilst researching which payment gateway to use that Protx has become Sagepay. Anyone know if they've just changed the name (so that the Protx payment module still works OK) or if they've changed the product at all (so the Protx module doesn't)? Kip. --~--~-~--~~

Re: .views._CheckLogin.__call__ didn't return an HttpResponse object

2009-07-14 Thread alecs
Thanks. I thought this called view will do render_to_response ... --~--~-~--~~~---~--~~ 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

Re: Object attributes in change_form.html

2009-07-14 Thread Ryan K
I'm not sure but try {{ original }} ...here is the code: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py context = { 860 'title': _('Change %s') % force_unicode (opts.verbose_name), 861 'adminform': adminForm, 862

Re: .views._CheckLogin.__call__ didn't return an HttpResponse object

2009-07-14 Thread Daniel Roseman
Please don't snip the context. On Jul 14, 11:24 am, alecs wrote: > I'm just calling another view mail_to_user(request,username,dummy) , > which contains render_to_response! OK, think what happens when you return from that view: you go back to the calling view. Does that return anything? -- DR.

Re: .views._CheckLogin.__call__ didn't return an HttpResponse object

2009-07-14 Thread Ryan K
I'm not really sure I understand your question but you don't need to jump to another view...you just need to pass the relevant objects to the mailer function and then "return render_to_response(...)." If the mailer function is already in another view, refactor the code and create a non view functi

Re: .views._CheckLogin.__call__ didn't return an HttpResponse object

2009-07-14 Thread alecs
Ok, a simple question: Are there any possibilities to call from current view another view. For instance you have a large view and in the middle of it you need to perform THE SAME actions which are already defined in def foo (request,username). Of course, you can copy the contents of foo(request,us

Re: Question regarding post_save signal and ManyToMany field objects

2009-07-14 Thread Ryan K
Yea...it would be so elegant too! Here is a "bug" filing: http://code.djangoproject.com/ticket/5390. It's been open for two years I understand that your really getting what you asked for, just the instance of the model you just saved but to me (and it seems you and a lot of other people), int

Re: .views._CheckLogin.__call__ didn't return an HttpResponse object

2009-07-14 Thread alecs
I'm just calling another view mail_to_user(request,username,dummy) , which contains render_to_response! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: .views._CheckLogin.__call__ didn't return an HttpResponse object

2009-07-14 Thread Ryan K
To be a little more explicit, perhaps your view code contains: render_to_response('template.html",{},RequestContextInstance) as opposed to return render_to_response(...) Cheers, Ryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: .views._CheckLogin.__call__ didn't return an HttpResponse object

2009-07-14 Thread Ryan K
Are you returning render_to_response in the view? On Jul 14, 6:12 am, alecs wrote: > Hi all :) Can u help me with .views._CheckLogin.__call__ didn't return > an HttpResponse object . I'm trying from my view 'jump' to another > view by calling     mail_to_user(request,username,dummy)       The >

.views._CheckLogin.__call__ didn't return an HttpResponse object

2009-07-14 Thread alecs
Hi all :) Can u help me with .views._CheckLogin.__call__ didn't return an HttpResponse object . I'm trying from my view 'jump' to another view by calling mail_to_user(request,username,dummy) The mail_to_user view contains render_to_response and if I simply copy the contents of mail_to_us

Re: AttributeError when trying to save and access models

2009-07-14 Thread Daniel Roseman
Sorry, to answer your second question: On Jul 14, 10:56 am, Daniel Roseman wrote: > On Jul 14, 8:09 am, Sam Walters wrote: > > And if i try to see an attribute in another table: > > >  var = dirdir.admin.abbrev #error: 'DirectoryAdmin' object has no attribute > > 'name' > Both abbrev and name

Re: apache + mod_python + svn

2009-07-14 Thread Bastien
ok my bad, I didn't realize that the structure of the project had changed within the directory now that it is controlled by subversion and of course at the root of the directory there is no settings file, instead I have to go to the ultimate revision. Thanks, Bastien On Jul 14, 11:43 am, Bastien

Re: AttributeError when trying to save and access models

2009-07-14 Thread Daniel Roseman
On Jul 14, 8:09 am, Sam Walters wrote: > Hi Django world > I keep getting problems accessing and storing data in foreignkey and > one-to-one relationships. > Error is basically of the form: >  "AttributeError > Exception Value: 'DirectoryAdmin' object has no attribute 'abbrev'" > > The models.py

apache + mod_python + svn

2009-07-14 Thread Bastien
Hi, I know this is slightly off topic but such a common situation that I guess somebody has already run into it. I have just deployed my project on a remote debian server with apache and mod_python following the documentation and it just works very well. Now I need to use subversion to keep upd

Re: Object attributes in change_form.html

2009-07-14 Thread janedenone
On Jul 13, 10:05 pm, janedenone wrote: > On Jul 13, 6:07 pm, Daniel Roseman wrote: > > > > > > > On Jul 13, 4:02 pm, janedenone wrote: > > > > Hi, > > > > I read the documentation on customizing admin templates, but I still > > > wonder how to access the object attributes in the change_form.htm

Re: Error: ce is not defined

2009-07-14 Thread Joost Cassee
On Jul 14, 1:53 am, Sonal Breed wrote: > I am trying to add django-tinymce-1.5 in my application. > I downloaded tinymce_3_2_5 and installed it using sudo python setup.py > install. > > In my settings I have following: > [...] > INYMCE_JS_URL = MEDIA_URL + 'js/tiny_mce/tiny_mce.js' > TINYMCE_JS_

Re: html file (UTF-8) generated from template does not displayed correctly using MS internet explorer 6.0

2009-07-14 Thread Eugene Mirotin
Most probably your html is incorrect, but FF is smart enough to handle it. Try the following: * switch to the Strict XHTML instead of Transitional (as the latter is not recommended) * create a static HTML file (replace the remplate logic with some dummy values) with the desired layout * validate i

Re: Django admin for PHP?

2009-07-14 Thread Maksymus007
On Tue, Jul 14, 2009 at 10:00 AM, Bela Hausmann wrote: > > Hi everybody! > > I use django a lot, and I'm really glad about the admin interface. I > always hated to code admin interfaces myself, never again :) > > But now I have the task of making a new corporate website with a PHP > framework, and

  1   2   >