Hello, I'd like to know how is the work going with newforms. I don't
want a release date or something like this, just to know how is it
going, and the documentation as well.
I'm programming a website in django and I'd like to know more about
newfors, since I left the forms to the end, but now I ha
Thanks for the input! While I do think this is the most elegant way of
modelling this data there's nothing that necessitates the use of a
separate db table to store the addresses, as is the consequence of
declaring a separate django model for it.
But it would be nice to not need to declare all ad
Try to set PythonPath to the path where your project lives, not to your
django installation:
Replace :
PythonPath "['/home/mike/downloads/trunk/'] + sys.path"
with:
PythonPath "['/home/mike/www'] + sys.path"
I hope that does the trick.
Am Sonntag, den 11.03.2007, 09:35 -0700 schrieb Mikey:
> I
Hi James,
Any news on the new app that you've mentioned about a week ago?
On Mar 4, 5:01 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 3/4/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> > If you want to extend the current versions have a look at
> >http://www.b-list.org/weblog/2006/
Anyway to return response code 204 from a view?
So that the request page do not get refreshed.
--~--~-~--~~~---~--~~
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
On Mon, 2007-03-12 at 10:22 +, shevken wrote:
> Anyway to return response code 204 from a view?
Presumably a typo and you mean 304 (not-modified), not 204 (empty
content).
> So that the request page do not get refreshed.
Return an HttpResponseNotModified instance from your view function.
Se
2007/3/12, shevken <[EMAIL PROTECTED]>:
>
> Anyway to return response code 204 from a view?
>
> So that the request page do not get refreshed.
>
I guess you could simply create a normal response object and set it's
status_code attribute to 204 :-)
--~--~-~--~~~---~--~
Op maandag 12-03-2007 om 08:59 uur [tijdzone +], schreef Grupo
Django:
> Hello, I'd like to know how is the work going with newforms. I don't
> want a release date or something like this, just to know how is it
> going, and the documentation as well.
> I'm programming a website in django and I
Op zondag 11-03-2007 om 17:39 uur [tijdzone +0100], schreef Horst
Gutmann:
> enquest schrieb:
> > Op zondag 11-03-2007 om 15:48 uur [tijdzone +0100], schreef Horst
> > Gutmann:
> >> enquest schrieb:
> >>> Second question: how can you add a password field from the newforms. you
> >>> can't define
Can somebody with a reasonably recent subversion checkout ([4671] or
later -- I'm using [4709] in this email) and python 2.3, please verify
something for me...
I am seeing three test failures under python2.3 -- using SQLite -- but
since I've had to set up 2.3 in a sandbox, I'm not completely conf
I have view that returns a whole bunch of different variables and
boolean flags.The state of these flags determine what the user
actually sees on their screen.
From a design perspective I seem to have two options:-
1. Design a template with lots of {% if %} conditional statements to
is there any search functionality that has been implemented with
Django for postgresql database
As i need to add search in my website and i don't know from where i
can start
Any help will be very appreciated
Thank you in advance;
Mary Adel
--~--~-~--~~~---~--~~
Hi!
I have designed a model which contains among other things a couple of
DateFields.
Some, actually one, of these must have a value but the other may not.
So, I tried to use the construct:
done_planned = models.DateField(blank=True)
But that doesn't work, because I get a exception with the e
Is anywhere some simple tutorial, how to implement such features (filters,
sorting, pagination) into my views? Or is the fastest way try to read and
understand source of django/contrib/admin ?
Thanks for pointing me, where I should continue with study ...
--
Zdravi
Gilhad
[EMAIL
On Mon, 2007-03-12 at 12:14 +0100, Roland Hedberg wrote:
> Hi!
>
> I have designed a model which contains among other things a couple of
> DateFields.
>
> Some, actually one, of these must have a value but the other may not.
>
> So, I tried to use the construct:
>
> done_planned = models.DateF
On 12-Mar-07, at 4:44 PM, Roland Hedberg wrote:
> done_planned = models.DateField(blank=True)
models.DateField(blank=True,null=True)
blank=True is at django level and null=True is at database level
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~---
hi everyone here, how to use .htc file in django
if in j2ee or nomal html file, i can define in table as
but in django, I cannot do it correctly, help me, plz
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
hi everyone here, how to use .htc file in django
if in j2ee or nomal html file, i can define in table as
but in django, I cannot do it correctly, help me, plz
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
Malcolm,
On 3/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> Can somebody with a reasonably recent subversion checkout ([4671] or
> later -- I'm using [4709] in this email) and python 2.3, please verify
> something for me...
>
> I am seeing three test failures under python2.3 -- using S
On Mon, 2007-03-12 at 09:26 -0300, Ramiro Morales wrote:
> Malcolm,
>
> On 3/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> >
> > Can somebody with a reasonably recent subversion checkout ([4671] or
> > later -- I'm using [4709] in this email) and python 2.3, please verify
> > something f
On Mon, 2007-03-12 at 17:37 +1100, Malcolm Tredinnick wrote:
> On Mon, 2007-03-12 at 05:00 +, [EMAIL PROTECTED] wrote:
> > I was just wondering if there were any known issues regarding speed
> > with ChangeManipulators and large objects?
> >
> > I'm using custom ChangeManipulators successfull
Hello all,
My django application runs slower under Apache+FastCGI or
Lighttpd+FastCGI than under django development HTTP server. The
approximate times for generating the page are 0.6 vs 1.0 seconds for
FastCGI and development server correspondingly.
I've tried different combinations of 'prefork'
Hello everyone,
I've created a custom permission on one of my models and I've given a
user the custom permission.
When I go into the shell (manage.py shell), I can confirm that the
user has the custom permission. But when I use the perms object in one
of my templates, it simple doesn't work.
{%
Is Django suitable for multi-tenant database application? i.e.
combining username and company_id as primary key
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
On 12/03/07, Boris Smus <[EMAIL PROTECTED]> wrote:
>[56]:cs.filter(default_recipe__ingredients__ingredient__id=3).filter(default_recipe__ingredients__ingredient__id=1)
> Out[56]:[]
This would map to a Query that looks like this "... WHERE id=3 AND
id=1". that would most certainly return no resul
It is not clear to me what you are asking. You will need to provide
more information than "I cannot do it correctly".
However, your browser interprets the output of Django in the same way
as 'normal HTML' and J2EE application HTML output. You should check
the HTML generated by your Django applic
I am running a system with basically the same versions of all software
packages as you are. It is in production and under stress testing it
performed very very well and there've been no issues with performance
so far. I am using Apache + FastCGI, server-managed.
First thing you might want to look
On 3/12/07, Roland Hedberg <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have designed a model which contains among other things a couple of
> DateFields.
>
> Some, actually one, of these must have a value but the other may not.
>
> So, I tried to use the construct:
>
> done_planned = models.DateField(
On Mon, 2007-03-12 at 06:11 -0700, zin wrote:
> Is Django suitable for multi-tenant database application? i.e.
> combining username and company_id as primary key
We do not support multi-column primary keys at this point in time.
Malcolm
--~--~-~--~~~---~--~~
Yo
On 3/12/07, Roland Hedberg <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have designed a model which contains among other things a couple of
> DateFields.
>
> Some, actually one, of these must have a value but the other may not.
>
> So, I tried to use the construct:
>
> done_planned = models.DateField(
On 12 Mar, 11:31, enquest <[EMAIL PROTECTED]> wrote:
> However one question is still open!
Did you look at my previous post ?
Massimiliano
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
Hello,
please allow me to disagree. the first two queries in the original
post return result sets which overlap. but they combined return the
empty set. this is the problem.
konstantin
On Mar 12, 9:13 am, Atilla <[EMAIL PROTECTED]> wrote:
> On 12/03/07, Boris Smus <[EMAIL PROTECTED]> wrote:
>
>
> >[56]:cs.filter(default_recipe__ingredients__ingredient__id=3).filter(default_recipe__ingredients__ingredient__id=1)
>> Out[56]:[]
> This would map to a Query that looks like this "... WHERE id=3 AND
> id=1". that would most certainly return no results.
Unless those ingredients were qbits
I needed slugify to be more precise with accented characters and i
couldn't find some code to do it, so here it is :
http://amisphere.com/contrib/python-django/slughifi.py
http://amisphere.com/contrib/python-django/ for a quick overview
example :
>>> text = "C'est déjà l'été."
>>> slughifi(text
Hi,
I'm trying to access the value of an image field which is uploaded in
the django admin interface - prior to calling the save.
I have a model called Photo with three attributes: large, medium and
small. Each are ImageFields.
I have overwritten the save( ) function in Photo so that I can chec
Has anyone else using the multiple-database branch had problems with
'too many connections' errors? The trunk was being merged into this
project until last fall I believe...so I think the mod_python bug that
existed early on is fixed...but when I get two or three QA ppl in my
system at the same t
On Mon, 12 Mar 2007 05:15:14 -0700, 骛之 张 wrote:
> hi everyone here, how to use .htc file in django
>
> if in j2ee or nomal html file, i can define in table as style="behavior:url(/htc_path/js/TableSort.htc) url(/htc_path/js/
> TableHL.htc) url(/htc_path/js/DragDrop.htc);">
>
> but in django, I
hello,
regarding the last part of your post: i have an unconfirmed suspicion
that data validation should not be done in models but in the forms
that manipulate data. does anyone know if this is correct?
konstantin
On Mar 12, 9:56 am, "gorans" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to a
So i need to set USE_ETAGS=True in settings.py
And then
return response.status_code=204
Hmm..i'll try it tomorrow at work.
On Mar 12, 6:27 pm, "Horst Gutmann" <[EMAIL PROTECTED]> wrote:
> 2007/3/12, shevken <[EMAIL PROTECTED]>:
>
>
>
> > Anyway to return response code 204 from a view?
>
> > So
> Is Django suitable for multi-tenant database application? i.e.
> combining username and company_id as primary key
You omit some key details:
-are the tenants writing data, or just reading data?
If they're just reading data, you can jockey your views based on
the tenant. We're currently doin
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
>
> i'm trying to install django, i followe dthe instruction on the django
> web site but it doesn't work
> been looking around and the only tutorial that i yet understand
> ( sorry it's al a bit complicated for me ) requir
I have some scripts that run tasks and use Django DB models. They have
been running an hour late today after all the DST changes (here in the
US). I've traced it down to any call to Django is shifting my time
back an hour (like it was before this weekend's shift).
So the time as reported by time.
On 12-Mar-07, at 7:46 PM, Tim Chase wrote:
> As previously mentioned by Malcom, Django doesn't currently
> support multi-column keys.
their *is* unique_together, but will that suit your needs?
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~--
I found a workaround but I'm not sure what the ramifications are. I
commented out this line in django.conf.__init__.py:
os.environ['TZ'] = self.TIME_ZONE
On Mar 12, 10:19 am, "DavidA" <[EMAIL PROTECTED]> wrote:
> I have some scripts that run tasks and use Django DB models. They have
> been r
Well crud. My host won't turn on slow query logging. So, if you know
you've got a bunch of not-so-good queries (as shown above), how would
one try to spot them?
On Mar 10, 4:58 pm, "gilhad" <[EMAIL PROTECTED]> wrote:
> On Mar 7, 4:26 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > My
well i tried with the forewall and offan it return the same error all
the time.
i tried agai to get darwin port running ( and the latest mac part as
well)
http://www.rhonabwy.com/wp/2006/07/20/installing-django-on-macos-x-development-version/
but once i downloaded either the dmg or the source fil
Did not know that setting. Thanks James!
On Mar 9, 11:04 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > also, google webmaster tools reports that the majority (about 80%, but
> > not all) of the site is US-ASCII, not UTF-8
>
> The 'm
On 3/12/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> Thanks, Ramiro. Although, interesting that you only had one failure and
> not two. *Shrug*.
>
> What database backend were you using here? SQLite?
>
Sorry for the incomplete report, I was in a hurry leaving for work. Yes I'm
using the
Thanks. It means I have to have Django source and copy admin media
files to Apache document root.
best regards,
On Mar 11, 1:15 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 3/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > When deploying site using apache + mod_python, how to ma
Hello group,
The __init__ method of the newforms.Field class normalizes labels and
help_text by using smart_unicode.
This seems to break gettext/gettext_lazy:
When accessing a newly started runserver with two browsers with
different accept-languages,
both get to see the translation of the first
On 3/12/07, DavidA <[EMAIL PROTECTED]> wrote:
>
> I found a workaround but I'm not sure what the ramifications are. I
> commented out this line in django.conf.__init__.py:
>
> os.environ['TZ'] = self.TIME_ZONE
>
What version/revision of Django are you using?.
See ticket #2315 and changeset [
I got the same problem in a different context:
Exception Type: TypeError
Exception Value:'dict' object is not callable
Exception Location: /usr/lib/python2.4/site-packages/Django-0.95.1-
py2.4.egg/django/newforms/forms.py in full_clean, line 180
Can someone help?
On 5 Fe
I've been trying to get the fixtures working in order to beef up the unit
tests with my app. I'm running into an issue and wonder if anyone else
has seen this.
I can serialize the data just fin. When I try to load the data, I get the
error below. I've tried this with the XML and brand new PyYa
hello,
i think render_to_response takes a Context object not a dict as the
second parameter.
konstantin
On Mar 12, 10:56 am, "DvD" <[EMAIL PROTECTED]> wrote:
> I got the same problem in a different context:
>
>
> Exception Type: TypeError
> Exception Value:'dict' object is not call
I have a class call snippet:
class Snippet(models.Model):
user = models.ForeignKey(User)
entry = models.ForeignKey(Entry)
commentary = models.ForeignKey(Commentary)
date_created = models.DateTimeField(auto_now_add=True)
active = models.BooleanField(default=True)
snippet =
Thanks Ramiro,
Thanks for the pointer and hint. Next time I will search there first.
That indeed gets it through the validator. The error seems to be
caught by some
lower level (db?), but for now that works.
Thanks again,
Rob
On Mar 11, 2007, at 4:45 PM, Ramiro Morales wrote:
>
> On 3/11/0
I don't know of any tutorial/doc that covers how the admin implements
filters, etc. When I wanted similar functionality on my user-visible pages
I just read the admin souce to see how it did it...all in all it wasn't too
tough to figure out.
Karen
On 3/12/07, Gilhad <[EMAIL PROTECTED]> wrote:
>
Gilhad,
just read the documentation.
~ Anders
On 3/12/07, Gilhad <[EMAIL PROTECTED]> wrote:
>
>
> Is anywhere some simple tutorial, how to implement such features (filters,
> sorting, pagination) into my views? Or is the fastest way try to read and
> understand source of django/contrib/admin
On 3/12/07, zin <[EMAIL PROTECTED]> wrote:
> Is Django suitable for multi-tenant database application? i.e.
> combining username and company_id as primary key
Django does not currently have support for composite keys. You can
fake this to a certain extent with unique_together, but from Django's
p
Thanks. I am on trunk, 4227 so I don't have this fix.
On Mar 12, 10:53 am, "Ramiro Morales" <[EMAIL PROTECTED]> wrote:
> On 3/12/07, DavidA <[EMAIL PROTECTED]> wrote:
>
>
>
> > I found a workaround but I'm not sure what the ramifications are. I
> > commented out this line in django.conf.__init__.
Jobs Vs Opportunity - The Movie
www.thewealththeory.com/beyond-freedom.com
This is excellent!
If you haven't already watched, it check it out now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gro
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> well i tried with the forewall and offan it return the same error all
> the time.
Sorry, I misspoke. I didn't mean firewall, the firewall should have no
effect. I actually meant proxy. Many corporate environments are behind
proxies that
nope i do it from home, never had any problem before, not like i would
really have known anyway got problem all the time :),
problem isntalling this and that, problem installing rails and so on.
shame i really want to give a try at django reviews looks good, better
than rail for a designer like me
Looks like some weird behavior.
I fixed it like this:
def update_snip(request):
u = User.objects.get(id=request.session['userid'])
snip = Snippet.objects.filter(id=snippet_id,user=u)
the_snip = snip[0]
the_snip.active = 0
the_snip.save()
print "Active = %s" % the_snip.act
Merric Mercer wrote:
> I have view that returns a whole bunch of different variables and
> boolean flags.The state of these flags determine what the user
> actually sees on their screen.
>
> From a design perspective I seem to have two options:-
>
>
> 1. Design a template with lots of
Hi.
We have some intresting situations in one of our environments.
1. When we generate request that causes object not found errors after
5 such requests we get info that we cannot connect DB. Looks like some
connection limitation but we cant reproduce it in other environments.
2. Occures when us
hello,
yes, there is search functionality called database API:
http://www.djangoproject.com/documentation/db_api/
do you have anything specific in mind?
konstantin
On Mar 12, 7:09 am, "Mary" <[EMAIL PROTECTED]> wrote:
> is there any search functionality that has been implemented with
> Djang
Hello folks,
I'm curious if there is a better way of changing File and Image Fields
from "varchar(100)" to "varchar(%(maxlength)s)" than editing "django/
db/backends/mysql/creation.py". Is there any particular reason why
these are hard set? My relative paths seem to have exceeded the 100
char lim
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I found an error in django.
I use python 2.5
the error occurs both in the actual official released version and in the
svn version.
as soon as I enter the adminpage I get following error, if I have a
sessioncookie.
without sessioncookie no er
There were similar tryings to create international slugification before:
http://groups.google.com/group/django-users/browse_thread/thread/6942f87bed76a536/8d38392e25dd1974
But your approach seems to be more generic. You should certainly post
it on djangosnippets.org as a separate snippet or (mayb
There is something called as Full text Search (i believe it is called
TSearch2...not sure of the name though) in postgresql. Google for
further info.
If you use some other database you might have to use:
1) Xapian http://www.xapian.org
2) pyLucene http://pylucene.osafoundation.org/
3) Swish-E (I
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> nope i do it from home, never had any problem before, not like i would
> really have known anyway got problem all the time :),
> problem isntalling this and that, problem installing rails and so on.
> shame i really want to give a try at
Jobs Vs Opportunity - The Movie
www.thewealththeory.com/beyond-freedom
This is excellent!
If you haven't already watched, it check it out now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Kudo's to Ivan - It's a pretty good answer. I think the metaphor breaks down
when you get to >1000 items that could pop up in a select field, but at
least you don't get his when just using a plain-jane manipulator with this
fix.
I think I'll stick with the tendency towards using raw_id_admin=True
Have you done any profiling to see where your bottlenecks are? There's a
decent set of notes on profiling Django at
http://code.djangoproject.com/wiki/ProfilingDjango and an even greater
writeup at
http://www.rkblog.rk.edu.pl/w/p/django-profiling-hotshot-and-kcachegrind/.
Apache+Mod_Python and Lig
I just got my first django app up: http://brackets.bracketboy.net/ Not
very impressive, but I'm still excited about it. anyway . . .
I'm having trouble accesing a method through the admin interface as
part of a choices list. It seems to work fine throughout the site and
the admin interface, but
On Mar 12, 6:56 am, Tim Chase <[EMAIL PROTECTED]>
wrote:>
> cs.filter(
> Q(default_recipe__ingredients__ingredient__id=3) |
> Q(default_recipe__ingredients__ingredient__id=1)
> )
Just to clarify, I was trying to get AND functionality, as Konstantin
suggested. I also tried
Boris Smus wrote:
> On Mar 12, 6:56 am, Tim Chase <[EMAIL PROTECTED]>
> wrote:>
>> cs.filter(
>> Q(default_recipe__ingredients__ingredient__id=3) |
>> Q(default_recipe__ingredients__ingredient__id=1)
>> )
>
> Just to clarify, I was trying to get AND functionality, as Kon
I'm playing with django.core.serializers... so far with few success :(
With JSON i get the Error: "ContentType matching query does not exist."
If i use the "python" format, i get from serializers.serialize() a list.
How should I to store these list in a file? With pickle, repr() or
unicode()?
Take a shot at enabling the profiling (Jeremy provided a link a few msgs
back) - it'll give you a huge amount of detail.
-joe
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Well crud. My host won't turn on slow query logging. So, if you know
> you've got a bunch of not-so-good que
On Mar 12, 3:59 am, "Grupo Django" <[EMAIL PROTECTED]> wrote:
> Hello, I'd like to know how is the work going with newforms. I don't
> want a release date or something like this, just to know how is it
> going, and the documentation as well.
> I'm programming a website in django and I'd like to kn
I'm trying my hardest to make an archive list on our website. I can
pull them up fine with Model.objects.dates('pub_date','month') but I
can't use .filter() on them for some reason. We add things to the
database sometimes with a pub_date > today's date so things are
automatically published in th
On Mon, 2007-03-12 at 10:27 -0700, Joseph Heck wrote:
> Kudo's to Ivan - It's a pretty good answer. I think the metaphor
> breaks down when you get to >1000 items that could pop up in a select
> field, but at least you don't get his when just using a plain-jane
> manipulator with this fix.
>
> I
On Mon, 2007-03-12 at 11:53 -0300, Ramiro Morales wrote:
> On 3/12/07, DavidA <[EMAIL PROTECTED]> wrote:
> >
> > I found a workaround but I'm not sure what the ramifications are. I
> > commented out this line in django.conf.__init__.py:
> >
> > os.environ['TZ'] = self.TIME_ZONE
> >
>
> What v
Hi Friends,
Greetings!!
I was searching for information on Study & WORK IN USA & reached to
this very much informative site, www.sonal.coolgoose.in, I would like
to tell you more about STUDY & WORK IN USA.
There are so many universities waiting for us to join them for our
further studies and you
On Mon, 2007-03-12 at 09:29 -0700, Brendon wrote:
> Hello folks,
>
> I'm curious if there is a better way of changing File and Image Fields
> from "varchar(100)" to "varchar(%(maxlength)s)" than editing "django/
> db/backends/mysql/creation.py". Is there any particular reason why
> these are hard
On Mon, 2007-03-12 at 17:37 +, hass wrote:
> I just got my first django app up: http://brackets.bracketboy.net/ Not
> very impressive, but I'm still excited about it. anyway . . .
>
>
> I'm having trouble accesing a method through the admin interface as
> part of a choices list. It seems to
On Mon, 2007-03-12 at 19:37 +, Stephen Mizell wrote:
> I'm trying my hardest to make an archive list on our website. I can
> pull them up fine with Model.objects.dates('pub_date','month') but I
> can't use .filter() on them for some reason. We add things to the
> database sometimes with a pu
On Mar 11, 8:43 pm, "chasfs" <[EMAIL PROTECTED]> wrote:
> ORM has been contentious for many years - for more background on the
> problems of
> ORM, check out Ted Neward's blog entry
> -http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science...
>
> Peace,
> -chasfs
That for the li
I posted previously about how it seemed to me that, while the
permalink decorator is useful in decoupling the get_absolute_url()
methods of an application's models from the site/project, it more or
less forces you to create dummy custom views where you would normally
simply use generic views. Here
I will, but there is a lot of documentation about django ... which file/page
is related to the integration of this features into my code ?
(I can write my filtres and everything, but this is long and duplacate work,
so I try to reuse the existing features from adminsite, but in my own views,
w
On 3/12/07, dchandek <[EMAIL PROTECTED]> wrote:
> Am I missing something?
It's not that 'permalink' doesn't work with generic views -- it can.
As I understand it, the problem is a URLConf like this:
urlpatterns = patterns('django.views.generic.list_detail',
(r'^foo/(?P\d+)/$', 'object_detail
> Try doing the filtering first (since filter() returns a QuerySet) and
> then calling dates() on the result. So
>
> Model.objects.filter().dates()
Worked perfectly. I would have bet money I had tried that earlier,
but it looks like I would have lost that bet. Thanks for your he
Merric Mercer wrote:
> 1. Design a template with lots of {% if %} conditional statements
>
> 2. Do the bulk of the work in the view, by doing something like:-
>
> 3. Do a combination of the two above
4: Caching?
cheers
Bill
--~--~-~--~~~---~--~~
You re
Thank you, so I will do it the same way.
If there is no easier way, this one should be sufficient for me.
At least I will have no bad feeling, that I am doing it by the difficult way,
when there (maybe) exist another, better one.
On Monday 12 March 2007 16:20, Karen Tracey wrote:
> I don't kn
Hi,
I have a database which stores relationships between two objects. i.e a is
linked to b by c.
model Friend(models.Model):
name = models.CharField
age = models.IntgerField
model Link(models.Model):
how = models.CharField
links = models.ManyToManyField
As in friends are linked to
Hi!
I have created a form using newforms, and one field is author which I
want to fill using the current username, I did this:
request.POST['author']="Username I want"
and I got this error:
"QueryDict instance is immutable"
Ok, what should I do? I thought about create a hidden widget for this
fiel
Hello,
That particular QueryDict instance is immutable, so you won't get what
you want.
Try the following:
new_data = request.POST.copy()
new_data['author'] = "Username I want"
This will create a mutable instance and fill it with the correct data.
You can then use new_data in whatever context yo
Hi there,
Actually, it's plainly that. It's just not working, and I don't really
know where to look for a flaw. It's just a blind guess, but maybe django
is not correctly locating my .mo files? I've triple-checked their
location and tried in every place stated in the documentation or the
django b
On 3/12/07, Bill de hOra <[EMAIL PROTECTED]> wrote:
> Merric Mercer wrote:
>
> > 1. Design a template with lots of {% if %} conditional statements
> >
> > 2. Do the bulk of the work in the view, by doing something like:-
> >
> > 3. Do a combination of the two above
>
> 4: Caching?
5. Start
1 - 100 of 128 matches
Mail list logo