On 30-Dec-06, at 11:32 PM, Ramdas S wrote:
If I create a class called bill_no and with an autofield and a
date. How can I link the bill_no class to the bills so that I am
able to generate unique bill numbers for each table.
foreign key
--
regards
kg
http://lawgon.livejournal.com
http://
On 12/28/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> If you're wanting an "official" way of learning thenewformslibrary,
> I'm afraid you'll have to wait until the APIs have solidified and the
> documentation is done. This should be happening sooner rather than
> later.No, I'm not necess
Thanks ElGranAzul, my django code is up to date (via svn), so
'oldforms' is equivalent to 'forms' (the __init__.py files are the
same). So using 'from django import oldforms as forms' may be better
form (no pun intended!), but will not fix the problem I'm trying to
figure out.
Both RoomForm a
On 31/12/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
On 12/30/06, Alex Koval <[EMAIL PROTECTED]> wrote:
> I found that pretty often I need a "description" being passed to field to
> display. I already subclassed
> a few widgets to get 'description' argument, and display it where needed.
> Fo
Hi Rachel,
I wrote a *REALLY* simple FAQ app. for a site of mine (
http://henry.simon.net.nz/about/ ), and decided to stick it out there
because of this post. I've written it up and put the code here:
http://simon.net.nz/articles/simple-faq-application-for-django/
All it does is store a questio
I have a problem using cookies lasting longer than a session.
When setting SESSION_EXPIRE_AT_BROWSER_CLOSE to True everything works
fine but setting to False NO cookie is set.
Hints in any direction is welcome:-)
Cheers
Sten
--~--~-~--~~~---~--~~
You received
On 12/30/06, Alex Koval <[EMAIL PROTECTED]> wrote:
I found that pretty often I need a "description" being passed to field to
display. I already subclassed
a few widgets to get 'description' argument, and display it where needed.
For example here is
modified TextInput widget:
http://dpaste.com/42
It's completely off the django/python track, but if you're thinking of a
completely separate server, take a look at Apache's SOLR project (a search
web-service backended with Lucene)
-joe
On 12/30/06, Brett Parker <[EMAIL PROTECTED]> wrote:
On Thu, Dec 28, 2006 at 08:53:43PM -0800, Cam wrote:
Hi,
I have been trying to figure this out for a few hours, but could not
find anything.
Is there a way that given a model (returned by
django.db.models.get_models), to figure out if that model has a
ForeingKey field to another model?
I have a Category model, that other models can have a foreign
On Dec 30, 8:38 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote:
You shouldn't have to hack around the library like that; it's intended
to handle encoding issues for you. Could you create a ticket (or just
respond here) with the offending data, the offending code and the full
traceback? That wa
Thanks... I don't see any info, though, on how to tell it what to
group by. Is that possible, or is it smart enough to figure it out on
its own?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" gro
On 12/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I was having problems with newforms as well. I solved it by encoding
all values that might be problematic with .encode('utf-8') and followed
the instructions here:
http://gs.usus.se/2006/12/26/django-i18n-trouble-with-newforms/
Hi Gusta
On 12/30/06, Jannis Leidel <[EMAIL PROTECTED]> wrote:
As a matter of fact I did this several times
with a ChoiceField that uses the default select field. But
unfortunately I couldn't get this working with the RadioSelect widget
and got this UnicodeDecodeError:
'ascii' codec can't decode byte 0x
On 12/30/06, James Golick <[EMAIL PROTECTED]> wrote:
I am really struggling with the forms in django. Its very nice that we
get simple forms, including validation, for free, but we don't seem to
get anything else. I understand that it is possible to write a custom
manipulator, but it is comple
Hi there,
Check out:
http://www.djangoproject.com/documentation/db_api/#extra-select-none-where-none-params-none-tables-none
In a nutshell:
Team.objects.extra(
select={
'team_total': 'SUM(tourney_score.amount)'
},
)
You may want to add it as a manager to the model:
http://www.djan
Hi guys,
I recently tried to use the great newforms with a ChoiceField in
combination with a RadioSelect widget. Furthermore I need to compile
the choices on a page view base because I like to manage them from the
admin interface. Additionally the choices can contain special
characters like umla
Hi all --
I'm trying to figure out whether a query like the following can be done
through the DB API (for maintainability), or whether I'll have to
execute it as custom SQL:
SELECT SUM(tourney_score.amount) AS team_total, tourney_team.id
FROM tourney_score, tourney_team, tourney_player
WHERE to
Hello,
I am really struggling with the forms in django. Its very nice that we
get simple forms, including validation, for free, but we don't seem to
get anything else. I understand that it is possible to write a custom
manipulator, but it is completely undocumented, and I'm struggling with
get
Hi
I am writing a simple billing application for our business.
We are into about six services and the calculations and parameters of each
service is very different that I need to create six tables for each
business.
The models are like follows
class client(models.Model):
..
class bill
On Dec 30, 6:13 pm, Jannis Leidel <[EMAIL PROTECTED]> wrote:
Hi guys,
I recently tried to use the great newforms with a ChoiceField in
combination with a RadioSelect widget. Furthermore I need to compile
the choices on a page view base because I like to manage them from the
admin interface. Add
Hi guys,
I recently tried to use the great newforms with a ChoiceField in
combination with a RadioSelect widget. Furthermore I need to compile
the choices on a page view base because I like to manage them from the
admin interface. Additionally the choices can contain special
characters like umla
I've a template which will be included. Within the template I want to
include it again if needed.
child_list.html
{% if categorie %}
{{ categorie.title }}
{% if categorie.child_set.all %}
{% for categorie in categorie.child_set.all %}
{% include "child_list.html" %}
I've used Lupy - old DivMod project. A howto is here:
http://www.rkblog.rk.edu.pl/w/p/django-lupy/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-u
lol
from os.path import join
print join(settings.RCS_ROOT , normpath(path))
returns /dev :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to djang
I followed the tutorial up to the Poll.objects.all() call, where I get
this error
from mysite.polls.models import Poll, Choice
Poll.objects.all()
Traceback (most recent call last):
File "", line 1, in ?
File
"/Library/Python/2.3/site-packages/Django-0.95-py2.3.egg/django/db/models/query.py",
Thanks Brett,
I found the mailing list after I posted, which always seems the way :)
I've got it up and running using fcgi & lighttpd which benchmarks about
10% quicker than my mod_python install for the rest of the app, with
the bonus that text searching actually works.
I've used xapian for a
Has anyone written a FAQ application in Django that's publically available?
I need one but don't want to re-invent the wheel...
Rachel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post
Also, Robin Munn doesn't seem to have written much anything on
django-developers lately. So it doesn't look very active at the moment.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post t
On Thu, Dec 28, 2006 at 08:53:43PM -0800, Cam wrote:
Hi,
Has anyone managed to get PyLucene working with Django?
It all works perfectly in unittests etc., but I using the development
server import PyLucene causes python to crash (I suspect because the
thread doesn't subclass PyLucene.PythonTh
Are you using svn version?, if the answer is yes, you should read
http://www.djangoproject.com/documentation/newforms/.
With the upcoming of newforms, there is a migration plan for old forms
(the one you're using), so, in views.py line 4, "from django import
forms" should be "from django import
30 matches
Mail list logo