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
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
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
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
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
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
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
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
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
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
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
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
"
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
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,
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
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
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
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
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
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
* 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 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
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
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
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
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
--~
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
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
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
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
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
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
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
--~--~-~--~~-
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
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
--~--~-~--~~~---~--~~
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
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
--~--~-~--~~-
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
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
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
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
"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
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
--~--~-~--~~~---~--~
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'
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 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
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
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
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
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
--~--~-~--~~-
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.
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
.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]>
&
.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
--~--~-~--~~
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
#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
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
/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
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
--~--~-~--~~-
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
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
;
> 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
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
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(
#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
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
> >&
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
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)
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
--~--~
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
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
>
>
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
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
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
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
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
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
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
--~--~-~--~~~---~--~--
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
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
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
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
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
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
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
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
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
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
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-
#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
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
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
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
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
:
> 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
, 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
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
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
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
;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 - 100 of 2608 matches
Mail list logo