For anyone who might come across this old problem, this stack overflow
question solves it:
http://stackoverflow.com/questions/7877340/typeerror-doesnotexist-object-is-not-callable
On Wednesday, December 31, 2008 at 8:58:41 PM UTC-8, gkelly wrote:
>
> I am having the following error sent
I found the following and am now working on porting it to django
middleware:
http://www.vineetmanohar.com/2009/03/23/using-google-analytics-event-api-to-track-your-website-performance/
On Feb 2, 2:45 am, Tomasz Zieliński
wrote:
> On 2 Lut, 00:22, gkelly wrote:
>
> > Hello,
>
&g
Hello,
I'm wondering if anyone knows of an existing middleware that does the
following:
- collects usage and performance statistics (i.e. logs each request to
a URL and its response time)
- performs some simple summaries of logged data
Or, if anyone knows how to do this with Google Analytics, pl
I am having the following error sent to my email from a live site. I
haven't been able to reproduce the error myself, but was hoping
someone could point me in the right direction as to how to solve this.
First of all, is it something in my code, or in Django? The last line
of the traceback says D
Is there a better way to do this? In a model, perhaps with some new
magic from qs-rf?
http://www.djangosnippets.org/snippets/902/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Hi,
I'm getting the following Traceback sporadically (using Django 0.96
and mod_python on linux).
I can hit refresh and the page comes up fine, but sometimes this error
will happen again (as if some httpd children pass and some fail).
FYI:
def user_sites(self):
return ",".join([s.siteID
oject_display_bit = True)
>
> > It's returning the clients data - just not the data for the
> > project_portfolio (it's not joining)?
>
> > On Jul 19, 2:08 pm, gkelly <[EMAIL PROTECTED]> wrote:
>
> > > I believe in your template you should be able to
I believe in your template you should be able to do something like:
{% for p in project_portfolio_list %}
{{ p.project_name_char }} {{ p.project_client.client_name_char }}
{% endfor %}
If you had a view with:
context['project_portfolio_list'] = project_portfolio.objects.all()
You'll also wa
This error comes up sometimes at random when running on mod_python
(dev server works fine).
Note that I am NOT using django's site app.
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/django/core/handlers/
base.py" in get_response
77. response = callback(request,
time(value, format)
[3:6])
188 except ValueError:
189 continue
190 raise ValidationError(gettext(u'Enter a valid time.'))
On Mar 30, 12:52 pm, "gkelly" <[EMAIL PROTECTED]> wrote:
> This could be a configuration error on my end, but i
This could be a configuration error on my end, but it seems to me to
be a bug (or feature request).
using newforms:
class MyForm(forms.Form):
time = forms.TimeField(input_formats=('%H:%M',))
I want just an hour:minute field. The input works fine, but the output
always outputs %H:%M:%S because
Trying printing out self.clean_data when using the built-in django
server and you'll see what it looks like. Your fields might be empty
strings instead of None, so you should say:
if self.clean_data.get("city")
instead of making comparisons to None (which is discouraged in Python,
you should use
I can't use {{ form.field_name }} because the field_name is the dynamic
part. The form is generated by a database configuration and I won't
know ahead of time which fields will need to be in the form. I imagine
django would make it easy to do something like this, since the admin
interface also req
Please have a look at the code at:
http://dpaste.com/4503/
I am having a problem with a widget's render method not being called
from a template. I'm not sure if this is the intended way to render a
widget when manually placing them in a template, rather than using
something like {{ form.as_p }
Check out these built-in filters for templates:
http://www.djangoproject.com/documentation/templates/#linebreaks
If you're writing templates, that whole page is a very valuable
resource.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
http://en.wikipedia.org/wiki/List_of_NP-complete_problems
--~--~-~--~~~---~--~~
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 unsubscribe fro
I have been struggling with timezones in my application as well. I've
looked into using the PyTZ module from http://pytz.sourceforge.net/
PyTZ is basically an implementation for the tzinfo parameter of the
datetime module.
It can do some pretty neat things, such as taking a naive datetime (a
datet
I am getting the following error when trying to call model.save() from
a custom Manipulator
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/django/core/servers/basehttp.py",
line 272, in run
self.result = application(self.environ, self.start_response)
Fil
It's funny. Everyone I ask about this problem says to use the other
type of Field (either OneToOne or ForeignKey). I have tried both. See
this thread for my problems with OneToOne:
http://groups.google.com/group/django-users/browse_thread/thread/9789d5e4bf24a4c3/
I just recently upgraded from 0.9
Can a ForeignKey be a primary key? I'm getting the following error.
Here is the relevant part of the model:
class UserProfile(models.Model):
user = models.ForeignKey(User, primary_key=True,
edit_inline=models.STACKED, num_in_admin=1,min_num_in_admin=1,
max_num_in_admin=1,num_extra_on_change=
Thanks for looking into this more. What you said makes sense, and I was
almost on my way to that conclusion. Specifying primary_key=True is
probably what I need. I'll give it a try.
Thanks,
Grant
--~--~-~--~~~---~--~~
You received this message because you are sub
Alan,
I've tried using ForeignKey also. It gives me different problems. See
http://groups.google.com/group/django-users/browse_thread/thread/ad493aadb30b3cde/
I'd love to get some more input.
Thanks,
Grant
--~--~-~--~~~---~--~~
You received this message because
bump. please help. this is driving me nuts.
--~--~-~--~~~---~--~~
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 unsubscribe from this group, se
> The easiest fix I can think of would be to put a hidden field in your
> form that holds the id of the current user. This will put a 'user'
> entry into your form data, which will allow the create/update generic
> views to submit without error.
I definitely do not want to do this for security re
I have the following model and view:
http://pastebin.ca/182428
If I manually edit
/usr/local/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/contrib/auth/models.py
and change User.__str__(self) to return a string like
'TEST'+self.username, then 'testuser' above will become 'TESTtestuser
I think this may be a bug (or feature request).
If I define a ForeignKey field 'my_field' in a class and set
Meta.list_display = ('my_field','other_field') and Meta.verbose_name =
'My Verbose Field'
then in the Admin site, the heading for 'my_field' doesn't use the
verbose_name, but rather the p
My apologies if this is in the documentation somewhere, I have not been
able to find it.
Is there a django HTML class that I can import in my views? Basically,
I have a database table with columns for describing an HTML form
element. So an entry might look like:
label=Name, type=text, maxlength=6
27 matches
Mail list logo