Re: Query: Field of model "not defined", but existing

2008-10-21 Thread Karen Tracey
On Tue, Oct 21, 2008 at 6:55 AM, Micha Pietsch <[EMAIL PROTECTED]> wrote: > > Hi, > I've got a model "Note" with a DateTimeField "updated". I ran dbsync and > entered some data but making the query > "n = Note.objects.filter(owner=request.user.id > ).exclude(updated__tle=datetime.datetime.now())"

Re: what is the status of inline unique_together non-fatal error messages?

2008-10-21 Thread Karen Tracey
On Tue, Oct 21, 2008 at 11:39 AM, bobhaugen <[EMAIL PROTECTED]> wrote: > > I mean the normal displayable and user-correctable form validation > errors, not the fatal database IntegrityError. > > I found > http://groups.google.com/group/django-users/browse_thread/thread/f0e245366b02411b/df6d03f32eb

Re: Setting up Django on CentOS5 with flup and fastcgi

2008-10-21 Thread Karen Tracey
On Tue, Oct 21, 2008 at 11:50 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > Hello, > > I am a webhosting provider that is trying to set up django on my > server so that my clients can utilise it for their own programs. > > Although we do not allow ssh access our only ability to allow them >

Re: what is the status of inline unique_together non-fatal error messages?

2008-10-21 Thread Karen Tracey
On Tue, Oct 21, 2008 at 12:36 PM, bobhaugen <[EMAIL PROTECTED]> wrote: > > On Oct 21, 10:59 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > Have you tried whatever scenario you are particularly interested in on > 1.0 > > or current code? > > &g

Re: what is the status of inline unique_together non-fatal error messages?

2008-10-21 Thread Karen Tracey
On Tue, Oct 21, 2008 at 2:35 PM, bobhaugen <[EMAIL PROTECTED]> wrote: > > On Oct 21, 12:34 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > Well then the next step I would try is testing out the current patch for > > general model validat

Re: callable upload_to problem

2008-10-21 Thread Karen Tracey
On Tue, Oct 21, 2008 at 7:42 PM, Brot <[EMAIL PROTECTED]> wrote: > > Is there nobody who can help me with my problem? Is this a bug and > should I open a ticket or is it my fault? > > It's either a bug or behavior that needs more explicit documentation. The problem is that upload_to is called whe

Re: NoReverseMatch, again...

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 10:57 AM, Alberto Piai <[EMAIL PROTECTED]>wrote: > > Hi all, > > I'm referring to this thread from a couple of months ago: > > http://groups.google.com/group/django-users/browse_frm/thread/1f4bb991f9f0f7b5?hl=en&tvc=1 > > I'm still having problems with the NoReverseMatch ex

Re: NoReverseMatch, again...

2008-10-22 Thread Karen Tracey
Also, can you recreate the problem on the most recent trunk or 1.0.X branch code? Your line numbers from the traceback don't match up with current so I'm guessing you are using 1.0? There have been at least a couple of fixes in the reverse url area (though I don't know that any sound like a good

Re: Apache Django 15 Second Refresh

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 11:31 AM, GPSGuy <[EMAIL PROTECTED]> wrote: > > Option One: Reloading Wrapper > I now that there is caching going on, but I am still not sure why. I > did find a work around, though I would still like for someone to > explain what is going on underneath. > > Apache does no

Re: Truncated incorrect DOUBLE value

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 11:53 AM, urukay <[EMAIL PROTECTED]> wrote: > Hi, > > v got this error, tried almost everything to get it right, but no effect. > Can anynone pls help me with that? > It happens when i submit the form: > > class AddPartnerForm(WTForm): > >def __init__( self, user,

Re: How to avoid out of sync sequence for primary key using Postgresql?

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 2:16 PM, cfobel <[EMAIL PROTECTED]> wrote: > Does anyone definitively know whether MySQL automatically increments > its sequences (or whatever their equivalent name is) even if records > are manually inserted with a higher ID? Seems to: mysql> describe color; +---+

Re: Following tutorial but can't get something

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 5:15 PM, gryzzly <[EMAIL PROTECTED]> wrote: > > Hi, > I was following tutorial from official docs step by step. > > So on part 4, at writing and processing simple form I am stuck with > something. (here — > http://docs.djangoproject.com/en/dev/intro/tutorial04/#write-a-simp

Re: Dumpdata exception leaving me a bit puzzled.

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 6:14 PM, perchance <[EMAIL PROTECTED]> wrote: > > [trimmed] > python manage.py dumpdata app_label --traceback --indent 4 > fixtures/ > app_label.js > > And the traceback I get looks like this, with a sanitized model name > substituted for the real thing. > > """ > Traceback

Re: Following tutorial but can't get something

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 6:30 PM, gryzzly <[EMAIL PROTECTED]> wrote: > > Hi Karen, I am sorry, the previous post is irrelevant. What you have > seen is a result of changing of results view that I was doing before, > to test what is going on. (btw, I've noticed that firefox caches an > error output

Re: Dumpdata exception leaving me a bit puzzled.

2008-10-22 Thread Karen Tracey
allows nulls, > update the zeros to nulls and then flip some null=True options into my > models.py? > That's probably what I'd try. Karen > > On Oct 22, 3:29 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 22, 2008 at 6:14 PM, perchan

Re: Generic Model Names in Admin List

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 7:54 PM, jb. <[EMAIL PROTECTED]> wrote: > > I'm creating a site in Django and have run into an interesting problem > that I can't seem to find the solution to. Basically, I have models > for my app called "Product" and "Category" and in the admin in the > list of categorie

Re: Dumpdata exception leaving me a bit puzzled.

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 8:40 PM, perchance <[EMAIL PROTECTED]> wrote: > I think added "null=True" to all each field in my models.py and ran > dumpdata again. It seemed to hum along fine, but now I'm running into > a new problem. I think dumpdata is aceing my Macbook Pro's memory. The > database I'

Re: Accidentally creating a model with "def unicode(self):" will crash django with no stack trace

2008-10-22 Thread Karen Tracey
On Wed, Oct 22, 2008 at 9:45 PM, Brian <[EMAIL PROTECTED]> wrote: > > This might seem obvious, and I just spend a couple hours straining > over it, so I thought I'd share. > > If you have a model, e.g.: > > def MyModel(models.Model): ># ... ># with a unicode function likeso: >def unico

Re: Admin & ForeignKey confusion

2008-10-22 Thread Karen Tracey
On Thu, Oct 23, 2008 at 12:23 AM, Tonne <[EMAIL PROTECTED]> wrote: > > n00b alert, btw: > --- > > I'm very new to django so please forgive the stupid questions, but I'm > struggling to get some very basic model relations to work. I'd be very > grateful if someone could show

Re: How to add custom validation to inline admin forms, overriding clean(self) or clean_FIELD(self) doesn't work.

2008-10-23 Thread Karen Tracey
On Thu, Oct 23, 2008 at 5:09 AM, Jacob Rigby <[EMAIL PROTECTED]> wrote: > > I have a custom ModelForm with a TabularInline child form. I can edit > and save without problems, and simple field validation is working (if > a required field is missing from the inline form it shows a warning). > But w

Re: Following tutorial but can't get something

2008-10-23 Thread Karen Tracey
On Thu, Oct 23, 2008 at 4:00 AM, gryzzly <[EMAIL PROTECTED]> wrote: > > It is self-expalnatory, but the problem is that I do have a template > file. And it is there. > You're saying you have a file named: /home/misha/www/djcode/templates/polls/results.html ? Are you sure you have that exact fi

Re: Problem when visit admin site for add a new item with manytomanyfield

2008-10-23 Thread Karen Tracey
On Thu, Oct 23, 2008 at 5:48 AM, IL <[EMAIL PROTECTED]> wrote: > > from django.db import models > > class Song(models.Model): >name = models.CharField(max_length = 50, unique = True) >lyricBy = models.CharField(max_length = 10, null = True, blank = > True) >coSinger = models.CharField(

Re: Confused by select_related()

2008-10-23 Thread Karen Tracey
On Thu, Oct 23, 2008 at 10:44 AM, AndyB <[EMAIL PROTECTED]> wrote: > > >>> p.residentialunitmix_set.all().query.as_sql() > > (u'SELECT `tbl_ResidentialUnitMix`.`id`, > `tbl_ResidentialUnitMix`.`Planning-id`, > `tbl_ResidentialUnitMix`.`quantity`, > `tbl_ResidentialUnitMix`.`Bedrooms`, `tbl_Residen

Re: model help.

2008-10-23 Thread Karen Tracey
On Thu, Oct 23, 2008 at 10:45 AM, Niall Mccormack < [EMAIL PROTECTED]> wrote: > > ok, I'm going to simplify my question. > > is there any way that I can create a ForeignKey or a ManytToMany that > can accept multiple types of data Models? > Since you seem to be in a hurry, without giving your sce

Re: Confused by select_related()

2008-10-23 Thread Karen Tracey
On Thu, Oct 23, 2008 at 11:21 AM, AndyB <[EMAIL PROTECTED]> wrote: > > Apologies for not using DPaste. I thought the snippets were small > enough. And I thought my question was cleared than it turned out to > be! > I wasn't saying what you posted would have been better at dpaste.com, what you pos

Re: Exception thrown from django.test.client.Client

2008-10-23 Thread Karen Tracey
On Thu, Oct 23, 2008 at 11:41 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > By using pdb post mortem, I found out that the request.META dictionary > doesn't actually have 'REMOTE_ADDR' in it. Settings.INTERNAL_IPS is > '127.0.0.1'. So then get() returns None, and the error comes from > pyt

Re: ignore url

2008-10-24 Thread Karen Tracey
On Fri, Oct 24, 2008 at 6:56 AM, Niall Mccormack < [EMAIL PROTECTED]> wrote: > > Is it possible to tell Django to ignore certain url's so that it > resorts to showing what is on the server at that url. > > i.e. if I have a file at the url > http://www.mywebsite.com/myfiles/image.jpg > > Can I inst

Re: Problems with unicode characters in templates

2008-10-24 Thread Karen Tracey
On Fri, Oct 24, 2008 at 10:04 AM, MrMuffin <[EMAIL PROTECTED]> wrote: > > When I use norwegian characters in templates django spews out errors > about encoding. What encoding ( UTF-8, iso-8859-1 ) should I use and > where do I put it to avoid these errors? > UTF-8 is what is assumed by default, b

Re: max_length for TextField is not respected

2008-10-24 Thread Karen Tracey
On Fri, Oct 24, 2008 at 10:24 AM, omat <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a form class derived from a model using ModelForm. > > The model has a TextField(max_length=300) field, but length limit is > not taken into account and the form passes validation when texts > 300 > char are submi

Re: max_length for TextField is not respected

2008-10-24 Thread Karen Tracey
On Fri, Oct 24, 2008 at 11:26 AM, omat <[EMAIL PROTECTED]> wrote: > > Thanks for the reply Karen. > > Accepted but not used? Neither in the model nor in the forms? This is > not how I would expect it to be. Yes, that's the way it is. max_length is specified as a possible keyword argument in dja

Re: Apache2 + mod_python --> not working

2008-10-24 Thread Karen Tracey
On Fri, Oct 24, 2008 at 11:51 AM, tsmets <[EMAIL PROTECTED]> wrote: > > I installed mod_python & apache2. > mod_python is OK > http://ubuntuforums.org/showthread.php?t=91101 > > I then a adapted the http.conf to > [EMAIL PROTECTED]:/etc/apache2$ cat httpd.conf > >SetHandler python-program >

Re: Hi guys. I'm having problem with new-forms admin site.

2008-10-25 Thread Karen Tracey
On Sat, Oct 25, 2008 at 12:31 AM, astray <[EMAIL PROTECTED]> wrote: > > [snip config details] % models.py % > > from django.db import models > > class Publisher(models.Model): >name = models.CharField(max_length=30) >address = models.CharField(max_length=50) >city = models

Re: Models not validating

2008-10-25 Thread Karen Tracey
On Sat, Oct 25, 2008 at 11:36 AM, Florencio Cano <[EMAIL PROTECTED]>wrote: > > You are saying that a Pupil is a Team and a Team is a Pupil with that > OneToOneField. In the Team you are saying one Pupil belongs to many > Teams and a Team have many Pupils that seems ok but the OneToOneField > seems

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread Karen Tracey
On Sat, Oct 25, 2008 at 11:45 AM, Keyton Weissinger <[EMAIL PROTECTED]>wrote: > > Hello everyone! > > Long time listener. First time caller > > Is there an equivalent to the Rails Rumble for the Django community? > Shouldn't there be one? What do you think? > > You don't say what this Rails Ru

Re: How can I make WS in Django

2008-10-27 Thread Karen Tracey
On Mon, Oct 27, 2008 at 4:13 PM, Abdel Bolanos Martinez < [EMAIL PROTECTED]> wrote: > Anyone has make WS (WebServices) inDjango??? > This is the 2nd time you've asked essentially the same question in the space of a few hours. Your original question did get a few answers: http://groups.google.c

Re: Model that calls a function in another model

2008-10-27 Thread Karen Tracey
On Mon, Oct 27, 2008 at 7:19 PM, Michael Meier <[EMAIL PROTECTED]>wrote: > > Hello > > I'm relatively new to Django and I was able to set up a small > application without any problems, BUT: > > How can I access data inside a model that comes from another model. As > an example, I have a model Pers

Re: case insensitive search

2008-10-28 Thread Karen Tracey
On Tue, Oct 28, 2008 at 10:54 AM, DULMANDAKH Sukhbaatar < [EMAIL PROTECTED]> wrote: > > > Use search_fields = ['name'] in the corresponding > > class inside admin.py > > I did. Actually my text is Cyrillic. Just now I tested searching > sample latin or english text, and search wo

Re: How to get site's root path in Django

2008-10-28 Thread Karen Tracey
On Tue, Oct 28, 2008 at 11:10 AM, yuanyun.ken <[EMAIL PROTECTED]> wrote: > > Graham, thanks for your kindly help. > > I know we don't need root url when configure url mapping. but it seems > that LOGIN_URL is somewhat special. > > When I set LOGIN_URL = '/login/' > accessing http://localhost/root_

Re: 500 displayed instead of 404

2008-10-28 Thread Karen Tracey
On Tue, Oct 28, 2008 at 2:58 PM, janedenone <[EMAIL PROTECTED]>wrote: > > Hi, > > it must be some kind of unhandled exception, but I fail to see where > it might occur. I now boiled down the app to a single URL pattern and > a single view: > [snipped] If you configure ADMINS and EMAIL_HOST, etc.

Re: 500 displayed instead of 404

2008-10-28 Thread Karen Tracey
On Tue, Oct 28, 2008 at 4:08 PM, janedenone <[EMAIL PROTECTED]>wrote: > > Hi Karen, > > I did that, but the message was never sent to me. > That's the first problem I'd be working on fixing, then. Long term you are likely to want that mechanism working, you've got a problem to solve right now fo

Re: cannot import name call_command

2008-10-29 Thread Karen Tracey
On Wed, Oct 29, 2008 at 11:05 AM, noureddine <[EMAIL PROTECTED]> wrote: > > i have this problem > is there anybody hwo know the solution. > please tell me. > You've specified the wrong import, or the wrong pythonpath, or have a corrupt installation, or ...? Without some specifics of what you are

Re: 'RegistrationForm' object has no attribute 'clean_data'

2008-10-29 Thread Karen Tracey
On Wed, Oct 29, 2008 at 10:38 PM, Tsinga <[EMAIL PROTECTED]> wrote: > > Hey guys, > > I am a newbie to Django, and I am having trouble. Need help! This is > the Traceback: > > Environment: > > Request Method: POST > Request URL: http://127.0.0.1:8000/register/ > Django Version: 1.0-final-SVN-unkno

Re: 'RegistrationForm' object has no attribute 'clean_data'

2008-10-29 Thread Karen Tracey
On Wed, Oct 29, 2008 at 11:05 PM, Tsinga <[EMAIL PROTECTED]> wrote: > > I am working with a new book (Learning Website Development with > Django) from Ayman Hourieh. > I am going through the application presented in that book. > The change you are having trouble with (clean_data renamed to cleane

Re: __unicode__() method not working in models.py

2008-10-30 Thread Karen Tracey
2008/10/30 Andrew <[EMAIL PROTECTED]> > > I am currently working through the django book and I've got to the > fifth chapter where I would like to replace the __str__() methods with > __unicode__() methods instead. The reason is that my database will > hold a great deal of Japanese text, UTF-8 enc

Re: Blank content from unit testing

2008-10-30 Thread Karen Tracey
On Thu, Oct 30, 2008 at 10:25 AM, jeffhg58 <[EMAIL PROTECTED]> wrote: > > I am currently the django test client and I have run across a > stumbling block. > > When I do a get command for my main screen which is get('/resultsdb/ > search_form/'), the status code > returns a 302 with no content. > B

Re: FileField doesn't repopulate after a ValidationError on another field

2008-10-30 Thread Karen Tracey
On Thu, Oct 30, 2008 at 10:52 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hello, > > I've having a problem with FileField and ImageField. Basically, I have > a form for uploading images: > > Name: _a_ (throws ValidationError('This name is already taken. Choose > another')) > Notes: _tes

Re: Blank content from unit testing

2008-10-30 Thread Karen Tracey
On Thu, Oct 30, 2008 at 11:50 AM, <[EMAIL PROTECTED]> wrote: > But, when I initialling go to '/resultsdb/search_form/' and the request is > not a get but I a WSGIRequest how to test the content? Because in my view > the only redirect after a request.GET occurs during an if conditional of > when a

Re: FileField doesn't repopulate after a ValidationError on another field

2008-10-30 Thread Karen Tracey
On Thu, Oct 30, 2008 at 12:19 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Ok, this sounds logical to me. > > I guess the best way to handle this is to make the uploading process > require 2 separate submission pages, the first one for all the regular > input, and then have a second page

Re: cannot import name call_command

2008-10-30 Thread Karen Tracey
.0 (that import doesn't work on 0.96) or your installation is corrupt. The former is probably more likely. Karen > > > On 29 oct, 15:39, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 29, 2008 at 11:05 AM, noureddine <[EMAIL PROTECTED]> &

Re: appeal for help with #9232

2008-10-30 Thread Karen Tracey
On Thu, Oct 30, 2008 at 11:12 AM, Faheem Mitha <[EMAIL PROTECTED]> wrote: > > > Hi, > > Can anyone help with > > http://code.djangoproject.com/ticket/9232 > > ? Currently I don't even know if this problem is reproducible. If someone > could solve it, or even indicate what was wrong, if anything, I

Re: cannot import name call_command

2008-10-30 Thread Karen Tracey
gged around r4810, about 1000 revisions and six months earlier. It may be the original developer was using some svn checkout of Django from between 0.96 and 1.0. Karen > > On 30 oct, 17:04, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On Thu, Oct 30, 2008 at 12:27 PM, nouredd

Re: Table width when using list_filter

2008-10-30 Thread Karen Tracey
On Thu, Oct 30, 2008 at 4:28 PM, Fabio Natali <[EMAIL PROTECTED]>wrote: > Hi everybody! > > I'm a bit confused about the behaviour of my change list page. > > If I enable list_filter the table (the one listing my model instances) > "shrinks" and its width is no more 100% of the space available. Al

Re: Custom change list and list_display

2008-10-31 Thread Karen Tracey
On Fri, Oct 31, 2008 at 10:24 AM, Fabio Natali <[EMAIL PROTECTED]>wrote: > > Rajesh Dhawan wrote: > [...] > > > What's more, how can I make those callables columns sortable > > > within the change list page? I'm working with trunk. I read this: > > > http://code.djangoproject.com/changeset/9211 Do

Re: Is there a way to use the Cut Filter to only do the first instance?

2008-10-31 Thread Karen Tracey
On Fri, Oct 31, 2008 at 11:55 AM, Frank Peterson <[EMAIL PROTECTED]>wrote: > > I am using the following > {{ section.get_absolute_url|cut:"/news/" }} > on a string that is > /news/new-york-jets/news/ > > I need to remove the first /news but the CUT filter removes all > instances of it, is there a

Re: updating a single field / attribute, is it possible? or better practices?

2008-10-31 Thread Karen Tracey
On Fri, Oct 31, 2008 at 12:39 PM, omat <[EMAIL PROTECTED]> wrote: > > Hi all, > > Is it possible to update a chosen subset of attributes of a model > instance? > http://code.djangoproject.com/ticket/4102 asks for this, I believe. Karen --~--~-~--~~~---~--~~ You

Re: How to modify field error wording ?

2008-10-31 Thread Karen Tracey
On Fri, Oct 31, 2008 at 11:46 PM, nkulmati <[EMAIL PROTECTED]> wrote: > > Hi all: > > > How to modify field error wording ? > Please do not send me to the page "Form-subclasses-and-modifying-field- > errors" in the docs. > > All I need is to override the error messages, NOT the validation > system

Re: alert table while updating model automatically

2008-10-31 Thread Karen Tracey
On Sat, Nov 1, 2008 at 12:51 AM, Xian Chen <[EMAIL PROTECTED]> wrote: > Hi All, > > I want to know whether Django support alerting the tables automatically > while I modify the models or not. > > Suppose the website has run a long time and stored lots of data. In this > case, the administrator wan

Re: Templaite:display li items alternatively using for

2008-11-01 Thread Karen Tracey
On Sat, Nov 1, 2008 at 1:58 AM, Xian Chen <[EMAIL PROTECTED]> wrote: > Hi, > > I want to display a list of items by using {% for item in items %}. > > To make the web pages look better, I want to use two kinds of > alternatively. > > E.G item >item > > My question is how can i use the tag

Re: Deploying multiple django applications in a single apache server

2008-11-01 Thread Karen Tracey
On Sat, Nov 1, 2008 at 9:03 AM, bluefireredsky <[EMAIL PROTECTED]>wrote: > > Hello, > > I have followed the link from django documentation on deploying an > application to apache2. > > http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ > > I have two applications, which I would like

Re: Why is my string not auto escaped?

2008-11-01 Thread Karen Tracey
On Wed, Oct 29, 2008 at 8:35 AM, shabda <[EMAIL PROTECTED]> wrote: > > I need to create a custom filter which displays some data from db > depending on its data type. > > My code is something like, > > from django.template.defaultfilters import linebreaks, urlize > > def filterxx(data) > retur

Re: HttpRequest with chunked encoding is not buffered

2008-11-01 Thread Karen Tracey
On Sat, Nov 1, 2008 at 11:37 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > I actually am seeing some input, but it is divided into several, well, > chunks. I guess it's the same problem as seeing no input - I'd say > you're right and chunked encoding is silently unsupported (it would be >

Re: Overriding admin templates

2008-11-01 Thread Karen Tracey
On Sat, Nov 1, 2008 at 5:54 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > Low Kian Seong wrote: > > http://www.djangobook.com/en/1.0/chapter17/ > > Yes, thank you, that's it. > > It worked nicely for the change_form.html example given in that > chapter. However, for the change_list.html it stil

Re: Strange admin validation behaviour.

2008-11-03 Thread Karen Tracey
On Sun, Nov 2, 2008 at 12:07 PM, jiussa <[EMAIL PROTECTED]> wrote: > > Hi > > Been working through the online tutorial without problems up to the > end of part 3. However if I now go back to the admin and try to edit > choices for a Poll I get an error message saying "Please correct the > errors b

Re: Admin behavior: what is errors.items in change_form.html?

2008-11-03 Thread Karen Tracey
On Mon, Nov 3, 2008 at 2:16 PM, nazar <[EMAIL PROTECTED]> wrote: > > I met some unusual behavior in my project in admin change form with > inlines. There is code in template change_form.html: > > {% blocktrans count errors.items|length as counter %}Please correct > the error below.{% plural %}Plea

Re: django: object has no attribute 'clean_data', Help me!!!

2008-11-04 Thread Karen Tracey
On Tue, Nov 4, 2008 at 10:19 AM, 为爱而生 <[EMAIL PROTECTED]> wrote: > Environment: > [snipped] > > File "C:\Python25\Lib\site-packages\django\forms\forms.py" in full_clean > 227. value = getattr(self, 'clean_%s' % name)() > File "D:\django\django_bookmarks\bookmarks\forms.py" in clean_username > 26. u

Re: custom auth

2008-11-04 Thread Karen Tracey
On Tue, Nov 4, 2008 at 11:39 AM, Gabriel Rossetti < [EMAIL PROTECTED]> wrote: > > Gabriel Rossetti wrote: > > Hello everyone, > > > > I'm trying to get a custom auth handler to work but I keep on getting > > this error when accessing request.user.get_profile() : > > > > DoesNotExist: User matching

Re: Newb testing question

2008-11-04 Thread Karen Tracey
On Tue, Nov 4, 2008 at 12:07 PM, Rick <[EMAIL PROTECTED]> wrote: > > Give a man a fish... > > Right, so I see now what's going on. Is this the right place to argue > about how this works? > It isn't clear what you see or what you want to argue about? cleaned_data is established when the form is

Re: link to other record in admin change list

2008-11-04 Thread Karen Tracey
On Tue, Nov 4, 2008 at 3:24 AM, chris <[EMAIL PROTECTED]> wrote: > > Dear Fabio, > > That did the trick! I have searched all over the manuals, but must > have overlooked this. It is a bit confusing that this seems to be > different from is_safe and mark_safe, but for the moment I am happy > that

Re: Admin behavior: what is errors.items in change_form.html?

2008-11-04 Thread Karen Tracey
On Tue, Nov 4, 2008 at 7:36 AM, nazar <[EMAIL PROTECTED]> wrote: > > Now I got it!!! > > I had TEMPLATE_STRING_IF_INVALID = 'TEMPLATE_STRING_IF_INVALID' > > So that 'items' was rendered as 'TEMPLATE_STRING_IF_INVALID' (and I > saw it clearly). And I met the bug, bacause gettext was unable to use >

Re: Newb testing question

2008-11-04 Thread Karen Tracey
On Tue, Nov 4, 2008 at 2:06 PM, Rick Kitts <[EMAIL PROTECTED]> wrote: > Well, I think it's clear what I see. I sort of disagree about the impl, > design, call it what you will. > It wasn't clear to me what you had seen nor what you wanted to argue about though you have clarified that some in this

Re: problem building project with python 2.6 startproject won't work

2008-11-04 Thread Karen Tracey
On Tue, Nov 4, 2008 at 4:12 PM, bizcuit <[EMAIL PROTECTED]> wrote: > > I have been using Django with Python 2.5 the past few months. > > Today I removed Python 2.5 installed Python 2.6 and downloaded Django. > > when I try to create a project from the command line in Windows Vista: > > django-admi

Re: cleaned_data of invalid forms

2008-11-05 Thread Karen Tracey
On Wed, Nov 5, 2008 at 7:43 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Hi, > > up to now cleaned_data is removed, if the form is invalid. > > What is the best way, to get the cleaned data (converted to > python objects) of a form which is invalid? > > Example: The form has field for a grou

Re: Oracle Clob Field type

2008-11-05 Thread Karen Tracey
On Wed, Nov 5, 2008 at 5:54 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Noob here... > > I have an existing table with two Clob fields. While defining the > model I use TextField as the filed type. > > running gives me back the error: > > cx_Oracle.DatabaseError: ORA-01754: a table may

Re: date formats in settings.py

2008-11-06 Thread Karen Tracey
On Thu, Nov 6, 2008 at 11:30 AM, Benedict Verheyen < [EMAIL PROTECTED]> wrote: > > Hi, > > i have a question on the different date/time settings one can specify in > the settings.py. > I currently have these: > TIME_ZONE = 'Europe/Brussels' > DATE_FORMAT = 'd/m/Y' > DATETIME_FORMAT = 'd/m/Y H:i'

Re: defaultdict is not working on "for" template tag iteration.

2008-11-07 Thread Karen Tracey
On Fri, Nov 7, 2008 at 2:51 AM, Hyungyong Kim <[EMAIL PROTECTED]> wrote: > > Hi, > > Since a few hours ago, I've suffered following problem. > I found this problem is due to collections.defaultdict. > > Normal dictionary is working collectly, but defaultdict is not > working. > > >>> from django.t

Re: problem with inlineformset_factory

2008-11-07 Thread Karen Tracey
On Fri, Nov 7, 2008 at 9:10 AM, Daniel Roseman < [EMAIL PROTECTED]> wrote: > > On Nov 4, 6:02 pm, Petry <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm having a weird problem when using inlineformset_factory, he can > > only register up to 2 records, after that causes a validation error > > > >

Re: __import__(settings) failure

2008-11-07 Thread Karen Tracey
On Fri, Nov 7, 2008 at 5:28 PM, matthew <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm sure this is a properly neophyte post, but I'm stumped and would > really appreciate some guidance. I am trying to serve a site under > apache2 using django. I have apache2 and mod_python installed (setup > below).

Re: select for update

2008-11-07 Thread Karen Tracey
On Fri, Nov 7, 2008 at 9:45 PM, tegbert <[EMAIL PROTECTED]> wrote: > > SELECT FOR UPDATE has been discussed in this group before, but I don't > think it's been resolved whether it should be implemented in Django. I > think it should. > > [snip] > ... Any thoughts on how this could be implemented w

Re: App initialized twice? plus, debugging tips.

2008-11-08 Thread Karen Tracey
On Thu, Nov 6, 2008 at 6:43 PM, project2501 <[EMAIL PROTECTED]> wrote: > > Hi, > I'm new to django and have a couple questions. > > I have a __init__.py in my app and try to declare a simple module wide > variable. I noticed __init__.py is called twice when I run "python > manage.py runserver". I

Re: problem with inlineformset_factory

2008-11-08 Thread Karen Tracey
nov, 13:24, Petry <[EMAIL PROTECTED]> wrote: > > I changed my template model to use OneToOneField and remove the > > Blank=True, but the same error appears... > > > > On 7 nov, 12:30, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > > > > On

Re: Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Karen Tracey
You left off the actual exception you get. Also, the details of your Model and ModelAdmin definitions would be helpful (please post to dpaste.com and point to them if they're big enough to display poorly in email), since I've used this method myself without error so I suspect there is something sp

Re: Admin Interface - "You don't have permission to edit anything"

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 5:06 AM, Saravana Kumar K, Bangalore < [EMAIL PROTECTED]> wrote: > Hi All, > >I was trying to install Autotest tool, which is used for kernel testing. > It uses the Django also, Please find the link below > >http://autotest.kernel.org/wiki/AutotestServerInstall >

Re: has more than 1 ForeignKey to

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 3:50 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hi all, > > I have a UserProfile connected to auth.models.User using > >user = models.ForeignKey(User, unique=True) > > Additionally, I'd like to connect users to each other with manager/ > managed hierarchical

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 3:19 PM, ilmarik <[EMAIL PROTECTED]> wrote: > > PS. django documentation is getting crapy these days :( > Comments like this are not particularly helpful. What do you expect anyone to do in response to this comment? It's quite likely all it will do is discourage anyone wh

Re: using Etags or http response code 304 (not modified)

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 4:14 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've tried using the USE_ETAGS=true in my project settings and even > tried using the ConditionalGet Middleware. However, whenever an http > request is made to my page, it always seems to return a http code 200 > alo

Re: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 6:10 PM, ayayalar <[EMAIL PROTECTED]> wrote: > > Hello I am new to Django. > > I am trying to exercise "templates" through the interactive shell, > however I end up getting this error. Can anyone help? > > here is the exact steps I follow: > > 1) cd C:\Django\mysite > >

Re: Error in: python manage.py syncdb

2008-11-10 Thread Karen Tracey
On Mon, Nov 10, 2008 at 8:16 PM, Sean <[EMAIL PROTECTED]> wrote: > > When I run the command python manage.py syncdb to sync database, but > failed > > I got the following error messages: > > File "C:\Python25\Lib\site-packages\django\contrib\auth\management > \_init_.py". line 47 , in > signals.p

Re: Setting Up Django on Vista and Creating a Database

2008-11-11 Thread Karen Tracey
On Tue, Nov 11, 2008 at 1:40 AM, John Antony <[EMAIL PROTECTED]> wrote: > > I am currently using Vista OS > I have installed Python in the path > D:\Python26\ > and extracted the tarred file downloaded from www.djangoprojects.com > ie "Django-1.0.tar.gz" in the path > D:\Python26\Django-1.0\Django

Re: don't escape html tags

2008-11-12 Thread Karen Tracey
On Wed, Nov 12, 2008 at 4:20 AM, izzy <[EMAIL PROTECTED]> wrote: > > Hi. > > I'm new to Django. And I'm having problems with templates. > > I have a richtext field that stores HTML(using TinyMCE). But when I > display it on template it simply renders all in html: > > http://www.thesynapticleap.org

Re: TemplateDoesNotExist

2008-11-12 Thread Karen Tracey
On Wed, Nov 12, 2008 at 1:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > I tried this using the development server on my local machine and got > the same result: > > Template-loader postmortem > > Django tried loading these templates, in this order: > >* Using loader > django.template.

Re: Problem with named URL and parameters

2008-11-12 Thread Karen Tracey
On Wed, Nov 12, 2008 at 10:27 PM, Brandon Taylor <[EMAIL PROTECTED]>wrote: > > Hi everyone, > > So I have a question/problem with a named URL pattern... > > #urls.py > url(r'^resources/conversions/(?P[-\w]+)/$', > 'my_site.views.conversions', name='conversions'), > > This is a mostly static site,

Re: Problem with named URL and parameters

2008-11-12 Thread Karen Tracey
On Wed, Nov 12, 2008 at 10:56 PM, Malcolm Tredinnick < [EMAIL PROTECTED]> wrote: > > > The \w in your specifier for conversion_template matches [a-zA-Z0-9_] > > but you are trying to match something with dashes in it. > > That isn't the issue. The pattern is [-\w], which will also match > dashes.

Re: Basic concept for templatetag using node and parser

2008-11-13 Thread Karen Tracey
On Thu, Nov 13, 2008 at 6:33 AM, suganthi saravanan < [EMAIL PROTECTED]> wrote: > > Thanks bruno...but i have already read the documentation for the Custom > template tag. > > > http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#writing-custom-template-tags > > I need simple example

Re: Query for all objects in table1 that DO NOT have corresponding objects in table2

2008-11-13 Thread Karen Tracey
On Thu, Nov 13, 2008 at 6:47 AM, Ropley <[EMAIL PROTECTED]> wrote: > > Noob question, but I've been running around in circles. I'm building > an in-house jobs board, and have 2 models: > > class jobs(models.Model): > ... > > class viewed_jobs(models.Model): > job=models.ForeignKey(job) > ... > > I

Re: TabularInline across apps causing unknown error in admin.

2008-11-14 Thread Karen Tracey
On Fri, Nov 14, 2008 at 11:28 AM, J. Cliff Dyer <[EMAIL PROTECTED]>wrote: > > Using Django 1.0, devel server, on RHEL5, with python 2.4. > > I have two apps, venues and content. A venues.Venue is linked to > content.Source via a ManyToManyField defined through VenueSource. When > I try to includ

Re: Serialization of custom model fields

2008-11-15 Thread Karen Tracey
On Sat, Nov 15, 2008 at 9:56 AM, AndyH <[EMAIL PROTECTED]> wrote: > > So I'm not missing anything. It's a bug. Ouch... > > Thanks for the info, before I trawled my way through the serializers. > May well have to apply the patch locally to move forward. There > doesn't seem to be much movement on t

Re: Bug in Admin or in my model ?

2008-11-15 Thread Karen Tracey
There's a bug both in your models and in Django, I think. Your __unicode__ method for class Metadata: def __unicode__(self): >return "%s %s" % (self.vrstva,self.nazov) > needs to be: def __unicode__(self): > return u"%s %s" % (self.vrstva,self.nazov)

Re: Css and Images are missing

2008-11-15 Thread Karen Tracey
On Sat, Nov 15, 2008 at 10:49 AM, Luis Goncalves <[EMAIL PROTECTED]>wrote: > > Hello guys I need your help in here. > > Sorry I am new in Django and I am having a problem, my css and jpgs > are missing. > > I will write everything what i have and then maybe someone could give > me a hint :) > > >

Re: installing django on a shared server

2008-11-15 Thread Karen Tracey
On Sat, Nov 15, 2008 at 12:39 PM, Carl <[EMAIL PROTECTED]> wrote: > > When I run the installation script I get this error: > > error: could not create '/usr/lib/python2.3/site-packages/django': > Permission denied > > How do I get around this? > If you're on some flavor of Unix, as you appear to

Re: Bug in Admin or in my model ?

2008-11-15 Thread Karen Tracey
On Sat, Nov 15, 2008 at 2:29 PM, Ivan Mincik <[EMAIL PROTECTED]> wrote: > On Saturday 15 November 2008 18:57, Karen Tracey wrote: > > > The bug in Django is that the attempt to report that your existing > > __unicode__ method generated an error generated yet another error,

  1   2   3   4   5   6   7   8   9   10   >