Re: No models show up in my admin interface

2008-11-15 Thread Karen Tracey
On Sat, Nov 15, 2008 at 7:13 PM, dash86no <[EMAIL PROTECTED]> wrote: > I'm a little confused, and would appreciate it if somebody could point > me to the current "authoritative" tutorials, so I can begin to get > back on the right path here. > Yes, the book is out of date, published several mo

Re: django unicode error

2008-11-16 Thread Karen Tracey
On Sun, Nov 16, 2008 at 10:18 AM, jamesM <[EMAIL PROTECTED]>wrote: > > there is a value 'Qué Onda Guero' in a mysql database. When i SELECT > this row from mysql, it's displayed correctly. When i connect to mysql > DB through python 2.6 shell using mySQLObject and assign the value to > a list, the

Re: Setting Up Django on Vista and Creating a Database

2008-11-17 Thread Karen Tracey
On Mon, Nov 17, 2008 at 3:13 AM, John Antony <[EMAIL PROTECTED]> wrote: > > I have currently created a database with the following details: > DATABASE_ENGINE = 'mysql' > DATABASE_NAME = 'myforum' > DATABASE_USER = 'root' > DATABASE_PASSWORD = 'myforum' > DATABASE_HOST = 'localhost' > DATABASE_PORT

Re: required checkboxes issue

2008-11-17 Thread Karen Tracey
On Mon, Nov 17, 2008 at 11:37 AM, Bobby Roberts <[EMAIL PROTECTED]> wrote: > > I have a problem with one of my forms in regard to a series of > checkboxes. They are displaying properly on the page with the right > values in the checkboxes. I have this set to REQUIRED in my form. > However, wheth

Re: Can't access the development server

2008-11-17 Thread Karen Tracey
On Mon, Nov 17, 2008 at 8:14 AM, Ben <[EMAIL PROTECTED]> wrote: > > [snip] > > I start the development server using: > > python manage.py runserver > > which seems to work ok: > > Validating models... > 0 errors found > > Django version 1.1 pre-alpha SVN-9479, using settings > 'prototype.settings'

Re: Sessions

2008-11-17 Thread Karen Tracey
On Mon, Nov 17, 2008 at 10:15 AM, srn <[EMAIL PROTECTED]> wrote: > > Hi, > I'm trying to work with the session object in my application but it > doesn't work as expected. > So in my settings.py I have: > > MIDDLEWARE_CLASSES = ( >'django.middleware.gzip.GZipMiddleware', >'django.middleware

Re: Update Values to Null

2008-11-17 Thread Karen Tracey
On Mon, Nov 17, 2008 at 9:06 PM, Merrick <[EMAIL PROTECTED]> wrote: > > I cannot figure out how to update a foreign key to a null value. > Thanks. > > models.py > > group = models.ForeignKey(group, null=True, blank=True) > > >>> from redirect.models import * > >>> Links = Link.objects.fil

Re: New Django install on Win Vista-problem

2008-11-17 Thread Karen Tracey
On Mon, Nov 17, 2008 at 9:58 PM, DSS <[EMAIL PROTECTED]> wrote: > > I just installed Django 2.6 on my Vista machine; followed installation > instructions explicitly. Python imports Django sucessfully. When I > try to run django-admin.py startproject ..., it does not run at the > command prompt. I

Re: how to implement multiple choices in model

2008-11-18 Thread Karen Tracey
On Mon, Nov 17, 2008 at 9:56 PM, Canhua <[EMAIL PROTECTED]> wrote: > > hi, I am trying to create such a kind of field in a model. The field > can only take one or more values from a set of value, each seperated > by such as commas. It seems that there is no built-in field type in > Django. How may

Re: Installing django admin on apache/ mod_python

2008-11-18 Thread Karen Tracey
On Tue, Nov 18, 2008 at 3:39 AM, paultanner <[EMAIL PROTECTED]> wrote: > > I got a fresh distribution (1.01) and installed it on RHEL4 linux/ > apache/mod_python (in a subdomain) > python is 2.3.4 > the trivial app /tim (from the book) works OK so most of the config > must be right > then tried to

Re: forms.FileField | required=True fails

2008-11-18 Thread Karen Tracey
On Tue, Nov 18, 2008 at 7:16 AM, jelle <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm using django 1.0, and am experiencing the following issue with a > forms.FileField. > When I use required=False, I'm able to validate the form, while when > using the same form with required=True in the forms.FileFie

Re: general problems with installing downloaded django apps

2008-11-18 Thread Karen Tracey
On Tue, Nov 18, 2008 at 9:28 AM, webcomm <[EMAIL PROTECTED]> wrote: > > On Nov 16, 6:45 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > > webcommwrote: > > > > [yet again at the top of the message, so I have yet again moved the > > response down to where it reads logically ...] > > > > Steve, > re:

Re: What happened to Documentation layout on djangoproject.com?

2008-11-18 Thread Karen Tracey
On Tue, Nov 18, 2008 at 2:23 PM, John M <[EMAIL PROTECTED]> wrote: > > I just noticed that the documentation layout change (for the better). > Did I miss an announcement. > > Either way, I love it. > http://groups.google.com/group/django-developers/browse_thread/thread/f3cd6873ce97c003 Karen --

Re: Help with Abstract class and admin.py

2008-11-19 Thread Karen Tracey
On Wed, Nov 19, 2008 at 5:13 PM, JimR <[EMAIL PROTECTED]> wrote: > > We have defined the following models: > > class AbstractEvent(models.Model): >team = models.ForeignKey(Team) >description = models.TextField(null=True, blank=True) >description_rendered = models.TextField(

Re: Help with Abstract class and admin.py

2008-11-19 Thread Karen Tracey
On Wed, Nov 19, 2008 at 9:30 PM, JimR <[EMAIL PROTECTED]> wrote: > > Karen, > > Thanks for the quick response, and sorry, I do have quotes around > them, I just mistyped when I added them back in for the purposes of > this post. > > Here's the abbreviated Team model, and the corrected Admin Manage

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread Karen Tracey
On Thu, Nov 20, 2008 at 7:33 AM, Dominic Ashton <[EMAIL PROTECTED]>wrote: > Guys, > > A brief google search has led me to conclude that it's not possible to > filter on a foreign key field in the Admin. > Did you try it? I have foreign key fields specified in my filters and they work. What happ

Re: configuring production server for static media

2008-11-20 Thread Karen Tracey
On Thu, Nov 20, 2008 at 9:15 AM, Serdar T. <[EMAIL PROTECTED]> wrote: > > ok. so that fix workedkind of. > > I now get the properly formatted admin login page when I visit > http://mysite.org/admin/ > > But when I log in, the following 500 Internal Server Error appears: > "I'm sorry, that pag

Re: Help with Abstract class and admin.py

2008-11-20 Thread Karen Tracey
On Thu, Nov 20, 2008 at 10:15 AM, JimR <[EMAIL PROTECTED]> wrote: > > Karen, > > Thanks for your help. Here's what I've done: > > I've commented out the list_display for GameAdmin and defined a > __unicode__ for game as: > >def __unicode__(self): >return '%s vs. %s' % (se

Re: Is it possible to display multiple forms in a single template file?

2008-11-20 Thread Karen Tracey
On Thu, Nov 20, 2008 at 5:03 PM, ayayalar <[EMAIL PROTECTED]> wrote: > > VIEW: > > def add_product(request): >if not request.method == 'POST': >form1 = ProductForm() >return render_to_response('index.html', {'form1' : form1}) >else: >form1 = ProductForm(request.POST

Re: 'QuerySet' object has no attribute '_meta'

2008-11-21 Thread Karen Tracey
On Fri, Nov 21, 2008 at 4:22 PM, ayayalar <[EMAIL PROTECTED]> wrote: > > I am just simply trying to display all existing objects in a form > > MODEL: > class Product(models.Model): >name = models.CharField(max_length=30) > >def __unicode__(self): >return self.name > > VIEW > def pr

Re: New Django user: How do I return the server's IP address?

2008-11-21 Thread Karen Tracey
On Fri, Nov 21, 2008 at 5:14 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > Where can I get the Host server's IP address? > > request.META['SERVER_NAME'] simply returns localhost instead of > whatever my ip address is > Your machine likely has more than one IP address: one for each network i

Re: Problem with i18n in tests

2008-11-22 Thread Karen Tracey
On Sat, Nov 22, 2008 at 6:52 AM, Florencio Cano <[EMAIL PROTECTED]>wrote: > Hi! > I'm testing a Django application where I'm using i18n. > The problem is with a test that says that a word with an accent > (spanish) is the same as a word without an accent. And although I have > established my own e

Re: UnicodeEncodeError using mysql as db

2008-11-23 Thread Karen Tracey
On Sun, Nov 23, 2008 at 6:42 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Hello, > > I'm one of the developers of Rancho (www.getrancho.com) > > One of our users reported a problem using mysql and unicode with we > haven't been able to solve. > > Here is the traceback: http://dpaste.com/9

Re: Problem with i18n in tests

2008-11-24 Thread Karen Tracey
On Mon, Nov 24, 2008 at 9:25 AM, Florencio Cano <[EMAIL PROTECTED]>wrote: > I've done that because I want to change the default error_message and > I do not know who to do it :(. I've tried error_messages={} in the > field but it is now recognized in Fields in ModelForms only in plain > Forms. So,

Re: Windows XP install

2008-11-24 Thread Karen Tracey
On Mon, Nov 24, 2008 at 9:40 PM, kiminvegas <[EMAIL PROTECTED]> wrote: > > Hello All, > > I have python 2.6 installed, but can't seem to get Django going. I > copied the Django dir to python\lib with other site packages but this > is what I get when I try to start a project > > IDLE 2.6 > >>> dja

Re: Template engine reads OS locale (?) and expects comma instead of decimal point in floatformat

2008-11-25 Thread Karen Tracey
On Mon, Nov 24, 2008 at 2:06 PM, Ulf Kronman <[EMAIL PROTECTED]>wrote: > > Hi all, > I need your help on this. > > Suddenly this weekend my templates on my Win XP box started breaking > with the error message: > TemplateSyntaxError at /vr/isi/items/ > Caught an exception while rendering: invalid l

Re: problem with inlineformset_factory

2008-11-27 Thread Karen Tracey
On Thu, Nov 27, 2008 at 3:14 PM, Yanik <[EMAIL PROTECTED]> wrote: > > I'm using MySQL and running 1.0.2 and the bug is still there. > > This ticket: > http://code.djangoproject.com/ticket/9039 > > is closed, but the code still hasn't been fixed and the mentioned > patch doesn't seem to work. > > H

Re: ERROR: null value in column "id" violates not-null constraint

2008-11-28 Thread Karen Tracey
On Fri, Nov 28, 2008 at 12:07 PM, dbee <[EMAIL PROTECTED]> wrote: > > So django is supposed to be auto incrementing id when i insert a new > value. Instead though, I get ... > > ERROR: null value in column "id" violates not-null constraint > > INSERT INTO "mobi1_campaigns" ("userProfile_id", "nam

Re: Form POST Issue

2008-12-01 Thread Karen Tracey
On Mon, Dec 1, 2008 at 4:08 AM, please smile <[EMAIL PROTECTED]>wrote: > Hi All, > > I need to pass the "totalItems" value as argument to Paginator(disp, > totalItems) function > > if It is POST. > > But it throws the error > > "coercing to Unicode: need string or buffer, int found" > > > How do

Re: urlpatterns question

2008-12-01 Thread Karen Tracey
On Mon, Dec 1, 2008 at 7:42 AM, Earl Lapus <[EMAIL PROTECTED]> wrote: > > hi all, > > I'm new to django and python. I have a small question about > urlpatterns and it may sound silly to some so please bear with me. > > I noticed a bit of difference between a urlpatterns callback function > of an a

Re: Form POST Issue

2008-12-01 Thread Karen Tracey
In the future, if you click "Switch to copy-and-paste-view" and then just copy and paste the contents of the traceback window, that is generally easier to deal with. The traceback in your screenshot (which shows your photosapp/views.py on line 104 calling paginator.page) doesn't match up with the

Re: django-tagging encoding errors

2008-12-03 Thread Karen Tracey
On Wed, Dec 3, 2008 at 10:14 AM, Alex Jonsson <[EMAIL PROTECTED]>wrote: > > Guys, I'm in trouble. > > I'm using the django-tagging application with a Swedish news > application. It generally works, but there's one big problem which has > taken me forever to solve. > > I've concluded that the issue

Re: Authentication session timeout

2008-12-03 Thread Karen Tracey
On Wed, Dec 3, 2008 at 11:09 AM, mdp <[EMAIL PROTECTED]> wrote: > > If I enable session timeouts via settings.SESSION_COOKIE_AGE I get the > following when accessing my login/logout page: > > Traceback (most recent call last): > > File "/usr/lib/python2.5/site-packages/django/core/servers/ > base

Re: Adding Model Inline with Group Model

2008-12-03 Thread Karen Tracey
On Wed, Dec 3, 2008 at 2:29 PM, VoiDeT <[EMAIL PROTECTED]> wrote: > > Hey there, > > I am trying to figure out how to solve this: > I have created a new model called GroupLevels to extend the already > existing Group model by django.contrib.auth.models.group. I wish to > have the GroupLevels inlin

Re: Adding Model Inline with Group Model

2008-12-03 Thread Karen Tracey
On Wed, Dec 3, 2008 at 2:46 PM, VoiDeT <[EMAIL PROTECTED]> wrote: > > Hi Karen, > > Thanks alot for your quick reply! > Indeed the admin.site.register(Group, GroupAdmin) was meant to write > as admin.site.register(GroupLevels, GroupAdmin). However when i do > this it doesn't display it inline, ins

Re: django-tagging encoding errors

2008-12-03 Thread Karen Tracey
Glad to help. Out of curiosity, where are you deploying that your production server has only Python 2.3? There's been a conversation over on the developer's list about when to drop support for Python 2.3 in Django, and the general feeling seems to be that 2.3 ought to be getting pretty rarely see

Re: Adding Model Inline with Group Model

2008-12-03 Thread Karen Tracey
On Wed, Dec 3, 2008 at 7:08 PM, VoiDeT <[EMAIL PROTECTED]> wrote: > > Hey Karen, > > I have tried this scenario above, however the GroupLevels does not > show inline with the Groups Model in Admin. I don't understand why > not, no errors, just simply does not display. I have also tried to > inline

Re: Adding Model Inline with Group Model

2008-12-03 Thread Karen Tracey
On Wed, Dec 3, 2008 at 8:04 PM, VoiDeT <[EMAIL PROTECTED]> wrote: > > Excellent! > That worked fine, i guess i had to unregister it first and then dump > my code into the admin.py file. > However now the Group is a multiple select widget whereas before it > would use a widget that i could add grou

Re: modelformset_factory error: (Hidden field id) with this None already exists.

2008-12-04 Thread Karen Tracey
On Thu, Dec 4, 2008 at 2:12 AM, cyberjack <[EMAIL PROTECTED]> wrote: > > Hi, > > I haven't been able to solve this problem, but have made some > progress: > > It's definitely *not* bug 9039. I've download the tests from that > ticket and confirmed the fix was included in 1.0.2 final. > > The prob

Re: UserChangeForm not working

2008-12-05 Thread Karen Tracey
On Fri, Dec 5, 2008 at 3:18 AM, Brandon Taylor <[EMAIL PROTECTED]>wrote: > > Hi everyone, > > I want to allow users to change their username in a non-admin form. I > have a login form already working, and I can successfully show user > information. I have granted the change user permission to the

Re: modeling questions

2008-12-05 Thread Karen Tracey
On Fri, Dec 5, 2008 at 3:38 AM, Margie <[EMAIL PROTECTED]> wrote: > > Am trying to get the hang of specifying my models, so bear with me ... > > Suppose that I want to reprsent states and the cities that are in > them. I think I would have a model that looks like this: > > class State(models.Mode

Re: Change message unicode issue

2008-12-05 Thread Karen Tracey
2008/12/5 Will McGugan <[EMAIL PROTECTED]> > Hi, > > I'm getting an 500 error in my admin site when modifying an object > containing unicode. It seems to be an issue when constructing the change > message. Here's the details (running on Django 1.0). Any help would be > appreciated. > > > 'ascii' c

Re: Django & referential integrity

2008-12-05 Thread Karen Tracey
On Fri, Dec 5, 2008 at 8:50 AM, Thierry <[EMAIL PROTECTED]>wrote: > > I noticed that Django handles all the referential integrity issues for > delete statements at the Python/ORM level. > - Is this documented anywhere? > http://docs.djangoproject.com/en/dev/topics/db/queries/#deleting-objects >

Re: confused with session chapters in djangoproject

2008-12-05 Thread Karen Tracey
On Fri, Dec 5, 2008 at 9:53 AM, vierda <[EMAIL PROTECTED]> wrote: > > Dear all, > > I'm newbie in Django and have started study since two weeks. I tried > code that shows in djangoproject.com, in session chapters I got > problem with below code. It shows error that says module comments > doesn't h

Re: Advanced list_filter in admin

2008-12-05 Thread Karen Tracey
On Fri, Dec 5, 2008 at 10:04 AM, Michel Thadeu Sabchuk <[EMAIL PROTECTED]>wrote: > > Hi guys, > > Is there a way to use advanced list_filter in admin? I can filter by > pub_date but is there a way to filter by pub_date__isnull or by some > python function? > > I want to filter all entries with pub

Re: help with file uploads

2008-12-05 Thread Karen Tracey
On Thu, Dec 4, 2008 at 6:12 PM, Alan <[EMAIL PROTECTED]> wrote: > Hi there! > Although I have some experience in Python and Plone and have done Django > tutorial, I am still not getting how to do a simple task I proposed myself: > build a submitting page for a zip file. > > So I am looking at > ht

Re: confused with session chapters in djangoproject

2008-12-05 Thread Karen Tracey
On Fri, Dec 5, 2008 at 4:10 PM, vierda <[EMAIL PROTECTED]> wrote: > > Dear Karen, > > thanks for your reply. Actually in my learning I try to follow the > code which is provide in the book to understand how it works. It > sounds silly but from above code, I really didn't get what below line > tryi

Re: Django And os.path Behavior

2008-12-05 Thread Karen Tracey
On Fri, Dec 5, 2008 at 6:07 PM, dayvo <[EMAIL PROTECTED]> wrote: > > Good question. That could affect the app if I were using relative > path's or relying on the environment to locate files. The path's I'm > using in the app are stored are absolute paths. They work correctly > for path's that d

Re: Character encoding... latin1 to utf8?

2008-12-06 Thread Karen Tracey
On Sat, Dec 6, 2008 at 11:10 AM, Rob Hudson <[EMAIL PROTECTED]> wrote: > [snip debug info] > > Now instead of \x95 I get \u2022 (which is a bullet). > > From here I'm not sure what the best way to proceed is... do I want > the \u2022 version instead, in which case, should I not pass in > unicode=T

Re: Character encoding... latin1 to utf8?

2008-12-06 Thread Karen Tracey
On Sat, Dec 6, 2008 at 1:36 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > > You can see how this works better than the latin1 code in a Python shell: > > >>> x = 'Bullet ->\x95<- and curly apostrophe ->\x92<- in a cp1252 > bytestring' > &g

Re: Django configuration. I can't import django.db .

2008-12-06 Thread Karen Tracey
On Sat, Dec 6, 2008 at 11:53 AM, Marek Wawrzyczek <[EMAIL PROTECTED]>wrote: > In the tutorial (http://docs.djangoproject.com/en/dev/intro/tutorial01/) I > do everything what is written, and in the > "Activating Models" section, when I run the: > > python manage.py sql polls > > I get the following

Re: Character encoding... latin1 to utf8?

2008-12-06 Thread Karen Tracey
On Sat, Dec 6, 2008 at 2:59 PM, Rob Hudson <[EMAIL PROTECTED]> wrote: > > Wow, thanks so much Karen, for slicing and dicing the problem like > that. > > On Dec 6, 10:36 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > You could also just conve

Re: Removing accents from strings

2008-12-06 Thread Karen Tracey
On Sat, Dec 6, 2008 at 7:23 PM, Dave Dash <[EMAIL PROTECTED]> wrote: > > I'm experiencing some strange behavior, and I think it has to do with > how django deals with utf strings: > > When I write a test.py file: > > import re, unicodedata > > reCombining = re.compile(u'[\u0300-\u036f\u1dc0-\u1dff

Re: keep html

2008-12-06 Thread Karen Tracey
On Sat, Dec 6, 2008 at 9:17 PM, Patricio Palma <[EMAIL PROTECTED]>wrote: > > Is possible to get the html code from an administration page? > > > I mean, my browser is interpreting a html generated by templates and > components of my application, some banners and pictures. > > Is there any way to g

Re: Removing accents from strings

2008-12-06 Thread Karen Tracey
On Sat, Dec 6, 2008 at 9:00 PM, Dave Dash <[EMAIL PROTECTED]> wrote: > > Okay I think that fixes one fundamental issue... I've got a unittest, > however that fails for a function: > > def normalize(tag): >""" >>>> normalize(u'cafe') >u'cafe' >>>> normalize(u'caf e') >u'cafe' >

Re: Removing accents from strings

2008-12-07 Thread Karen Tracey
On Sun, Dec 7, 2008 at 4:58 AM, Dave Dash <[EMAIL PROTECTED]> wrote: > > Sorry Karen my mistake for leaving that out, that reTagnormalizer just > filtered everything that wasn't alphanumeric, the full code is below. > Actually I think it worked for me last night because I tested it using an iso88

Re: modelformset_factory error: (Hidden field id) with this None already exists.

2008-12-08 Thread Karen Tracey
erly with existing DB instances. Karen > > Thanks! > > -Josh > > On Dec 4, 4:10 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On Thu, Dec 4, 2008 at 2:12 AM, cyberjack <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > >

Re: admin caching querysets

2008-12-09 Thread Karen Tracey
On Tue, Dec 9, 2008 at 1:58 PM, lingrlongr <[EMAIL PROTECTED]> wrote: > > I have a function called get_urls that returns a list of absolute_urls > for various models in the same project. This function is used for > another model in a way so that when a particular model appears on the > site, I ca

Re: Form stays invalid even after required field has been set

2008-12-10 Thread Karen Tracey
On Wed, Dec 10, 2008 at 10:26 AM, Berco Beute <[EMAIL PROTECTED]> wrote: > > Here's the code: > > http://dpaste.com/97758/ > > My modelform stays invalid although the required fields of the > instance are set. The 'product' field is excluded from the form > because it shouldn't be edited. When the

Re: Using composition for building database models

2008-12-10 Thread Karen Tracey
On Wed, Dec 10, 2008 at 1:51 PM, Mr. T <[EMAIL PROTECTED]> wrote: > > As I am a noob this is very possibly a stupid question > > Basically I would like to be able to use composition to build some of > my models without having separate tables being created. > > class baseClass: > field1 > .

Re: One to Many insert into Postgres

2008-12-11 Thread Karen Tracey
On Thu, Dec 11, 2008 at 10:45 AM, Ana <[EMAIL PROTECTED]> wrote: > > [snip] > My admin form - publication shows more than one pathology on the edit > page, which means the above code works up to this point. It also > gives me 3 empty fields that allows me to continue to add pathologies > to the p

Re: how to make the label of form international

2008-12-11 Thread Karen Tracey
On Thu, Dec 11, 2008 at 10:50 AM, Lucas wrote: > > Hi, > > > Now i'm confused with the following point about the international. > 1. When running make-messages.py,it's showing that xgettext isn't a > command. > Does xgettext means xgettext.py or a exe file? Where i can download > it. Since you

Re: unicode/ut8 input in mysql via django models

2008-12-11 Thread Karen Tracey
On Thu, Dec 11, 2008 at 10:02 PM, I.A wrote: > > Hi, > > I'm wondering the correct way to save unicode data in MySQL through > django's models. > The application I'm building reads a raw email and then stores the > text data into the database. I process the email like so: > > import email > mess8

Re: Creating a custom sql query

2008-12-12 Thread Karen Tracey
On Fri, Dec 12, 2008 at 4:32 AM, Kottiyath Nair wrote: > oops!! Unknowingly send the mail before finishing it. > > As I was mentioning in the earlier mail: > What I want is: >dbmodel.objects.filter(__first_filter).sum(), should be able to sum > across the filtered data. > > If somebody could h

Re: model string reprentations

2008-12-12 Thread Karen Tracey
On Fri, Dec 12, 2008 at 7:33 AM, ben852 wrote: > > Hi, > I am new to django and programming. > I have a problem with the method _str_( ). > Following the tutorial, I edited my models.py file in mysite/books and > wrote: > [snip] The fact that you are using __str__ instead of __unicode__ indicat

Re: problem with make-messages.py russian language

2008-12-12 Thread Karen Tracey
On Fri, Dec 12, 2008 at 8:24 AM, Dafidov wrote: > > Hello. > I didn't found in Internet any comments in this subject thats why I'm > writing. I don't know why but after moving to django 1.0.2 I have a > problem with creating po files in Russian language. The German and > Polish work fine but when

Re: Where to I need to install the Python database bindings?

2008-12-15 Thread Karen Tracey
On Mon, Dec 15, 2008 at 9:13 AM, Samir van de Sand wrote: > Hello everyone, > > I know this is am embarrassing question but I have to ask: Given that > django is running on one machine and the database is running on another > machine, where do I have install the python database bindings? I presum

Re: Django Forms Date Format

2008-12-15 Thread Karen Tracey
On Mon, Dec 15, 2008 at 10:55 AM, Aldo wrote: > > Still no good lars. Thanks though. > http://docs.djangoproject.com/en/dev/ref/forms/fields/#datefield documents how to override the default valid date formats for input to a DateField. http://docs.djangoproject.com/en/dev/topics/forms/modelform

Re: Django + mail server

2008-12-15 Thread Karen Tracey
On Mon, Dec 15, 2008 at 1:01 PM, prem1er wrote: > > Hey everyone, > I'm trying to create a registration page on my website using Django > forms. I just realized that I needed to install a mail server in > order to send confirmation messages to my users through the forms. > What type of setup i

Re: Where to I need to install the Python database bindings?

2008-12-15 Thread Karen Tracey
On Mon, Dec 15, 2008 at 1:38 PM, Samir van de Sand wrote: > Thank you for the answer Karen. > One other question: Does the db admin need to set any permissiona so that > Django can connect via oracle_cx to the database? (until now I always used > to connect over ODBC to the db) > I wouldn't thin

Re: Problems with Unicode in "verbose_name" and "verbose_name_plural"

2008-12-16 Thread Karen Tracey
On Tue, Dec 16, 2008 at 6:06 PM, diogobaeder wrote: > > Hi there, > > I'm trying to use accents in a string, inside the Meta properties, but > Python throws the following error: > > SyntaxError: Non-ASCII character '\xc3' in file /home/diogo/sites/ > projetos/diogobaeder/django_site/diogobaeder/.

Re: invalid syntax - install django 1.0.2

2008-12-17 Thread Karen Tracey
On Wed, Dec 17, 2008 at 1:26 PM, Richard wrote: > > Hi, > > when im running the "setup.py install" command in my shell under > Windows Vista > it returns an syntax error in Line 70 > > if u'SVN' > ^ > > anybody knows what im doing wrong? > > Is that really the whole of the error message

Re: SQL injection hardening

2008-12-17 Thread Karen Tracey
On Wed, Dec 17, 2008 at 12:11 PM, Travis Veazey wrote: > [snip]I've tried searching the Django documentation, but "SQL injection" > turns up nothing, and "escaping input" only produces results related to > auto-escaping output in templates. > It may not be in the docs, but there's a whole chapte

Re: i18n/setlang TypeError :(((

2008-12-17 Thread Karen Tracey
On Wed, Dec 17, 2008 at 12:56 PM, pielgrzym wrote: > > Ok, I believe I've found a buggg ;) > > The problem is locale.translate can't handle utf encoded language > code. To avoid doing so I needed to add "lang_code = lang_code.encode > ('ascii')" to line 334 of django/utils/translation/trans_real.

Re: Strange error using modelformset_factory

2008-12-17 Thread Karen Tracey
On Wed, Dec 17, 2008 at 7:49 AM, marty3d wrote: > > Hi! > > I've been stuck with this for some days now, and can't find any > answers whatsoever. Please bare with me since I'm a newbie with Python/ > Django. > (English nitpick: the word is bear, not bare, that you're looking for in that idiom.)

Re: Tutorial part 3, where is the admin site?

2008-12-17 Thread Karen Tracey
On Wed, Dec 17, 2008 at 4:41 PM, jjgarsal wrote: > > I am trying to learn django with the tutorial at: > > http://docs.djangoproject.com/en/dev/intro/tutorial03/ > > my admin site was working, then when I start the lesson 3 I changed > the urls.py (I add the code below) and add the last 4 lines.

Re: django and os.spawnvp method

2008-12-18 Thread Karen Tracey
On Thu, Dec 18, 2008 at 3:36 AM, Alan wrote: > Thanks Malcom, > I think I was not clear enough. I will try again. > > So I am at the "Submission Page" (submit.html), with a form where I set > some parameters and then I click "submit". This form is linked to action > "run_aria" (run_aria.html) def

Re: SQLite iexact problem with non-latin symbols

2008-12-18 Thread Karen Tracey
On Thu, Dec 18, 2008 at 4:53 PM, Eugene Mirotin wrote: > > Hello. > Consider I have a simple model > > class Team(models.Model): >name = models.CharField(max_length=200) > > Then I create some team and try to look for it with iexact match: > tt = Team(name='English') > tt.save() > Team.object

Re: Sites

2008-12-22 Thread Karen Tracey
On Mon, Dec 22, 2008 at 3:43 AM, todd wrote: > I'm using the latest django release 1.0.2 and following the tutorial. > I noticed I do not have 'Sites' in my admin site. Am I missing > something to get the 'Sites' appear? > Probably you do not have 'django.contrib.sites' listed in your INSTALLE

Re: Subcategory field is not saving Stackline issue

2008-12-29 Thread Karen Tracey
On Fri, Dec 26, 2008 at 3:45 AM, Praveen wrote: > > Hi all i am not able to save the entry of sub_cat field > > here is my model.py > > class MainCategory(models.Model): > main_cat_code= models.CharField(max_length=20,primary_key=True) > description = models.CharField(max_length = 50,) > def __

Re: Validate uniqueness in forms

2008-12-30 Thread Karen Tracey
On Tue, Dec 30, 2008 at 7:22 AM, janedenone wrote: > > Hi, > > I was looking for a way to customize the error message when trying to > submit an existing value for a unique field (using a ModelForm). > According to this request (http://code.djangoproject.com/ticket/8913), > I am not the first one

Re: Calendar

2008-12-30 Thread Karen Tracey
On Tue, Dec 30, 2008 at 7:51 AM, Praveen wrote: > > Hi All, > I want to use calendar in my html template as the default admin > interface uses. > http://docs.djangoproject.com/en/dev/topics/forms/media/#form-media Karen --~--~-~--~~~---~--~~ You received this mes

Re: Inline problem in Postgres but not MySQL

2008-12-30 Thread Karen Tracey
On Tue, Dec 30, 2008 at 1:29 PM, Peter wrote: > > I have two models: Person and Telephone. A person can have many > telephones but a telephone belongs to at most one person. The models > are: > > [snipped] > Using PostgreSQL this allows me a single phone number for a person. I > can chnage and de

Re: unable to access another field in cleaned_data from clean_

2008-12-30 Thread Karen Tracey
On Tue, Dec 30, 2008 at 2:21 PM, hotani wrote: > > -- Update -- > > If I make the clean method for 'county', it works. I guess county > comes after case_no so both are accessible by that time. Weird, but I > can deal with it. However, that brings me to the 2nd issue with this > process: Whatever

Re: Inline problem in Postgres but not MySQL

2008-12-30 Thread Karen Tracey
On Tue, Dec 30, 2008 at 2:37 PM, Peter wrote: > > (You don't say what version of Django you are using.) > > Sorry - 1.0 final > > > What you describe > > sounds similar to a few problems that have been reported. > > Ah yes. I looked. Thanks. Nasty. > > > but I believe the only way to > > complete

Re: Test database is not getting created.

2008-12-30 Thread Karen Tracey
On Tue, Dec 30, 2008 at 2:49 PM, sudha wrote: > > I'm a total newbie to django. I have to test some of ui models. When I > run manage.py test; Django complains as follows: > File "build/bdist.linux-x86_64/egg/MySQLdb/connections.py", line 35, > in defaulterrorhandler > _mysql_exceptions.Operation

Re: Installing Django 1.0.2...

2008-12-31 Thread Karen Tracey
On Wed, Dec 31, 2008 at 3:36 AM, mic wrote: > > I am a first time python/django user > > running "python setup.py install" gives me this error > > Traceback (most recent call last): > File "setup.py", line 69, in >version = __import__('django').get_version() > File "C:\Django-1.0.2-fin

Re: Installing Django 1.0.2...

2008-12-31 Thread Karen Tracey
On Wed, Dec 31, 2008 at 9:20 AM, Peter wrote: > > Python cannot find django/utils/version.py. Usually everything needed > for > to run django (which is everything in the 'django' folder) is put > under the folder 'site-packages' > in your pythin installation. AFAIK simply copying C:\Django-1.0.2-

Re: Calendar

2008-12-31 Thread Karen Tracey
gets, I don't see that the doc details that. Personally I have not done this myself and don't have time at the moment to do any more with it than point at the existing doc. Karen > > On Dec 30, 9:30 am, "Karen Tracey" wrote: > > On Tue, Dec 30, 2008 at 7:51

Re: I would like to report a bug but I can't log in

2009-01-02 Thread Karen Tracey
On Fri, Jan 2, 2009 at 5:03 AM, Friendless wrote: > > I tried to report a bug anonymously and got told I was spam, so I > signed up, got the email, activated the account, and still can't log > in and still can't report the bug. I've been using Django 30 minutes > and I'm already frustrated! > > Th

Re: Writing your first Django app

2009-01-02 Thread Karen Tracey
On Fri, Jan 2, 2009 at 9:35 AM, johan wrote: > I'm still struggling with the tutorial. Now I have the code snippet from: > http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02 > > def was_published_today(self): > return self.pub_date.date() == datetime.date.today() > was_publis

Re: TypeError when using direct-to_template

2009-01-02 Thread Karen Tracey
On Fri, Jan 2, 2009 at 9:51 AM, SG_Muse wrote: > > hey all! > > Small intro/background :) I've been trying to use (Geo)Django to > develop some kind of a research environment for the past 5 weeks. I'm > completely new to programming, so ^^noob-alert!^^ However, I've been > reading _a lot_ the pas

Re: Writing your first Django app

2009-01-02 Thread Karen Tracey
On Fri, Jan 2, 2009 at 11:25 AM, johan wrote: > OK it is finally working after a lot of strange errors! 3 hours spent on > this crap! Can you really trust the built in server that it always update > your code? > No, not if you introduce syntax errors into your code. If it tries to reload and en

Re: getting "duplicate key violates unique constraint" error from form even with "unique_together" in model

2009-01-02 Thread Karen Tracey
On Fri, Jan 2, 2009 at 12:57 PM, hotani wrote: > > I have 3 fields that need to be unique together: office, county and > case_no. In the "Case" model, I have the following: > > -- > class Case(models.Model): > office = models.ForeignKey(Office, editable=False) > county = models.ForeignKey(Count

Re: I would like to report a bug but I can't log in

2009-01-02 Thread Karen Tracey
On Fri, Jan 2, 2009 at 9:46 PM, Friendless wrote: > > I still can't log in. Sometimes I get a dialogue box, sometimes a > form, but it just never works. My username is Friendless. Did you try just filling in some settings at the page I pointed to in the earlier mail? That method doesn't require

Re: getting "duplicate key violates unique constraint" error from form even with "unique_together" in model

2009-01-03 Thread Karen Tracey
On Fri, Jan 2, 2009 at 2:45 PM, hotani wrote: > > Could this be a problem with the editable=False setting? > Yes, sorry, I did not notice you had set that on one of the fields involved in the unique check. > The record I am attempting to duplicate is a duplicate office/county/ > case_no entry.

Re: Problems with send_mail and the string formatting operator

2009-01-03 Thread Karen Tracey
On Sat, Jan 3, 2009 at 8:48 PM, OwenK wrote: > > I have a simple function for sending activation emails to new users, > but it always raises a ValueError of "unsupported format character > '/' (0x2f) at index 51". You can see the function at > http://dpaste.com/105078/ > . the newuser argument is

Re: I would like to report a bug but I can't log in

2009-01-03 Thread Karen Tracey
On Sat, Jan 3, 2009 at 4:43 PM, Friendless wrote: > I'm using MySQL 5.0.51a on Ubuntu Hardy Heron. > Hmm, that looks later than what I tested on (5.0.45). I'm not wanting to mess with the install I have on Ubuntu, so I installed the latest 5.0.67 community version on a test machine (which happen

Re: I would like to report a bug but I can't log in

2009-01-03 Thread Karen Tracey
On Sun, Jan 4, 2009 at 1:03 AM, Friendless wrote: > > On Jan 4, 2:42 pm, "Karen Tracey" wrote: > > I'll admit your tone here is starting to make me lose interest in your > > problem report. > > Admit it, you weren't very interested in the first place.

Re: inlineformset_factory KeyError after updating

2009-01-05 Thread Karen Tracey
On Mon, Jan 5, 2009 at 10:01 AM, Alistair Marshall < runninga...@googlemail.com> wrote: > > I appear to be having the same trouble as explained in a previous > thread [1] (and for some reason cant find the button to reply to the > last thread ???) > > The other thread points to a bug that was fixe

<    1   2   3   4   5   6   7   8   9   10   >