No It give me error
Exception Type: FieldError
Exception Value:Cannot resolve keyword 'callreports_meetingdate'
into field.
Thanks.
On Nov 25, 12:21 pm, Donn <[EMAIL PROTECTED]> wrote:
> On Tuesday, 25 November 2008 09:11:36 laspal wrote:
>
> > sortby = callreports.meetingdate
>
Thank you for replies, Malcolm!
Since the beginning, every .py in my project starts with
# -*- utf-8 -*- . Also, I tried to putting < u > in front of
strings,
but it didn't help.
Anywhere, I will review all my code, according to your advices.
I am agree with you, the cause of problem is not in D
On Tuesday, 25 November 2008 09:11:36 laspal wrote:
> sortby = callreports.meetingdate
> company_list = Company.objects.order_by(sortby)
Try:
sortby = callreports__meetingdate
\d
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Thank you for replies, Malcolm!
Since the beginning every .py in my project begins with
# -*- utf-8 -*- . Also, I tried to putting < u > in front of
strings,
but it didn't help.
Anywhere, I will review all my code, according to your advices.
I am agree with you, the cause of problem is not in Dj
Thak you for replies, Malcolm!
Now every .py in my project begins with
# -*- utf-8 -*- . Also, I tried to putting < u > in front of strings,
but it didn't help.
Anywhere, I will review all my code, according to your advices.
I am agree with you, the cause of problem is not in Django. Django
rule
Hi,
Code :
***Model**
class Company(models.Model):
name = models.CharField( max_length=100)
created_on = models.DateTimeField(auto_now_add=True)
updated_on = models.DateTimeField( auto_now = True)
class CallReport(models.Model):
company = models.Fore
> > and i want show something like this in my form:
> >
> >
> >
>
Thanks for Your reply.
Now I understand correctly what my problem was.But I can not find the
solution yet.
Actually I meant to join two tables in order to have a queryset, which
contains both candidate fields and user_nam
On Mon, 2008-11-24 at 21:47 -0800, limas wrote:
> hai all,
>
> i have say two tables:
> class Candidate(models.Model):
>
> first_name=models.CharField('First Name',max_length=30)
> last_name=models.CharField('Last Name',max_length=30)
> ..
> owner=models.Fore
hai all,
i have say two tables:
class Candidate(models.Model):
first_name=models.CharField('First Name',max_length=30)
last_name=models.CharField('Last Name',max_length=30)
..
owner=models.Foreign_key(User)
enter_by=models.ForeignKey(User,related_name=
On Tue, 2008-11-25 at 13:39 +0900, Stephen Moore wrote:
> Hello,
>
> I'm trying to create a model here for essentially recording the
> positions held by members in the committee of a university club I'm
> creating a website for.
>
> However, I'm new to django and am having some issues.
>
> So
Hello,
I'm trying to create a model here for essentially recording the
positions held by members in the committee of a university club I'm
creating a website for.
However, I'm new to django and am having some issues.
So far, I have :
A Committee model containing a year and a set of members (co
modify ur url as
(r'^hello/(?P[^/]+\w*)/?', 'swamiji.poll.views.hello')
http://localhost:8000/hello/TEST
then "print who" in ur view file.
Lemme know, if it fails to work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
i have tried with Django decorators never_cache and cache_control, but
still facing same issue. its purely based on browser cache.
never_cache decorators say that browser wont get cache, but its
Firefox by default cached all time. Then i googled out to find a
solution to clear cache using javascri
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
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
>>> django-admin.py startproject prj1
SyntaxError: invalid syntax
Seem like this might be a P
I too was in your position. I am fairly new to Django and was getting
very frustrated with the docs. They tell me to just do something and
left it at that. I then went to the django docs on the djangoproject
website and discovered that everything I needed was there. I was just
searching the wrong
Hello,
I have written a couple of mini applications that used Tkinter (simple
toolkit for building Python GUI apps) and utilized the Django ORM with
PostGreSQL. I imported Django using code like:
PathDjangoRoot="/var/djangoroot/"
if(not PathDjangoRoot in sys.path):
sys.path.append(PathDjang
Hi group:
I hope that you good people here could help me with a decision I am finding
hard to make.
I am about to develop a MIS type application for a Non for profit
organization teaching young children in India.
I am trying to use this opportunity to make myself learn python, and if
required th
As noted in a duplicate post over on django-devs this problem is not
evident when using the sqlite backend. The problem seems to be
limited to the postgres backend and is cuurently still failing for me
on trunk at revision 9526.
Roger.
On Nov 8, 3:51 pm, Petry <[EMAIL PROTECTED]> wrote:
> Hi K
Hey guys,
I have some problems with the translations of my website. Locally, it
works flawlessly. But as soon as I run the project on my server, it
won't translate. I've translated the project per app, and I'm
wondering if it could have something to do with my PYTHONPATH? As of
now, my .htaccess
On Nov 24, 5:18 pm, ReneMarxis <[EMAIL PROTECTED]> wrote:
> hi
>
> as mentioned earlyer today i am very new to django and againe have
> some question, this time reguarding the documentation.
>
> I started django by duing the tutorial, and now i started building my
> own little project from ground
On Nov 24, 7:20 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-11-24 at 15:27 -0800, waltbrad wrote:
>
>
> James' book was written for Django 0.96. There were changes between 0.96
> and 1.0. In particular, the admin structure was improved and changed in
> backwards-incompatible
On Mon, 2008-11-24 at 15:27 -0800, waltbrad wrote:
[...]
> When I try to run the server I get this error:
>
> File "C:\cms\..\cms\search\models.py", line 7, in SearchKeyword
> page = models.ForeignKey(FlatPage, edit_inline=models.STACKED,
> AttributeError: 'module' object has no attribute
On Mon, 2008-11-24 at 12:19 -0800, oleg wrote:
> Thank you, Malcolm!
> Really, I'm using GAE, but it is patched to django 1.0.2. So, the
> truth is outhere ^_^
No, the problem could still very well be with App Engine. A lot of the
support required to handle Unicode transparently is part of the b
On Mon, 2008-11-24 at 11:06 -0800, Ulf Kronman 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 literal for int()
Hello again. I'm working my way through James Bennet's book. He is
implementing the use of a search function in the admin page.
The models.py for the project is supposed to read thus:
from django.db import models
from django.contrib.flatpages.models import FlatPage
# Create your models here.
c
hi
as mentioned earlyer today i am very new to django and againe have
some question, this time reguarding the documentation.
I started django by duing the tutorial, and now i started building my
own little project from ground up :) but i am lacking of information.
I am missing some documentation
Yes, I think we should isolate the condition to he interested field
without touching every other.
So could it be
if db_field == cuit
??
thanks ramiro ;)
On 20 Nov, 00:01, "Ramiro Morales" <[EMAIL PROTECTED]> wrote:
> The condition in line 16 can (and in fact should) be made more
> specific to
I reported a similar problem in October. Since then, I have tested on a
new server and am experiencing the same problem. This one is on an
CentOS 5.2 EC2 machine configured as below... I wonder if noting the
workaround discovered by GRoby will give the developers any clues as to
what is going on.
From your apache config:
> PythonPath "['/var/www/webapps/django_project','/var/www/lib/
> python2.5'] + sys.path"
This says that python should look in these directories for modules.
> from django_project.apps.myapp.models import ModelOne,
> ModelTwo, ModelThree
This tries to import a module
Hey -
I'm coming from a c background into this - more or less a newbie to
the python/django environment.
That said - I have an issue with paths and mod_python that I can't
seem to resolve.
I have the following directory structure
django_project/
__init.py__
manage.py , etc
source http://dpaste.com/93441/
result http://dpaste.com/93449/
On Nov 25, 1:25 am, oleg <[EMAIL PROTECTED]> wrote:
> Also, please, anybody explain me - how to get
> from _CHOISES =set ([
> (_id_1_, _value_1_),
> (_id_2_, _v
Also, please, anybody explain me - how to get
from _CHOISES =set ([
(_id_1_, _value_1_),
(_id_2_, _value_2_)
])
at model,
pretty
_value_1_
_value_2_
On 22 nov, 02:38, Chris <[EMAIL PROTECTED]> wrote:
> Hello everyone,
> I have a quick python question. Is they a better way of calling a
> method dynamically then what I have below? Is there a more elegant
> approach? Thanks in advance.
> try:
> push = getattr(self, 'get_%s_content' % self.n
I reposted the code to http://dpaste.com/93441/
On Nov 25, 12:19 am, oleg <[EMAIL PROTECTED]> wrote:
> Thank you, Malcolm!
> Really, I'm using GAE, but it is patched to django 1.0.2. So, the
> truth is outhere ^_^
>
> On Nov 24, 5:11 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
>
> > On Su
On 22 nov, 13:07, "Steve McConville" <[EMAIL PROTECTED]>
wrote:
> > On Sat, Nov 22, 2008 at 2:38 AM, Chris <[EMAIL PROTECTED]> wrote:
> >> Hello everyone,
> >> I have a quick python question. Is they a better way of calling a
> >> method dynamically then what I have below? Is there a more elegant
On 22 nov, 14:05, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > try:
> > push = getattr(self, 'get_%s_content' % self.name)
> > except AttributeError:
> > raise "Method does not exist"
> > if callable(push):
> > push(**argv)
>
> There are a couple of problems with this co
Thank you, Malcolm!
Really, I'm using GAE, but it is patched to django 1.0.2. So, the
truth is outhere ^_^
On Nov 24, 5:11 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2008-11-23 at 07:56 -0800, oleg wrote:
> > Sorry, I forgot to put it :)
>
> > view.py:
> > def add(request):
> >
What I have now is a data processing Python script, which runs 2 to 3
minutes. What I need now is to have a script to fire off the
execution of the script, monitor its progress and return an innerHTML
when it finished its work.
I tried to use feedback.py to call it as a subprocess. However, it
Seth,
The reason that you don't see the values in u3 change when you change the
database is that the models don't read from the database every time you want
to get a value - that would be silly and would cause Django to be among the
worst-performing frameworks in existence. Database reads take time
To the more general question of running python like that, just import
the update_s3 method and run it normally.
On Mon, Nov 24, 2008 at 2:46 PM, Adi Jörg Sieker <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> if you are using 1.0 or newer, than you can use a file backend to
> directly on S3.
>
> Have a lo
Hi,
if you are using 1.0 or newer, than you can use a file backend to
directly on S3.
Have a look if http://code.google.com/p/boto/ or
http://github.com/paltman/django-aws/tree/master
help you along.
adi
On 24.11.2008 18:35 Uhr, Alex Jonsson wrote:
> Hey everyone,
>
> I use Django together
Starting from the tutorial, I figured a good first exercise would be
to create a front-facing form for creating a poll question and
choices. I've successfully done it, but I'd like the implementation of
it to be closer to the functionality of the admin interface for adding
and removing choices.
I
mahesh_aka_amol wrote:
> Parameter not getting passed to view function
>
> upon accessing http://localhost:8000/hello/TEST it merely prints
> "hello there" instead of "hello there TEST"
>
> urls.py
> (r'^hello/(?P)\S+/$', 'swamiji.poll.views.hello')
>
>
> Views.py
>
> def hello(request, who):
Your URL regex is wrong, it should be:
(r'^hello/(?P\S+)/$', 'swamiji.poll.views.hello')
--Ned.
http://nedbatchelder.com
mahesh_aka_amol wrote:
> Parameter not getting passed to view function
>
> upon accessing http://localhost:8000/hello/TEST it merely prints
> "hello there" instead of
On Mon, Nov 24, 2008 at 2:14 PM, mahesh_aka_amol <[EMAIL PROTECTED]> wrote:
>
> Parameter not getting passed to view function
>
> upon accessing http://localhost:8000/hello/TEST it merely prints
> "hello there" instead of "hello there TEST"
>
> urls.py
>(r'^hello/(?P)\S+/$', 'swamiji.poll.view
Parameter not getting passed to view function
upon accessing http://localhost:8000/hello/TEST it merely prints
"hello there" instead of "hello there TEST"
urls.py
(r'^hello/(?P)\S+/$', 'swamiji.poll.views.hello')
Views.py
def hello(request, who):
return HttpResponse("hello there %
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 literal for int() with
base 10: ''
The template line causing the problem is:
{{ flt_c
Malcolm:
What you have described is accurate - my application did indeed just
pick one, selecting the first (empty) regex, and routing me back to
the page I was already on (in one particular case). No error was
thrown - the behavior was just not as I expected. It was only during
my attempts to us
Sorry, my english didn't help me in explaining myself!
I have just one site with 2 applications
App A is something like "1st floor office documents"
App B is something like "2nd floor office documents"
This two applications are very different one from the other and are
reached with 2 different u
Haku wrote:
> Sorry, my english didn't help me in explaining myself!
>
> I have just one site with 2 applications
> App A is something like "1st floor office documents"
> App B is something like "2nd floor office documents"
>
It sounds like you want one application, and two groups with independe
Hi all, and please excuse me if i ask something obvious for you. I
can't get out of this problem!
I've got a site with 2 separate applications (call it A & B). Each one
has it's own administrators and there must be absolutely no
information passed from application A to application B and vice-vers
Haku wrote:
> Hi all, and please excuse me if i ask something obvious for you. I
> can't get out of this problem!
>
> I've got a site with 2 separate applications (call it A & B). Each one
> has it's own administrators and there must be absolutely no
> information passed from application A to appli
Sorry for being dense, but I don't really follow what you need. Look in the
docs for backward relationships between foreign keys. That may help you.
Something like:
group = Animal.objects.get(animal_group__id=XX)
But I don't know where you decide what XX is.
\d
--~--~-~--~~---
Hey everyone,
I use Django together with Photologue and would like to be able to
store the images on my Amazon S3 account.
I've been doing a lot of thinking about how the easiest way to do this
would be, and have come to the conclusion that the easiest way
probably would be to upload the image f
On Nov 23, 5:26 pm, Nick <[EMAIL PROTECTED]> wrote:
> I'm exploring whether or not to use Django for redesigned website and
> the only thing I haven't really been able to find out is whether there
> is an existing, portable, robust solution for advertising management
> on the site. This would ne
Hello
i am having some "problems" and question with pydev (+extentions) and
django.
Since some hours (hmmm) eclipse points out an error, saying
User.DoesNotExist is not defined, although i have included
django.contrib.auth.modes.User
I can run the code (in debugger) and django does not throw a
I've got a form that is kind of working. It's very strange because
only choice fields are being pushed to the form and the textfields are
not visible. Has anyone ever run across this before?
--~--~-~--~~~---~--~~
You received this message because you are subscr
Hi,
Does anyone know of an easy way to disable the admin areas validation
of my model admin classes without setting DEBUG to False which does
it, but is not much use in development.
Thanks,
David
--
David Reynolds
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
Y
Hi all,
apologies for the newbie question, but...
does anyone now if there's any progress bar widget available
for a model to be displayed in the admin change list?
I'm looking for something that can display for example a
PositiveSmallIntegerField (0-100) as a progress bar (or
something visuall
Seth Kaïne wrote:
> I want to have some more, please.
> When I do that:
>
>
python manage.py shell
>
>
from httpbackend.models import Unit
Unit.objects.all()
> [, , ,
> ]
>
u3 = Unit.objects.filter(id=3)[0]
u3.status
>
>
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,
> I'm trying to make use inlineformset_factory to add several data on an
> object at the sime time. I want to show 5 extra forms but when I view
> it in browser it only shows 1formsets instead of 5.
>
> Here's my view code:
> formset = inlineformset_factory(PackagingReport, PeopleProblem,
The request data is available in your views as a dictionary. For
example:
def memberView(request):
if request.method == 'POST':
request.POST['foo']
...
R.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
> I am new to Django so please excuse if this has been asked before - I
> could not find anything in my list searches.
>
> I am using the standard admin for a model called Member. I can
> override the save method to perform a small database tweak when a
> member is saved. This will involve access
I want to have some more, please.
When I do that:
>>> python manage.py shell
>>> from httpbackend.models import Unit
>>> Unit.objects.all()
[, , ,
]
>>> u3 = Unit.objects.filter(id=3)[0]
>>> u3.status
--- I change the status for an ONLINE statement with phpmyadmin in
my Table Unit to test i
The request object is accessed in your view.
def memberView(request):
--~--~-~--~~~---~--~~
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 unsub
thanks for the replies donn and malcolm, here in more detail what I
want to archive
perhaps I'm on the totally wrong track...
How do I pass the PASSANYTHINGHERE=whatever parameters to the widget
(see sample code)?
(the super part is clear, thanks)
How to pass the "value" id on ModelForm level to t
I've seen several references to this error:
AttributeError: 'str' object has no attribute '_meta'
It seems this all has to do with forward model referencing of one kind
or another. In other words, you are referencing a model that
references another model to be named later (probably one that
Hi,
I am new to Django so please excuse if this has been asked before - I
could not find anything in my list searches.
I am using the standard admin for a model called Member. I can
override the save method to perform a small database tweak when a
member is saved. This will involve accessing the
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, how can I change the default error_message if I'm using
ModelForms?
> Why are doi
On Nov 24, 11:59 am, dash86no <[EMAIL PROTECTED]> wrote:
> I've implemented a search function which brings up a list of database
> items on a page. My template looks like this:
>
> {% extends "base.html" %}
>
> {% block content %}
>
> {% if results %}
>
> {% for quote in results %
Hi Robin,
On Mon, 2008-11-24 at 12:45 +, Robin Becker wrote:
> We have some legacy code that wants to display a partially filled form. One
> of
> the fields is required to be non-empty (it's a captcha) so when re-issuing
> the
> form partially filled I've been doing this
>
> class EmailF
We have some legacy code that wants to display a partially filled form. One of
the fields is required to be non-empty (it's a captcha) so when re-issuing the
form partially filled I've been doing this
class EmailForm(forms.Form):
.
vericode = forms.CharField(max_length=5, required=True
Hello, there.
I am very much interested in this middleware stuff.
I have now a Python data processing script, which normally runs 2 to 3
minutes. I was trying to use feedback.py to call this external script
as a subprocess, firing it off to run, monitoring its progress, and
return an innerHTML
My guess is something like:
{{ quote|escape }}
And then have a line in ulrsconf to catch that link and send it to a view
which pulls and makes the form.
\d
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
I've implemented a search function which brings up a list of database
items on a page. My template looks like this:
{% extends "base.html" %}
{% block content %}
{% if results %}
{% for quote in results %}
{{ quote|escape }}
{% endfor %}
{% else %}
On Mon, 2008-11-24 at 13:07 +0200, Donn wrote:
> Further info,
> Looks like from within a widget there's no easy way to find the Form. I'd a
> thunk there'd be a Parent attribute, but there ain't.
The way Django does this is fairly normal design practice. Normal OO
implementation practice is th
Andy,
That is an awesome tip, already my site is looking 100x better.
Many thanks,
On Nov 24, 8:00 pm, AndyB <[EMAIL PROTECTED]> wrote:
> The amount of customization that is now possible with the Admin app
> really blurs the boundry between tweaking the admin itself and
> replacing it entirely.
Further info,
Looks like from within a widget there's no easy way to find the Form. I'd a
thunk there'd be a Parent attribute, but there ain't.
So:
If you are doing something like this:
class SomeWidget( forms.TextInput ):
def __init__(self,attrs=None, PASSANYTHINGHERE=whatever ):
The amount of customization that is now possible with the Admin app
really blurs the boundry between tweaking the admin itself and
replacing it entirely. There is an entire spectrum between those two
extremes and I've been surprised how far it's possible to take the
customization while still falli
On Monday, 24 November 2008 12:21:55 yves_s wrote:
> does anybody have some hints?
IIRC - You can do:
form.instance (inside your widget, I think...)
This assumes you made a form with something like:
f = MyForm(instance = someInstance)
On the command-line, try using:
python manage.py shell
Then i
Values gets onli fields names [1]. Try this:
results = Article.objects.filter(qset).values('published_at')
[1]:
http://docs.djangoproject.com/en/dev/ref/models/querysets/#values-fields
On Mon, Nov 24, 2008 at 13:16, kele <[EMAIL PROTECTED]> wrote:
>
> hi all,
>
> i have some codes like these:
2008/5/1 [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Thanks Felix. I did use the Form.clean() for my validation accross
> multiple fields. There is an open ticket for the non_field_errors()
> not being called withing the change_form.html template.
> http://code.djangoproject.com/ticket/6809
I need
does anybody have some hints?
On 21 Nov., 00:24, yves_s <[EMAIL PROTECTED]> wrote:
> hi everybody
> I'm making a custom form widget in the newforms admin and I want to
> have access to the id of the current model instance (for already
> existing data).
> Can I get the id from the request object?
hi all,
i have some codes like these:
qset = Q(published_at__year = int(year),
published_at__month = int(month),
published_at__day= int(day))
# results = Article.objects.filter(qset)
results = Article.objects.values(q
86 matches
Mail list logo