e. You might
find inspiration in its approach, even if you can't use it directly.
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
k trace for each, indicating
what caused the query to happen. You will also be able to see the effect of any
select_related() calls you make.
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because you are subscribed to the Google Groups
&q
>
> the, in views.py:
> form = PersonForm(request.POST)
> form.save() # how to return person's id here?
instance = form.save()
print instance.id
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because you are subscribed to
ich wasn't defined. Check through your code in views.py for any reference to
'form'. You'll also need to check any code you've written that's imported by
your views.py for references to a 'form' that hasn't been defined - that will
also cause views.py t
u got this error even though you're fetching /admin/ as Django needs to load
and resolve all the urls and views that they refer to.
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because you are subscribed to the Google Groups
&q
iew you've got there, but as your views grow, this will become a problem.
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
ngs are not 'slow' or 'fast' in isolation. They are either 'too slow', or
'fast enough'. Try it, it may be fast enough for you. If it's not, you'll need
to find a faster solution. In particular, if the resultant filtered set is
re
side, and taking a wild stab at what your problem is without any actual
code, I'd say the underlying JOIN is producing multiple rows, and you probably
need a distinct() call somewhere on your queryset.
Then again, that might not be the problem at all, because you haven
Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/
turn up debug logging on nginx? As Tom said, you might get more
pointers (even if it does turn out to be Django which - to be honest - seems
unlikely at this point) from the nginx list.
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because
7;/media/fonts/LeagueGothic/League_Gothic-webfont.woff') format('woff'),
Now - I know precisely nothing about font embedding and all that malarky, but
what are those 'funny' characters doing there - are they intentional? Could
they be confusing the browser, and preven
rward to connect Zope to a relational database -
either with the built-in ZSQLMethods, or with SQLAlchemy.
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
gmail) will only allow the From: header to
be set to the owner of the account (myem...@gmail.com) as a spam prevention
measure. I don't think this is a Django issue per se.
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because you are
?
For very simple data browsing:
http://docs.djangoproject.com/en/dev/ref/contrib/databrowse/
It won't cover everything you want above, though - you're probably better off
writing your own view and template. If it's something you're going to reuse
often, consider writi
You'll need to post a longer stack trace, just a fragment isn't much use.
Switch to the copy-and-paste view so you can copy-and-paste it :)
Cheers,
Dan
--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com
--
You received this message because you are subscribed to the Google
Hi,
I'm trying to limit choices in an admin inline foreign key dropdown. I
have a models.py and admin.py roughly as follows:
# models.py
class Trip(object):
title = models.CharField(max_length=50)
class Departure(object):
trip = models.ForeignKey('Trip')
price_window = models.Foreig
nMiddleware?
Cheers,
Dan
--
Dan Fairs | http://www.fezconsulting.com/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send e
Hi David,
> models.signals.post_save.connect(flaggedentry_post_save,
> sender=FlaggedEntry, dispatch_uid='mofin.store.models')
Top tip - this worked perfectly. I see this is documented only on the
wiki, I couldn't find it in the official docs.
> I've found a useful place to put signal registrati
Hi,
>
> > can't i put "from models import *" in the test code? what should i do?
>
> This happens if you import the same file using two different names. Eg, here
> you are importing it as 'from models import *'. In some other part of your
> code, you probably have 'from foo.models import *'. Pytho
alid). This
should invoke your clean_ method.
Cheers,
Dan
--
Dan Fairs <[EMAIL PROTECTED]> | http://www.fezconsulting.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
> I haven't used any of them with Django, but for managing Zope, Plone
> and Grok based web apps, zc.buildout is the current preferred tool.
I use zc.buildout to manage my Django builds. Blog post coming soon
(when the project's finished!)
Cheers,
Dan
--
Dan Fairs <[EMAIL
template tags.
http://www.djangoproject.com/documentation/templates/
Cheers,
Dan
--
Dan Fairs <[EMAIL PROTECTED]> | http://www.stereoplex.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
you'll need some
locking around final_graph access to prevent race conditions. You
might want to consider using a thread-local storage. You'll also need
to unset this module-level variable (again with locking) if your
underlying graph data changes.
Cheers,
Dan
--
Dan Fairs <
he profiles section, near the bottom.
Cheers,
Dan
--
Dan Fairs <[EMAIL PROTECTED]>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
>
> Should I use trunk for development? Or is there any branch better for
> development? (with regard to the introduction of newforms)
I've had considerable success with trunk. YMMV :)
Cheers,
Dan
--
Dan Fairs <[EMAIL PROTECTED]>
--~--~-~--~~~
te(value='Noticias')
> [0]
> 39. tag.news_set.add(new)
> 40. import pdb
> 41. pdb.set_trace()
> 42. tag.save()
>
Looks like your manipulators.py has a pdb.set_trace() in. That's
causing
26 matches
Mail list logo