Re: A solution for django/postgresql transaction problem

2009-02-26 Thread Karen Tracey
On Thu, Feb 26, 2009 at 9:22 AM, Sushant Sinha wrote: > I agree with you that a user code can best determine whether to roll > back or commit. However, I think this is not reflected in the > documentation for the models at all. > > http://docs.djangoproject.com/en/dev/ref/models/instances/?from=o

Re: mod_python error when debug=False

2009-02-27 Thread Karen Tracey
On Fri, Feb 27, 2009 at 11:46 AM, Michael Repucci wrote: > > I've been trying to put my site up live, and keep coming across an > error (on any page on the site) whenever I set debug=False in > settings.py. With the development server, or with debug=True on the > production server, I don't have th

Re: TemplateDoesNotExist at /admin/ on Linux (Xubuntu) while doing Django Tutorial 2

2009-03-02 Thread Karen Tracey
On Sun, Mar 1, 2009 at 10:56 PM, Chris Verehhotti < chris.peresso...@gmail.com> wrote: > > > however, in my Thunar file viewer, every icon has a little "X" on it > > -- this makes me think it's a permissions issue, but I'm a Linux n00b > > and am not sure how to go about fixing this. Do I need to

Re: AttributeError: 'str' object has no attribute '_default_manager' from related.py django 1.0.2

2009-03-02 Thread Karen Tracey
On Mon, Mar 2, 2009 at 11:11 AM, Dan wrote: > > AttributeError: 'str' object has no attribute '_default_manager' from > related.py django 1.0.2 > ---get this error when > accessing any part of site > - > M

Re: Django setup problem when executing syncdb

2009-03-02 Thread Karen Tracey
On Mon, Mar 2, 2009 at 12:03 PM, bvemu wrote: > > Hi Ches > > The issue is that you are using python version 2.6 for which there is > no support from the MySQLdb package This is not true. A pointer to a binary of MySQLdb for Python 2.6 on Windows was posted a while ago, AKK referred to it ea

Re: mod_python error when debug=False

2009-03-02 Thread Karen Tracey
On Mon, Mar 2, 2009 at 3:48 PM, Danny Brown wrote: > > Thanks to Karen, She figured it out. I guess she will know if it > should be a ticket. I am like you. I sure don't know. > Probably worth a ticket so it doesn't get forgotten; I won't be able to experiment with an Apache setup until the week

Re: Django not deleting files still referenced by ImageField

2009-03-02 Thread Karen Tracey
On Mon, Mar 2, 2009 at 4:47 PM, James wrote: > > So I added a custom storage class to an ImageField which overwrites > files with the same name. > > I noticed while testing that I can add many records all referencing > the same single image, which gets overwritten with each new record > created.

Re: Accessing the development server from another machine.

2009-03-04 Thread Karen Tracey
On Wed, Mar 4, 2009 at 4:51 PM, Joe Goldthwaite wrote: > > Thanks Alex. That did something. Now I'm getting this; > > >c:\DjangoProjects\FiscalCalendar>manage.py runserver 0:8000 > >Validating models... > >0 errors found > > > >Django version 1.0.2 final, using settings 'FiscalCalendar.settings'

Re: Django setup problem when executing syncdb

2009-03-06 Thread Karen Tracey
On Fri, Mar 6, 2009 at 10:54 AM, bitra wrote: > > Hi, I had the same problem with ches. I install mysql with Django > 1.0.2 and given the same error message, but I was using Python 2.5.2. > Do I have to install mysqldb module for this Python version? > Yes. You have to install a mysqldb built a

Re: Why are views not called controllers?

2009-03-06 Thread Karen Tracey
On Fri, Mar 6, 2009 at 11:37 AM, chyld.medf...@gmail.com < chyld.medf...@gmail.com> wrote: > > I'm new to django, but have experience with asp.net mvc. In asp.net > mvc, controllers receive and process the request from the user and > then once the data is ready to present, it's handed off to a vi

Re: TemplateSyntaxError on unicode strings

2009-03-07 Thread Karen Tracey
On Sat, Mar 7, 2009 at 3:07 PM, juanefren wrote: > > I am using django 1.1 and MYSQL 5.0 with collation utf8_unicode_ci > Django 1.1 doesn't exist yet, so I guess you are either running 1.1 alpha1 or an SVN trunk checkout. I doubt the specific version really matters here (since full unicode s

Re: Compressed fixtures?

2009-03-07 Thread Karen Tracey
On Sat, Mar 7, 2009 at 11:17 AM, Ben Davis wrote: > Ahh. Searching for "compressed fixtures" on djangoproject.com under the > "1.0" documentation option reveals the following page: > http://docs.djangoproject.com/en/dev/ref/django-admin/?from=olddocs > > That page has the "1.0 Docs" label, so I

Re: Django setup problem when executing syncdb

2009-03-10 Thread Karen Tracey
On Tue, Mar 10, 2009 at 1:54 AM, kk wrote: > > Hi Karen, > > I'm having the same problem as ches and brita had. I downloaded the > link that you have given, but I'm unable to run as it is an > application. If you can guide me where to store that application and > how to run that, I will be glad.

Re: django to appengine error

2009-03-10 Thread Karen Tracey
On Tue, Mar 10, 2009 at 6:03 AM, arbi wrote: > > Hi, > > I am making the tutorial of google to "activate" django in app > engine : > > http://code.google.com/intl/fr-FR/appengine/articles/appengine_helper_for_django.html > > I made "python manage.py runserver" and it worked : > " INFO:root:Runnin

Re: [XP] Django 1.0.2 Final fails to install

2009-03-10 Thread Karen Tracey
On Tue, Mar 10, 2009 at 11:57 AM, Vincent wrote: > I have ActivePython 2.5.1.1 installed on an XPSP2 host. I downloaded > and untarred Django 1.0.2 Final, but when I type "setup.py install", I > get the following error: > > === > C:\Downloads\Django-1.0.2-final>setup.py install > Traceback (m

Re: Mod_python configuring to apache..

2009-03-10 Thread Karen Tracey
On Tue, Mar 10, 2009 at 7:56 PM, x_marine wrote: > > I've instaled Django 1.0.2 and I'm having problems configuring it with > Apache at the httpd.conf > Everying Else is up and running except localhost fail to run but > 127.0.01. works!!! instead. > I'm currently using Windows Vista > You're th

Re: Localhost does not work with django web server but works with Tomcat

2009-03-10 Thread Karen Tracey
On Tue, Mar 10, 2009 at 7:12 PM, CG wrote: > > Using dango 1.0.2 final on windows vista. > I have tried starting up tomcat and using http://localhost:8000 and it > shows the tomcat default page which means localhost is being resolved > correctly on the machine. > Any ideas why I am not able to us

Re: Python Web dev with Django Chapter 7 is killing my desire to lean Django

2009-03-10 Thread Karen Tracey
On Wed, Mar 11, 2009 at 12:46 AM, Tokyo Dan wrote: > > Executing the url "http://127.0.0.1:8000/admin"; gives me a Template > error with the problem area being: {% url django-admindocs-docroot as > docsroot %} > (the actual error dump is at the bottom of this explanation.) > > /Volumes/Data1/Caste

Re: Python Web dev with Django Chapter 7 is killing my desire to lean Django

2009-03-11 Thread Karen Tracey
On Wed, Mar 11, 2009 at 1:41 AM, Tokyo Dan wrote: > > Karen, you made me feel real stupid. BUT I LOVE YOU! > > I read that over and over and couldn't see it. Also I didn't know what > the heck "group name" meant. > Well, that Python exception message might could have been nicer and specified what

Re: Trouble with Chapter 7 in Version 1.0 book

2009-03-11 Thread Karen Tracey
On Wed, Mar 11, 2009 at 8:37 PM, John Maines wrote: > We are making our way through the Django book, web version, for 1.0. > We hit a road block at chapter 7, Forms. > > In the part subtitled "A Simple Form Handling Example", there are some > very basic instruction on building a form that include

Re: Tutorial of creating a Poll

2009-03-12 Thread Karen Tracey
On Thu, Mar 12, 2009 at 1:47 PM, Fred Chevitarese wrote: > > Hello all ... > It´s my first post on here... > So, i´ve got a little problem when i follow the instructions to create > an app on Django. > I´ve created the Poll like the tutorial, and it´s all ok . > But when i try to put this on a vie

Re: how to create bigint ?

2009-03-12 Thread Karen Tracey
On Thu, Mar 12, 2009 at 2:26 PM, xankya wrote: > > I created an integer field for a mobile number as > mobile = models.IntegerField(max_length=20) > > In MySQL interface, it created an integer field with length 11. > > So my question is how to create bigint in mysql for storing big > numbers such

Re: Possible Paginator bug - duplicate SQL queries?

2009-03-12 Thread Karen Tracey
On Thu, Mar 12, 2009 at 11:24 PM, adrian wrote: > > I have a view that does not evaluate a queryset, it just adds filters > and order_by and then > passes it to Paginator (set to 50 per page) and the result is passed > to the template.The following SQL is generated (with some fields > omitted

Re: Viewing related table columns in django Admin

2009-03-13 Thread Karen Tracey
On Fri, Mar 13, 2009 at 2:53 PM, joemanfoo wrote: > > Hi there, > > I'm very new to both Python and Django, so please pardon my ignorance > > > Here's what I'd like to do... > I've two models, one foriegnKey'ed to the other. > > in models.py: > class Market(models.model): >name = models.CharF

Re: How to say Hello "Somebody" in a Django form. Displaying data context values as non-input.

2009-03-17 Thread Karen Tracey
On Tue, Mar 17, 2009 at 5:33 AM, NoviceSortOf wrote: > > Looking at the django document > ref-forms-api Brian mentioned above from > the python command line its clearly explicit > that data passed as form = FormClass(data) > only creates input fields. I get that but > what I don't get is why the s

Re: TemplateDoesNotExist

2009-03-17 Thread Karen Tracey
On Tue, Mar 17, 2009 at 12:00 PM, TP wrote: > > I have an error in my traceback saying the index.html file does not > exist, but it has been created in the correct DIR. > The exception traceback include a list of all the files the template loader looked for. Yours says: > Django tried loading

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Karen Tracey
On Tue, Mar 17, 2009 at 1:54 PM, Bro wrote: > > [snip] > File "/var/lib/python-support/python2.5/django/core/handlers/ > base.py", line 44, in load_middleware >raise exceptions.ImproperlyConfigured, 'Middleware module "%s" > does not define a "%s" class' % (mw_module, mw_classname) > > Imp

Re: Modify value of a Django form field during clean()

2009-03-18 Thread Karen Tracey
On Tue, Mar 17, 2009 at 11:16 AM, Ben Gerdemann wrote: > > I am adding custom validation to my forms and custom fields in my > Django app. I would like to be able to modify the value of a field > when triggering an error. For example, if there is an error, the form > should be redisplayed with th

Re: Read-only in admin

2009-03-22 Thread Karen Tracey
On Sun, Mar 22, 2009 at 3:16 AM, legutierr wrote: > [snip long list of why read only fields in the admin could be useful] I ask that other Django users or potential users that have good > reasons for needing a read-only option in the admin post their reasons > here, so that at least it becomes

Re: iterating through form.fields

2009-03-22 Thread Karen Tracey
On Sun, Mar 22, 2009 at 5:09 AM, Yaniv Haber wrote: > > Thanks. It works that way although the examples in the documentation > also show iterating through form.visible_fields which result in > nothing. This is where I came from. Any idea why that happens? > What version of Django are you using?

Re: cannot import name ugettext

2009-03-22 Thread Karen Tracey
On Sun, Mar 22, 2009 at 5:33 AM, dbbarua wrote: > > Hi Everybody, >I have a problem viewing my rapidsms django > application > > when i use my locally installed django app by typing in the browser > > http://127.0.0.1:8000 > > I get this error > > ViewDoesNotExist at / > Could

Re: cannot import name ugettext

2009-03-22 Thread Karen Tracey
2009/3/22 dbbarua > > Hi Karen, > I am using the svn code for rapidsms and i have tried the > official recommended version Django 1.0 and rapidsms from svn... > If you were using the svn code for rapidsms then I do not understand how you hit the previous error you reported. The svn

Re: cannot import name ugettext

2009-03-22 Thread Karen Tracey
On Sun, Mar 22, 2009 at 2:53 PM, dbbarua wrote: > > Hi Karen, > I am sorry if my messages seem confusing to you , it is > to me too... > I changes Django to 1.0 and i get the following errors related to core > like you said should not happen > > r...@portable:/usr/local/rapidsmsdev/r

Re: Django Serialization of BooleanField inconsistent?

2009-03-23 Thread Karen Tracey
On Mon, Mar 23, 2009 at 2:58 AM, chefsmart wrote: > I am working on an application that interacts with a Django app > through Django's xml serialization (using django-rest-interface). > > All was going ok, when today I got stuck because while Django used to > serialize BooleanFields as name="is_

Re: "Disabled" option with choiceField ?

2009-03-23 Thread Karen Tracey
On Mon, Mar 23, 2009 at 6:46 AM, Pierre wrote: > > Hi, > > I turning crazy with something which seems relatively easy but isn't > (for me). > I want to create a dropdown (aka ) in > a form. To do this, I use a forms.ChoiceField > (label="Categories",required=True, choices=catz) > > I'd like to ha

Re: Django Serialization of BooleanField inconsistent?

2009-03-23 Thread Karen Tracey
On Mon, Mar 23, 2009 at 9:47 AM, chefsmart wrote: > > I have not changed my database. I've always been using MySQL. > > In the meantime I did some more research and discovered that when I > use HTTP GET on a model (I'm talking django-rest-interface) the xml > returned has 1 or 0 for Boolean value

Re: Having trouble authenticating/validating

2009-03-23 Thread Karen Tracey
On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee wrote: > > I'm using Django's builtin AuthenticationForm > > Here's my login view: http://dpaste.com/18110/ > > Form submittal (not empty or empty fields) takes me back to the login > page with 'Did not login'. My debugging print statement isn't showing

Re: django-registration - 504 error

2009-03-23 Thread Karen Tracey
On Mon, Mar 23, 2009 at 6:28 PM, neri...@gmail.com wrote: > > Hey, > > does anyone know why I'm getting a "Exception Type: > SMTPRecipientsRefused" error using django-registration? > > Exception Type: SMTPRecipientsRefused > Exception Value: > > {u'neri...@gmail.com ': (504, ': > Sender ad

Re: problem with umlaut in foreign key table

2009-06-19 Thread Karen Tracey
On Fri, Jun 19, 2009 at 12:18 PM, goobee wrote: > > hi > I run in problems with umlaute (äöü) with two related tables on a > postgres-DB > > class Rorg(models.Model): >rorgokbez = models.CharField(max_length=4, primary_key=True) >rorgobez = models.CharField(max_length=30) > >d

Re: My templates don't render correctly

2009-06-19 Thread Karen Tracey
On Fri, Jun 19, 2009 at 3:58 PM, mojo wrote: > > [snip] > in the "urls.py" file > ... > ... > (r'^work$', direct_to_template, {'template': 'work/f1_index.html'}), > (r'^work/w1/$', direct_to_template, {'template': 'work/subfold1/ > sub1_index.html'}), > ... > ... > > > when I open the page: (ht

Re: Empty [] using objects.all() on legacy database

2009-06-19 Thread Karen Tracey
On Fri, Jun 19, 2009 at 4:41 PM, geraldcor wrote: > > Ok, so I feel a bit silly, but it was because I had a column name in > my db called Discount% and I am assuming the % is screwing it up. > > Now the question becomes how do I escape the % or do I have to rename > my db column (please god not t

Re: Limit the number of forms in a Formset.

2009-06-19 Thread Karen Tracey
On Fri, Jun 19, 2009 at 5:01 PM, Sonal Breed wrote: > > Hi all, > I am trying to display a formset in my application such that it only > contains number of forms equal to number of database instances. > > My models are as below: > class Card(models.Model): > name = models.CharField(max_length=20

Re: Empty [] using objects.all() on legacy database

2009-06-23 Thread Karen Tracey
On Mon, Jun 22, 2009 at 2:19 PM, Erik Vorhes wrote: > > On Mon, Jun 22, 2009 at 12:52 PM, Greg Corey wrote: > > Karen, the double % ( i.e. 'discount%%') worked. Is this a big enough bug > > that it should be reported? I'm not sure what is a bug and what is just > my > > ignorance. Thank you sooo

Re: Error -- 'str' object has no attribute 'creation_counter'

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 2:02 AM, Phil wrote: > I'm sure I had this working before, but since then I have installed > the composite primary key patch and I notice the 2nd to last traceback > is in class CompositePrimaryKey... Could this be something to do with > it?? All ideas appreciated > Certa

Re: Empty [] using objects.all() on legacy database

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 12:04 PM, Greg Corey wrote: > Ok. I will work on opening a ticket based on your recommendation, though I > will not have your depth of analysis on the problem. Mind if I quote your > most recent explanation if needed? > Sure, but it's probably not necessary, though you co

Re: null values should work here but don't

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 4:14 PM, K.C. Smith wrote: > > I want to (optionally) leave some fields in a model/table NULL. I've > set the options "null=True" and "blank=True" for the fields in > question. I know it's working because the admin site add form greyed > out the "blank=True" fields. But

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 8:34 PM, nbv4 wrote: > > I'm trying to set up a template for all my forms, but I'm having > trouble using the {% with %} block: > > {% extends "base_form.html" %} > {% with form.instance as object %} > > {% block title%} >{{object.title}} <- not displayed :( > {% endbl

Re: debugging

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 9:04 PM, db_333 wrote: > > Hi I'm trying to figure out why a record I am trying to save from a > form will not commit. The form seems to be working fine, and I wanted > to know if there were any specific debugging statements I could use to > see where this is failing. > >

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 10:16 PM, Steve Howell wrote: > > Nothing posted is outside a block but it could be that the parent has > no title block? > I can't parse this sentence. The part of the original post where things didn't work is here: {% extends "base_form.html" %} {% with form.instance

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 10:22 PM, buttman wrote: > > Yes, but {% with %} isn't placing anything anywhere. It's just > creating a new variable "object" from "form.instance". My only options > seems to be either stuck using form.instance, or place a {% with %} > tag inside each and every {% block %

Re: why doesn't the "with" template tag transverse blocks?

2009-06-23 Thread Karen Tracey
On Tue, Jun 23, 2009 at 11:05 PM, Steve Howell wrote: > > {% extends "base_form.html" %} > > {% with form.instance as object %} > > > > I understand why tags outside the block would not render anything > within the parent but it is not as clear to me why the with statement > would not change the

Re: why doesn't the "with" template tag transverse blocks?

2009-06-24 Thread Karen Tracey
On Wed, Jun 24, 2009 at 11:19 AM, buttman wrote: > Whats wrong with: > > {% with something as x %} > > {% block foo1 %} > {{x}} > {% endblock %} > > {% block foo2 %} > {{x}} > {% endblock%} > > {% block foo3 %} > {{x}} > {% endblock%} > > {% block foo4 %} > {{x}} > {% endblock %} > > {% block foo

Re: TimeField and null

2009-06-24 Thread Karen Tracey
On Wed, Jun 24, 2009 at 3:57 PM, adrian wrote: > > > I need a time field that can be None. > > I define the field so that Null is legal in the DB: > > time_end = models.TimeField(blank=True, null=True) > > The form field is: > > time_end = forms.ChoiceField(required=False, choices=END_TIME_CHOICE

Re: How to put non-MULTIPART_CONTENT in django.test.Client.put() methon

2009-06-25 Thread Karen Tracey
On Thu, Jun 25, 2009 at 7:18 AM, Roman Vorushin wrote: > > Hello! > > I started to write tests for my RESTful web service, written in > Django. I use django.test.Client for making HTTP requests. GET and > POST methods works all right, but I didn't find any options to send > non-MULTIPART_CONTENT d

Re: 'FileDict' object has no attribute 'startswith' '

2009-06-25 Thread Karen Tracey
2009/6/25 Harish > > I am using forms for model. > You have not provided nearly enough information for anyone to give you much useful help. The full traceback of the error, rather than just the error message, would give people much more to work with. Also some snippets of your code might help.

Re: Very bad experience in Django...

2009-06-25 Thread Karen Tracey
On Thu, Jun 25, 2009 at 9:46 AM, Chris Withers wrote: > > steveneo wrote: > > BooleanField limits only to CheckBox? But I set > > widget=HiddenField It does not report error. HTML renders > > correctly, but actually, you can not use like that?! > > Didn't you hear me: I said go find another f

Re: Activate Admin Tutorial 2

2009-06-25 Thread Karen Tracey
On Thu, Jun 25, 2009 at 4:29 PM, Divesh Gidwani wrote: > > Hey Guys, > > I'm new to Django and computer programming and am currently following > a tutorial from this website: > > http://www.zabada.com/tutorials/django-quick-start.php > I wouldn't recommend that. From a brief look that tutorial

Re: Django ORM exhibiting caching like behavior in a non web based daemon script

2009-06-25 Thread Karen Tracey
On Thu, Jun 25, 2009 at 4:48 PM, afrobeard wrote: > > Thanks for the reply Alex, however I beleive I might have > miscommunicated the problem a big. The actual format of the daemon is > somewhat like this:- > > 1while True: > 2rs = Inqueue.objects.filter(processed = 0).order_by('-timestamp')

Re: rollback transaction without an exception when transaction is tied to http requests

2009-06-26 Thread Karen Tracey
On Fri, Jun 26, 2009 at 12:59 AM, sico wrote: > > Hi > > Is it possible to rollback the transaction without raising an > exception when the transactions are tied to http requests?? > I'm writing several records in one post call, if any fail I'd like to > rollback the transaction but return a nice

Re: how does one write tests for models.py?

2009-06-26 Thread Karen Tracey
On Fri, Jun 26, 2009 at 6:55 AM, Kenneth Gonsalves wrote: > > hi, > > this is my first venture into unittests, and have reached a block. Here is > the > contents of my test.py: > > test.py-- > > import unittest > from conference.web.models import

Re: Subject: Model Inheritance

2009-06-26 Thread Karen Tracey
On Fri, Jun 26, 2009 at 12:11 PM, Daniele Procida wrote: > > Given: > > class Cyclist(models.Model): > > and: > > class ProfessionalCyclist (Cyclist): > > I can't immediately see way to make an existing Cyclist into a > ProfessionalCyclist (in either Admin interface). > > How can this be achieved

Re: Error on doing tutorial

2009-06-27 Thread Karen Tracey
On Sat, Jun 27, 2009 at 7:04 AM, sheepeatingtaz wrote: > > Hi All, > > I'm new to django, and am working through the tutorial on the > djangoproject site (http://docs.djangoproject.com/en/dev/intro/ > tutorial02/#intro-tutorial02

Re: Tagging, parse_lookup what is the Right current method to implement "tagging"

2009-06-27 Thread Karen Tracey
On Sat, Jun 27, 2009 at 5:46 PM, dartdog wrote: > > Old topic but don't really get the solution... > I'm using SVN 1.1 Django > and Python 2.6 On win Vista > I downloaded tagging and it now sits in my Site-Packages directory for > Python I used Tagging 0.2.1 win 32exe from Google code There's a

Re: Arbitrary HTTP CONNECT attempts on Django dev server

2009-06-28 Thread Karen Tracey
On Sun, Jun 28, 2009 at 9:11 AM, chefsmart wrote: > > I'm seeing a lot of the following in my Django development server > window lately: - > > > [28/Jun/2009 18:33:42] "CONNECT mail.burst.idv.tw:25 HTTP/1.0" 500 > 41555 > > > Has anyone else seen this messages? What is this exactly? Is my > compu

Re: Is it possible to access foreign-keyed properties using values_list()?

2009-06-29 Thread Karen Tracey
On Mon, Jun 29, 2009 at 10:27 AM, huu...@gmail.com wrote: > > I'd like to use values_list() to populate a choices attribute. > However, I need to access some foreign-keyed properties to properly > display the information. > > For example: > > >> Books.objects.values_list('id', 'author__name') > >

Re: rollback transaction without an exception when transaction is tied to http requests

2009-06-29 Thread Karen Tracey
On Sun, Jun 28, 2009 at 11:14 PM, sico wrote: > > [snip] > > However, I am still curious if there is a way to tell django to not > commit the transaction without the user seeing an exception > > Yes and no: I tried to describe that in my previous answer. Yes, you can arrange to have the tran

Re: The select all checkbox for action in admin does not work with IE web browser.

2009-06-30 Thread Karen Tracey
On Tue, Jun 30, 2009 at 3:45 AM, khsing wrote: > > I have test in IE 6/8, the select all checkbox does not work. But it > can work with Safari or Firefox. > > Django Version: 1.1-beta-1 > This was opened as a ticket and fixed a couple of months ago: http://code.djangoproject.com/ticket/10597 T

Re: issue with django.views.generic.date_based.archive_index's date_list

2009-06-30 Thread Karen Tracey
On Tue, Jun 30, 2009 at 1:55 PM, Seth Buntin wrote: > > I'm having an issue with the date_based generic views archive_index. > I am expecting the context to return a date_list with datetime > instances of the years specified in my queryset. > > The problem is my queryset doesn't return what I am

Re: email username and password displayed on trace back from smtp auth failure

2009-06-30 Thread Karen Tracey
On Wed, Jul 1, 2009 at 12:28 AM, Kenneth Gonsalves wrote: > > hi > > running django trunk. There was an smtp auth failure and since debug was on > there was a traceback. I notice in the traceback that the email username > and > password that are set in settings.py are disclosed. Is this a bug? S

Re: Django 1.0.2 Thread safety

2009-07-01 Thread Karen Tracey
On Wed, Jul 1, 2009 at 9:38 AM, Miles wrote: > > On Jun 30, 8:10 am, Thomas Guettler wrote: > > Hi, > > > > I hit this bug some time ago, too. If you run SVN 1.0.X you get the > > bug fixes for free. > > > > Thomas > > Yeah, but then you have to test your releases really carefully on each > sv

Re: 'MediaDefiningClass' object is not iterableRequest Method

2009-07-03 Thread Karen Tracey
On Thu, Jul 2, 2009 at 3:25 PM, jayvandal wrote: > Is this what You mean?? > No. That's way too much and too hard to follow. This is the part that can be usefully cut and pasted into email: Environment: Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.1 alpha 1 SV

Re: how to make field in admin edit view sortable

2009-07-03 Thread Karen Tracey
On Thu, Jul 2, 2009 at 11:52 PM, Joru wrote: > > is this posible? Maybe. > > anyone have solution for this? > Searching for 'sort' on this page: http://docs.djangoproject.com/en/dev/ref/contrib/admin/ brings you to a description of the admin_order_field attribute of things in list_display

Re: changes to views and forms are not reflected in browser

2009-07-03 Thread Karen Tracey
On Fri, Jul 3, 2009 at 12:27 AM, neridaj wrote: > > I'm still unable to get this working. I am on shared hosting and > cannot change mod_fastcgi to mod_wsgi so I am completely out of ideas. > If it's this much of an issue to simply render a page, I guess I > should find better hosting or use a ph

Re: view causes error in Internet Explorer but not Firefox

2009-07-04 Thread Karen Tracey
On Sat, Jul 4, 2009 at 12:27 PM, adrian wrote: > > > This view shows a cart and processes a cart submission. You can try > it on our staging server at: > > http://tixsa.giantbyte.com > > You'll have to find an event with tickets and add it to your cart. > > The code in question is: > > http://d

Re: too many values to unpack

2009-07-04 Thread Karen Tracey
On Sat, Jul 4, 2009 at 12:39 PM, Carlos Eduardo Sotelo Pinto < csot...@aqpglug.org.pe> wrote: > > Hi people > > I have this form , as my subject says, it is giving me "to many values > to unpack" > FYI, providing the traceback, or at least identifying the line of code that causes the error, would

Re: Problem with Reverse

2009-07-05 Thread Karen Tracey
On Sat, Jul 4, 2009 at 11:44 PM, tam...@gmail.com wrote: > > Hi, > > I am trying to decouple my views.py with respect to my url.py but I > have a problem. > > -I do have a principal url.py which contains and include to a second > url.py: > urlpatterns = patterns('', > (r'^users/', include('myapp.

Re: "django-notification" app installation

2009-07-07 Thread Karen Tracey
On Tue, Jul 7, 2009 at 12:32 AM, Anthony wrote: > [...] My problem now is > that when I do a syncdb, I get: > >Skipping creation of NoticeTypes as notification app not found > > > So, it looks like something related to the app is there, but the app > itself is missing (at least from the stand

Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread Karen Tracey
On Tue, Jul 7, 2009 at 2:45 AM, alecs wrote: > > I'm trying to send a e-mail, but getting this error. Don't know what > to do... Any ideas? > Thanks in advance. > > def urlsend(request, username): >if request.method == 'POST': >form = SendMailForm(request.POST) >if form.is_val

Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread Karen Tracey
On Tue, Jul 7, 2009 at 9:02 AM, alecs wrote: > > Environment: > > Request Method: POST > Request URL: http://172.16.23.33/alex/urlsend/ > Django Version: 1.0.2 final > Python Version: 2.6.2 > Installed Applications: > ['django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.se

Re: get_or_create() returns "no such savepoint" error

2009-07-07 Thread Karen Tracey
On Tue, Jul 7, 2009 at 1:39 PM, Steve Howell wrote: > > Hi everybody, I posted the following about a week ago and did not get > a response. > > I'm hoping it was simply lost in the shuffle the first time, so maybe > it will get an answer now. > Yeah, a lot of people (including me) seem to be pre

Re: FF3 src error in django admin calendar

2009-07-08 Thread Karen Tracey
On Wed, Jul 8, 2009 at 4:22 AM, Alastair Campbell wrote: > > Has anyone else started getting application error emails from the > Django admin after updating to Firefox 3.5? > > I haven't had much change to investigate, but I get 500 error emails with: > > ValueError: invalid literal for int(): 70

Re: get_or_create() returns "no such savepoint" error

2009-07-08 Thread Karen Tracey
On Tue, Jul 7, 2009 at 9:05 PM, Steve Howell wrote: > > On Jul 7, 3:07 pm, Karen Tracey wrote: > > > > > > > On Jun 29, 10:53 am, Steve Howell wrote: > > > > Hi, I have created a management command that populates some tables in > > > > a P

Re: XML and UTF-8

2009-07-09 Thread Karen Tracey
On Thu, Jul 9, 2009 at 8:50 AM, Francisco Rivas wrote: > > Hi all, I am getting some information from a DB and some of the vaules > of a field contains information like this : > > Sam\xfael J\xf3n Gunnarsson which must be Samúel Jón Gunnarsson > > and I get that information and pass it to a view

Re: SyncDB failure

2009-07-09 Thread Karen Tracey
On Thu, Jul 9, 2009 at 8:54 AM, James PIC wrote: > > Hi, > > Apparently, this was not triggered by class names, but by verbose_name > length: > > INSERT INTO "auth_permission" ("name", "content_type_id", "codename") > VALUES (%s, %s, %s) (u"Can change cat\xe9gorie d'immobilier > d'entreprise (LCP

Re: problems with model formsets

2009-07-09 Thread Karen Tracey
On Thu, Jul 9, 2009 at 12:01 PM, Michael Stevens wrote: > > Hi. > > I'm trying to use a model formset. > > I've successfully got it rendering data from the database and showing > it on a form to edit, but I'm now trying to recreate the data in save. > > So I've got: >FooFormset = modelform

Re: inlineformset_factory multiple models error.

2009-07-09 Thread Karen Tracey
On Thu, Jul 9, 2009 at 1:50 PM, jai_python wrote: > > Hie I am using formset for edit details belonging to a particular > ticket. But when I used the below function , I am getting error as > follows. > > Models > --- > class Ticket(models.Model): >ticket_id = models.AutoFi

Re: Problem with AD (LDAP) authentication

2009-07-09 Thread Karen Tracey
On Thu, Jul 9, 2009 at 4:44 PM, TechnicalBard wrote: > > Have discovered what works - but it goes against the docs... > > I needed to set User.is_active = True. The permissions for admin > (has_perm) appears to check this flag and returns False for inactive > users. > > Problem solved. > What d

Re: where does admin add ... tags to data?

2009-07-09 Thread Karen Tracey
On Thu, Jul 9, 2009 at 6:22 PM, Some Guy wrote: > > I've found the following in the template ... > > {% for result in results %} > {% for item in result %} > {{ item }}{% endfor %} > {% endfor %} > > I would like to apply an additional template tag to {{item}}, i.e. > {{item|default_if_none:"" }}

Re: more formset adventures

2009-07-10 Thread Karen Tracey
On Fri, Jul 10, 2009 at 7:30 AM, Michael Stevens wrote: > > Hi. > > I'm using a ModelFormset created with lineformset_factory. > > When I click delete on one of the records and save the formset, it > successfully removes the associated db record, but if I redisplay the > formset after the save, it

Re: Report Failures when running Django's unit tests?

2009-07-10 Thread Karen Tracey
On Fri, Jul 10, 2009 at 10:41 AM, Eric Brian wrote: > > Ok, so I finally got Django's unit tests to run and when I did, there > was one failure. I checked the FAQ to see if this should be reported > or not. There was no mention, so I wonder, should I report any test > that doesn't pass? > Hard t

Re: syncdb error

2009-07-11 Thread Karen Tracey
On Sat, Jul 11, 2009 at 7:49 AM, Croydon wrote: > > This is my first time running django in windows xp. Im using xampp, > python2.5.4 and django1.0.2 > > I created a new sqlite3 database and I get the following error when I > run "python manage.py syncdb" > > http://imgur.com/pooSw.png"; alt="Hos

Re: ImportError: No module named urls

2009-07-11 Thread Karen Tracey
On Sat, Jul 11, 2009 at 12:26 PM, selcukcihan wrote: > > Using trunk with apache + mod_wsgi, > > Hi, i also have url problems with admin. First of all, if i use the > depreciated method(r'^admin/(.*)', admin.site.root) everything works > fine. > > Well, since there is a new method, i switched to

Re: Fresh project, tests fail?

2009-07-12 Thread Karen Tracey
On Sun, Jul 12, 2009 at 8:03 AM, James Bennett wrote: > [snip a bunch] > Similarly, contrib.admin -- because it needs to work out-of-the-box > without requiring you to create any templates -- supplies templates > with the names contrib.auth looks for. But you can just as easily > write your own te

Re: Trouble with forms again - empty field is not empty.

2009-07-12 Thread Karen Tracey
On Sun, Jul 12, 2009 at 6:50 AM, zayatzz wrote: > > Hello > > I have accountform which's validation should show errors when password > fields are left empty, but the errors did not show up. So i started > investigating, what is the problem and inserted this line in my form > validation: > > raise

Re: foreign key validation

2009-07-12 Thread Karen Tracey
On Sun, Jul 12, 2009 at 6:12 PM, sico wrote: > > okay... seems the use of a Manipulator was the issue, and adding > raw_id_admin = True to the Foreign Key field definition fixed it! > For future reference, you'll likely get more helpful responses to questions like this if you provide some exact

Re: Reverse OneToOne Relationship

2009-07-13 Thread Karen Tracey
On Mon, Jul 13, 2009 at 9:28 AM, wickass wrote: > > Hi Django users > > I have only been using python& django for about a week, so please > excuse me if this question sounds stupid. > > Basically I have a model which extends the users model via a OneToOne > relationship like so: > > class AgentPr

Re: Nested views and urls patterns declaration order

2009-07-13 Thread Karen Tracey
2009/7/13 Frédéric Hébert > > Hi there, > > first, here is my config: > python 2.5.2 > django 1.0.2 > plateforme linux debian lenny > > I've two nested views, the inner of two using the list_detail.list > generic view. > The outter define a QuerySet and passes it to the inner view. > > When I

Re: Admin change list not displaying properly

2009-07-13 Thread Karen Tracey
On Mon, Jul 13, 2009 at 10:47 AM, bsisco wrote: > > I have a simple application that we use to track incoming warranties > for my company. The change_list view used to show such items as part > number, serial number, date entered, control number etc. After a user > entered an item this morning

Re: Admin change list not displaying properly

2009-07-13 Thread Karen Tracey
On Mon, Jul 13, 2009 at 1:51 PM, bsisco wrote: > > i double checked all of my admin settings and nothing has changed. > however, i started commented out items i didn't need anymore > (list_display_links and list_filter) in the admin class for this model > and now i get a 500 error. I don't know

Re: How to get this value

2009-07-13 Thread Karen Tracey
On Mon, Jul 13, 2009 at 5:36 PM, David wrote: > > Thanks Amit. Here is the problem that I meet. > > alerts = Alert.objects.filter((Q(dataset=dataset1) > > for eachalert in alerts: >e_metric1 = eachalert.criteria1_metric1 > > > Django complains that there is no such item "criteria1_metric1" in

<    3   4   5   6   7   8   9   10   11   12   >