Re: Hidden variable lookup failures and template performance

2007-01-05 Thread Karen
t are valid, but I don't think django itself ought to include a potentially big performance hit for looking up a non-existant variable, so hopefully this will be addressed in the base code as well. Cheers, Karen --~--~-~--~~~---~--~~ You received this message b

Re: newbie question

2007-01-18 Thread Karen
ange your urls.py to expect the "/fun" at the beginning (in which case you will also need to include "fun" in your urls to get to the development server. Hope this helps and is not clear as mud... Karen --~--~-~--~~~---~--~~ You received this mess

Re: settings.ADMINS and error emails?

2007-01-18 Thread Karen
I also had to set EMAIL_HOST in settings.py to the name of my ISP's SMTP server. Otherwise localhost is used. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: having trouble with css file location

2007-01-20 Thread Karen
rious comments there is often confusion in this area when getting started.) If you are using apache or some other webserver, there are also some pointers on that page to other pages to guide setting up your production webserver to serve your css files. Hope this helps, Karen rsie wrote: > I'm h

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

2008-10-21 Thread Karen Tracey
hanging/removing columns. The actual error you received (including traceback) would make it clear if this was the problem, since it would show if it was the database or Django code that objected to "updated" on the grounds it was "not defined". This cond

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

2008-10-21 Thread Karen Tracey
eneral model validation did not make it into 1.0, checking of unique and unique_together was added in changeset [8805]. It may not cover the inline/missing parent foreign key value case, though -- I haven't tried that. Karen --~--~-~--~~~---~--~~ You rece

Re: Setting up Django on CentOS5 with flup and fastcgi

2008-10-21 Thread Karen Tracey
e python 2.4 with django 1.0 stable. > I assume you have read this page: http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/ ? Specifics of the trouble you are running into would help people provide guidance, without specifics

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
the doc should mention this behavior. Karen > On 20 Okt., 22:05, Brot <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I am using the latest svn-revision 9236 and tried to use a callable in > > the upload_to parameter of the ImageField. > > > > The exp

Re: NoReverseMatch, again...

2008-10-22 Thread Karen Tracey
are there any differences in config between when you see this error and when you do not? For example, DEBUG setting, caching, etc.? Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: NoReverseMatch, again...

2008-10-22 Thread Karen Tracey
und like a good match to the erratic nature of this one) so it would be good to verify that whatever this is is not a problem that has already been fixed. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Apache Django 15 Second Refresh

2008-10-22 Thread Karen Tracey
you can force the reload yourself by doing the view wrapping with explicit reload as you have shown. But really, it's much easier to just use the development server. I don't really understand why you'd rather use this dedicated Apache that isn't real

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
ed ID overlaps an already-in-use one, using an ID so high that MySQL runs out of possible values, etc.). I think I'd rather know sooner rather than later that something screwy is going on with the auto-id fields, myself, and it sounds like PostgreSQL will likely report the problem sooner. K

Re: Following tutorial but can't get something

2008-10-22 Thread Karen Tracey
present generic "not found" or "error" pages. For debugging what's really going on you want to set DEBUG to True in your settings.py file. Then when you go to the page that is causing the error, you will get a traceback showing where the original error is occuring, which

Re: Dumpdata exception leaving me a bit puzzled.

2008-10-22 Thread Karen Tracey
nulls would cause this problem. But it does sound like you've got foreign key values in this table that don't actually have corresponding rows in the referenced tables. I'm assuming you've been using MyISAM on MySQL -- it does not enforce referential integrity, so you can g

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 fi

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
Category" and in the admin in the > list of categories instead of the category name, it has "Category > object"... same thing in the Product list... it has "Product object". > > What am I missing? I know it's

Re: Dumpdata exception leaving me a bit puzzled.

2008-10-22 Thread Karen Tracey
* error: can't allocate region > Python(327) malloc: *** set a breakpoint in szone_error to debug > Out of memory (Needed 8164 bytes) > Error: Unable to serialize database: (0, '') > """ > > Oh dear. Any idea how

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

2008-10-22 Thread Karen Tracey
re that out without > rehashing the entire codebase (it seems like such an innocuous > addition to the model at the time haha). > > Hopefully this will save someone some pain. :) > > It will crash when you do what? I don't see a crash, I just see models reverting to being report

Re: Admin & ForeignKey confusion

2008-10-22 Thread Karen Tracey
If not you need to describe better what you are looking for. (Where you might use inlines for the models you have is Projects inlined on the Medium admin page. So when you went to edit a Medium, you would have a list of all the Projects that use that Medium on the page, and you could add to

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
larger problem of admin not respecting form definitions for inline models still exists. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users

Re: Following tutorial but can't get something

2008-10-23 Thread Karen Tracey
hing screwy going on in your system. It is far more likely that there is some subtle difference between the name of the file you have on your system and the name you are using in your code. Karen --~--~-~--~~~---~--~~ You received this message because you are sub

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

2008-10-23 Thread Karen Tracey
date') >songs = models.ManyToManyField(Song) > >def __str__(self): >return self.name > > > This is my models (django 1.0) > If you are using Django 1.0, then your models need to have __unicode__ methods, not __str__ methods. Karen --~

Re: Confused by select_related()

2008-10-23 Thread Karen Tracey
ted to you -- "just gives an error" is about as useless a description of a problem as "doesn't work"), but if you can't manage that at least post the models you're actually working with. On dpaste.com, not inline in the post, if they are big/involved enough that

Re: model help.

2008-10-23 Thread Karen Tracey
a hurry, without giving your scenario a whole lot of thought, I'll recommend that you search the docs for "generic relations" and read up about them. Karen > On 23 Oct 2008, at 11:34, Niall Mccormack wrote: > > > > > Hi there, > > > > I'm learning

Re: Confused by select_related()

2008-10-23 Thread Karen Tracey
Which is why I asked for your model definitions. Without seeing your models I haven't the vaguest idea how what you are doing with your models is different from what I am doing. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to

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

2008-10-23 Thread Karen Tracey
u could probably either use the workaround mentioned there or try running with the little patch in the ticket and see if it fixes your case. Karen > > On Oct 23, 9:17 am, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > > I found this problem while trying out the

Re: ignore url

2008-10-24 Thread Karen Tracey
you are talking about the Djagno development server; there you can use the static server to serve these files. Search for "static files" in the docs for details on how to do that. Karen --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Problems with unicode characters in templates

2008-10-24 Thread Karen Tracey
is assumed by default, but if you want to use something else there's a setting: http://docs.djangoproject.com/en/dev/ref/settings/#file-charset Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: max_length for TextField is not respected

2008-10-24 Thread Karen Tracey
when texts > 300 > char are submitted. Same when submitting through admin. > > Is max_length not used for TextField? Is it something supported at db > level? > > I am using sqlite and django 1.0. > > max_length is not used for TextFields. Karen --~--~-~--~~-

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 po

Re: Apache2 + mod_python --> not working

2008-10-24 Thread Karen Tracey
t; >SetHandler python-program >PythonHandler django.core.handler.modpython This is wrong. It's supposed to be: PythonHandler django.core.handlers.modpython (You're missing the s in 'handlers'.) Karen --~--~-~--~~~---~--~~

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

2008-10-25 Thread Karen Tracey
not English user. Just > focus on the meanig of this message cause this might be not identical. You need to run manage.py syncdb after adding apps to your INSTALLED_APPS -- this is how the tables for those apps get created. It sounds like you did not run syncdb after adding the sessions app to

Re: Models not validating

2008-10-25 Thread Karen Tracey
e complicating this unnecessarily and using a lot of ManyToManys where you really should be using ForeignKeys -- you've got no ForeignKeys, and I find that odd. It's a very common sort of relationship and I'd think you'd have some. Karen --~--~-~--~~-

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread Karen Tracey
et the question go by. Which is to say I think you'll get better responses if you make it a little easier to answer the question by at least giving some idea of what Rails Rumble is. Karen --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: How can I make WS in Django

2008-10-27 Thread Karen Tracey
ses as creating a problem in providing meaningful answers)? Why do you think you will get better answers on a new thread on the topic? You won't. You might, however, get better answers if you spend a few more bytes on your actual question and a few fewer o

Re: Model that calls a function in another model

2008-10-27 Thread Karen Tracey
to be sure since you did not give specifics on your model, but assuming you have a model named Person and one named Skill, and Skill has a ForeignKey field to a Person, then the number of Skills for a Person instance p would be obtained by: p.skill_set.count() So, you don't come

Re: case insensitive search

2008-10-28 Thread Karen Tracey
KE 'A'*is TRUE but *'æ' LIKE 'Æ'* is FALSE.)." So it sounds like you will need to move to a different DB if you want case-insensitive searching to work for Cyrillic chars. Karen --~--~-~--~~~---~--~~ You received this message becau

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

2008-10-28 Thread Karen Tracey
"levity") someone else has reported the same thing. It sounds like there may be a problem in Django code here, but no one has yet investigated far enough to confirm that or suggest a fix. Karen --~--~-~--~~~---~--~~ You received this message because you are s

Re: 500 displayed instead of 404

2008-10-28 Thread Karen Tracey
ADMINS and EMAIL_HOST, etc. so that Django can successfully send email, then the traceback from the uncaught exception will be mailed to whatever email address you include in ADMINS. Much easier than guessing what might be happening. Karen --~--~-~--~~~---~--~

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'

Re: cannot import name call_command

2008-10-29 Thread Karen Tracey
specifics of what you are doing to generate this error it is a bit hard to say. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@

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

2008-10-29 Thread Karen Tracey
re doing, which makes it harder to answer. What is this django_example.example_app code you are running? Possibly you are running code written for an earlier release of Django on Django 1.0, or using a book that is similarly out of date. Forms used to have a clean_data attribute, now it is clean

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

2008-10-29 Thread Karen Tracey
e aware, as you follow along in the book, that if you run into things not working it's likely caused by backwards-incompatible changes made since the book was written. The backwards-incompatible page I pointed to earlier will be a good p

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

2008-10-30 Thread Karen Tracey
lays utf-8 are first: chcp 65001 in the command prompt to change the active code page to the one that works for utf-8 (65001 is apparently Windows' spelling of utf-8) and second change the font properties of the command prompt (left click upper lef

Re: Blank content from unit testing

2008-10-30 Thread Karen Tracey
ed. I am stumped on this. > > Well a 302 is a redirect, so it won't have content. response['Location'] will tell you where it is redirecting to, which might give you a hint. Karen --~--~-~--~~~---~--~~ You received this message because you ar

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

2008-10-30 Thread Karen Tracey
uploads some key file from their machine to the server. So for a File input the browser requires that the user actually go and select a file to upload. (I do not know if there are any tricks one can play to get around this, I've never looked for one.) Karen --~--~-~--~~-

Re: Blank content from unit testing

2008-10-30 Thread Karen Tracey
e in your view you are hitting. I gather from your last sentence you don't believe you can be hitting that line, but apparently you are. I couldn't get that far in reading the view code because it gets badly mangled in an email interface; dpaste.com would be a better place for putting code.

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

2008-10-30 Thread Karen Tracey
bit more complicated than for simple forms, and your template has to be a little more involved than {{ form.as_p }}, but it's probably more intuitive for users than a 2-step default submission process. Karen --~--~-~--~~~---~--~~ You received this message because you

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
.0 -- that is you removed any old level before installing 1.0? Are you trying the upload from a machine with a known good network connection to the server (or from the sever machine itself?). Do you see the same behavior if you run under the development server? Karen --~--~-~--~~

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
#x27;t know -- I've never cared about it enough to look into it, especially since css isn't my favorite thing to play with. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Custom change list and list_display

2008-10-31 Thread Karen Tracey
and then limit the result according to the page you are viewing. This would be prohibitively expensive for large tables. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

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

2008-10-31 Thread Karen Tracey
/code.djangoproject.com/browser/django/tags/releases/1.0/django/template/defaultfilters.py#L325 and the doc for Python's string replace method you can pretty easily write your own cut_first filter. Karen --~--~-~--~~~---~--~~ You received this message because yo

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 --~--~-~--~~-

Re: How to modify field error wording ?

2008-10-31 Thread Karen Tracey
ase help! > http://docs.djangoproject.com/en/dev/ref/forms/fields/#error-messages (A different page than the one you asked not to be sent to.) Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: alert table while updating model automatically

2008-10-31 Thread Karen Tracey
is kind of thing: http://code.google.com/p/django-evolution/ http://code.google.com/p/dmigrations/ http://south.aeracode.org/wiki You might want to check them out. Also if you search the list for terms like 'schema evolution' or 'schema migr

Re: Templaite:display li items alternatively using for

2008-11-01 Thread Karen Tracey
; > My question is how can i use the tags to implement this requirement? > > Any build-in tags for this? > Yes: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#cycle Karen --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Deploying multiple django applications in a single apache server

2008-11-01 Thread Karen Tracey
apache.org/docs/2.2/bind.html At the bottom of that page they point to the VirtualHost directive, which is the second thing you'll need to do. You need to enclose your existing directives for the app on port 80 in a VirtualHost block for port 80, and create a second VirtualHost with directives for

Re: Why is my string not auto escaped?

2008-11-01 Thread Karen Tracey
are calling built-in filters that rely on being told the current autoescape setting without passing along the current autoescape setting in effect. I think you want something more like: def filterxx(data, autoescape=None): return linebreaks(urlize(

Re: HttpRequest with chunked encoding is not buffered

2008-11-01 Thread Karen Tracey
#x27;s a workaround if you must used chunked requests with servers (apparently many) that don't support it: you can send a chunked request through Apache's mod_proxy and force it to unchunk and add a content-length. Described here: http://www.atnan.com/2008/8/8/transfer-encoding-chunke

Re: Overriding admin templates

2008-11-01 Thread Karen Tracey
del basis using a file: templates/admin///change_list.html Karen > /L > > > On Sat, Nov 1, 2008 at 6:20 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote: > >> Low Kian Seong wrote: > >>> You are supposed to put the admin template you want to override in > >&

Re: Strange admin validation behaviour.

2008-11-03 Thread Karen Tracey
n existing Poll (or even > just save a poll with which already has choices present) the error > occurs. > > If I remove the "inlines = [ChoiceInline]" line from my PollAdmin > class the problem seems to dissapear as well. > > I've added no code other than what's

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

2008-11-03 Thread Karen Tracey
xplain what is this and why it works? > > Looks like a bug. The '.items' part just shouldn't be there. As it is no matter whether there is a single or multiple errors the plural message is displayed. Removing the .items (errors is a list type, not a dictionary)

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

2008-11-04 Thread Karen Tracey
get a version of the code you are running that has been updated to work with Django 1.0, or you will need to migrate it yourself (in which case you may need to do more beyond adjusting to this change, see the porting guide and list of Backward Incopmatible changes pointed to above). Karen --~--~

Re: custom auth

2008-11-04 Thread Karen Tracey
omments it appears you did not have them there initially. Thus you may have created some number of Django user objects without having set the appropriate value in the associated custom user model. Adding those lines after-the-fact won't fix the existing custom User models that don't have t

Re: Newb testing question

2008-11-04 Thread Karen Tracey
m -- it is all-or-nothing. If you want to check for an error on a specific field, then check for the existence of that field's name in the errors dictionary after calling is_valid(). (You can also verify that you get the exact error message you are looking for, if you like.) Karen > >

Re: link to other record in admin change list

2008-11-04 Thread Karen Tracey
or the moment I am happy > that its working now. Thanks a lot for pointing it out! > allow_tags predates the general autoescaping support that added is_safe & friends, that is why its name is a bit inconsistent. Karen --~--~-~--~~~---~--~~ You received this

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

2008-11-04 Thread Karen Tracey
page. I've opened a ticket to get that (and anywhere else in the admin that this construct is used) fixed: http://code.djangoproject.com/ticket/9514 Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

Re: Newb testing question

2008-11-04 Thread Karen Tracey
lling the field's clean method directly is not the right approach -- this method is intended to be called by Django as part of the overall form cleaning. Therefore to ensure that the environment/args/etc is set up for it as it will be when your code actually runs in production, it is best

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

2008-11-04 Thread Karen Tracey
s not a valid command if settings have been specified, see: http://code.djangoproject.com/ticket/8639 which links to another ticket that asks for an improved error message in this case. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: cleaned_data of invalid forms

2008-11-05 Thread Karen Tracey
on. > > Do other people need this too? If yes, I could write a proposal with patch. > There is already a ticket for this: http://code.djangoproject.com/ticket/5524 Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Oracle Clob Field type

2008-11-05 Thread Karen Tracey
to be something somebody's come across before. > > I've no experience with Oracle but -- you run syncdb to create your tables. If you already have the table, why are you running syncdb? Karen --~--~-~--~~~---~--~~ You received this message because you

Re: date formats in settings.py

2008-11-06 Thread Karen Tracey
ust the way dates are displayed but it > doesn't seem so. > What is the purpose of these settings? > > Possibly they are being over-ridden by the translation you are using -- see: http://code.djangoproject.com/ticket/2203 Karen --~--~-~--~~~---~--~--

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

2008-11-07 Thread Karen Tracey
This is due to the interaction between the way in which Django attempts to resolve variables containing dots in templates (see http://docs.djangoproject.com/en/dev/topics/templates/#variables) and the fact that when you attempt to access a non-existent key in a defaultdict (that has a default_fac

Re: problem with inlineformset_factory

2008-11-07 Thread Karen Tracey
em in any detail, but the failure to allow multiple NULL values when unique=True is set for the field was a Django bug that has been fixed, see: http://code.djangoproject.com/ticket/9039 So, if this is the cause of the problem, using the 1.0.X branch or current trunk code instead of 1.0 should

Re: __import__(settings) failure

2008-11-07 Thread Karen Tracey
point it out > to me I'd be really grateful. > Does the user Apache is running as have read access to the directory with your code? > > I am using: > Debian Stable (Etch) > Python 2.4.4-2 > Django 0.95.1-1etch2 > Apache2 2.2.3-4+etch6 > mod_pytho

Re: select for update

2008-11-07 Thread Karen Tracey
ghts on how this could be implemented would be > appreciated. > There's a ticket for this, with a not-too-old patch: http://code.djangoproject.com/ticket/2705 Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: App initialized twice? plus, debugging tips.

2008-11-08 Thread Karen Tracey
eloader, though, so that code changes are automatically picked up by the running server (unless you are running under a debugger, where the reloading prevents breakpoints from working). Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: problem with inlineformset_factory

2008-11-08 Thread Karen Tracey
have not had time to look in detail at your particular models/forms/etc so I'm not completely sure that is what you are hitting, but it sounds likely based on Daniel Roseman's comments). You do not mention if you have tried your code on current SVN, not 1.0 Django? Karen > > On 7

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

2008-11-10 Thread Karen Tracey
something specific about your setup coming into play. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubsc

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

2008-11-10 Thread Karen Tracey
oint to that they tell you to install Django 0.96. So, if you are using 0.96 admin.autodiscover() won't help. It might not really help on 1.0 either since if the app was written for 0.96 it is unlikely to run unchanged on 1.0. Karen --~--~-~--~~~---~--~~ You rec

Re: has more than 1 ForeignKey to

2008-11-10 Thread Karen Tracey
nce that would give a clue what portion of the Djano code is objecting. As is I suspect you are doing something with inlines but haven't told the admin which ForeignKey to use, see: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#fk-name If that's not it please provide more specific

Re: Custom prepopulated SelectField's in DjangoAdmin

2008-11-10 Thread Karen Tracey
they have been neglected. If you have specific suggestions for improvement, please share them. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

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

2008-11-10 Thread Karen Tracey
already had CommonMiddleware specified) now I see my server return 304 for unchanged pages. Presumably you're using something to look at the headers in the requests/responses -- can you see the Etag in the responses? Is your client sending If-None-

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

2008-11-10 Thread Karen Tracey
#x27; will work. Or, use 'python manage.py shell', which assumes settings.py is in the current directory and sets the environment up for you. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Error in: python manage.py syncdb

2008-11-10 Thread Karen Tracey
nals.py. You might want to delete the whole c:\Python25\Lib\site-packages\django tree and re-install Django 1.0. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Setting Up Django on Vista and Creating a Database

2008-11-11 Thread Karen Tracey
on whatever' form of commands. In older versions of Windows you would do that by going to Start->Settings->Control Panel, choosing "System", selecting the "Advanced" tab, clicking on "Environment Variables", and finding/editing the one for PATH. I do not k

Re: don't escape html tags

2008-11-12 Thread Karen Tracey
text. > > Any help would be appreciated. > As mentioned earlier in the thread, you want to read what the docs have to say about autoescaping, e.g.: http://docs.djangoproject.com/en/dev/topics/templates/#id2 Karen --~--~-~--~~~---~--~~ You received this m

Re: TemplateDoesNotExist

2008-11-12 Thread Karen Tracey
d prompt and cat the contents of the file? Every time I have run into TemplateDoesNotExist I've been in error, not the template loader. Perhaps you put the files directly in '/django_project/django_templates' instead of in a polls subdirectory there? Or left the l off of html? K

Re: Problem with named URL and parameters

2008-11-12 Thread Karen Tracey
: > Reverse for 'my_site.conversions' with arguments '(u'steel-plate- > weight',)' and keyword arguments '{}' not found. > > What am I doing wrong? > > The \w in your specifier for conversion_template matches [a-zA-Z0-9_] but you are trying to matc

Re: Problem with named URL and parameters

2008-11-12 Thread Karen Tracey
, which will also match > dashes. I'm not sure what is going wrong yet, though, since it looks > like it should be working. > Oh, right. Time to get some glasses, apparently. Karen --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Basic concept for templatetag using node and parser

2008-11-13 Thread Karen Tracey
mple? Or what it is you would like to do with a custom tag that isn't covered by that example? Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

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

2008-11-13 Thread Karen Tracey
many reasons, and would like the database to do as much > work as possible. Web research has shown some potential in the 'extra' > QuerySet qualifier, but my noobness has defeated me. Grateful for any > pointers. > > Try: jobs.objects.filter(viewed_jobs__isnull=True) Karen

Re: TabularInline across apps causing unknown error in admin.

2008-11-14 Thread Karen Tracey
fixed by the fix for #9076, which went in earlier this morning. Could you try with a current checkout of either the 1.0.X branch or trunk? Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: Serialization of custom model fields

2008-11-15 Thread Karen Tracey
;patch needs improvement" and "needs tests" it's best to reset the flags when you attach it, otherwise the ticket continues to look like it's not a candidate for an easily-evaluated-and-committed fix. Karen > > On Nov 15, 1:40 pm, "Alex Koshelev" <[EMA

  1   2   3   4   5   6   7   8   9   10   >