err.. Malcolm--sorry about the typo
--~--~-~--~~~---~--~~
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, send email
Thanks for the reply and sorry for my vagueness;
Rob: I was talking about really long lines of python. Thanks for the
heads up about the all. I was just typing off the top of my head and
still and figuring out python.
Malcom: I suppose that is what I am asking. Is there any simple way
to take g
Could it possibly be due to the fact that your python shell has the
correct PYTHONPATH set (with the memcached python bindings) and that
your django configuration doesn't have the correct PYTHONPATH?
omat wrote:
> Hi all,
>
> I have installed memcached and python bindings on Fedora Core 4. Usin
On Tue, 2007-05-29 at 06:49 +, omat wrote:
> Hi all,
>
> I have installed memcached and python bindings on Fedora Core 4. Using
> the python shell I am able to use cache with django:
>
> >>> from django.conf import settings
> >>> settings.configure(CACHE_BACKEND = 'memcached://127.0.0.1:1121
On Tue, 2007-05-29 at 05:20 +, Michael Newman wrote:
> Something that has been bothering me for awhile and I finally just
> decided to post it here because my code work around hits the database
> way too many times.
>
> I am writing a custom view for an application that uses multiple
> catego
Hi all,
I have installed memcached and python bindings on Fedora Core 4. Using
the python shell I am able to use cache with django:
>>> from django.conf import settings
>>> settings.configure(CACHE_BACKEND = 'memcached://127.0.0.1:11211/')
>>> from django.core.cache import cache
>>> cache.set('t
Its hard to tell what you mean by "really long once I start factoring
time and uniqueness". Do you mean really large data sets or really
wide lines in your python file?
If the former, you will probably need to be more specific about what
the long query contains. If the latter, look at chaining que
Something that has been bothering me for awhile and I finally just
decided to post it here because my code work around hits the database
way too many times.
I am writing a custom view for an application that uses multiple
categories per story. So I want to lookup stories so that they aren't
dupli
On 29-May-07, at 8:34 AM, Russell Keith-Magee wrote:
> Note that for simple cases, you may be able to use a generic view.
> These are views that cover simple use cases (just render a template,
> render a template for a single database object, render a template for
> a list of database objects, e
look it
_
使用下一代的 MSN Messenger。
http://imagine-msn.com/messenger/launch80/default.aspx?locale=zh-cn&source=wlmailtagline
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On 5/29/07, Vincent Nijs <[EMAIL PROTECTED]> wrote:
>
> Russell,
>
> I think I am starting to get the basic idea of 'extends' for templates.
> However, I don't get what I need to do to get my basic example (or your
> example for that matter) to generate the page I want to see in my browser.
> It d
Russell,
I think I am starting to get the basic idea of 'extends' for templates.
However, I don't get what I need to do to get my basic example (or your
example for that matter) to generate the page I want to see in my browser.
It doesn't just work the way php would here so I am guessing I need t
On 5/28/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> I thought I had the lock on the grumpy old man role in this list.
I'm grumpy but not old; what prize do I get?
Dang kids these days with their user profiles...
--
"Bureaucrat Conrad, you are technically correct -- the best kind of cor
On Mon, 2007-05-28 at 15:00 -0700, dehora wrote:
>
> ZZorba wrote:
> > I'm also aware of trickiness of eval() methods,
> > so,, I could solve the problem in this way
> >
> > "
> > profile_fields = "email email_backup brother sister".split()
> > for key in profile_fields:
> > getattr(request.u
On Tue, 2007-05-29 at 00:30 +0200, Sandro Dentella wrote:
> On Mon, May 28, 2007 at 04:26:17PM -0500, Jeremy Dunck wrote:
> >
> > On 5/28/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > > Okay... time to fix that problem then. Probably need to introduce a
> > > settings for tests only for d
On Mon, 2007-05-28 at 16:26 -0500, Jeremy Dunck wrote:
> On 5/28/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > Okay... time to fix that problem then. Probably need to introduce a
> > settings for tests only for database encoding. I should have done that
> > when I first saw the problem ins
On 5/29/07, vince <[EMAIL PROTECTED]> wrote:
>
> What would i need to do exactly to
> get the following to work?
>
> {% include("design/index_nav.html") %}
> Welcome to the home page
> {% include("design/footer.html") %}
The following would work:
{% include "design/index_nav.html" %}
Welcome to
On 29-May-07, at 5:28 AM, vince wrote:
> {% include("design/index_nav.html") %}
> Welcome to the home page
> {% include("design/footer.html") %}
make a base.html page like this:
contents of design/index_nav.html
{% block maincontent %}
{% endblock %}
contents of design/footer.html
and in your
OK, found it!
The urls.py file in subapplication had:
urlpatterns = patterns('subapplication.views', )
rather than:
urlpatterns = patterns('project.subapplication.views', ...)
Thanks if you were working on this.
Juampa
--~--~-~--~~~---~--~~
You
Sorry about the "subapplication". I added those thinking they
would highlight the "subapplication" name in the post. They are *not*
in the httpd.conf file!
Thanks again.
Juampa
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Hello all:
I am trying to deploy a test application with Apache 2.0.59 and
mod_python 3.3.1. I am also using Django 0.97-pre (development
version). The project has a single cistom application and it is listed
in INSTALLED_APPS in settings.py. Also, I have a urls.py file within
the subapplication
I am trying to learn Django to convert a site where I use php + python
cgi scripts. For consistent layout i would use php's include statement
for headers and footers on the old site. It is mentioned the Django
book that something similar exists for Django. Suppose i want to
create a home page (ind
On Mon, May 28, 2007 at 04:26:17PM -0500, Jeremy Dunck wrote:
>
> On 5/28/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > Okay... time to fix that problem then. Probably need to introduce a
> > settings for tests only for database encoding. I should have done that
> > when I first saw the p
On May 28, 1:43 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> Validation involving multiple fields is the responsibility of the form,
> not any individual field. So do this type of checking in the clean()
> method of your Form sub-class.
Thanks Malcolm, works grand!
L.
--~--~-~--
ZZorba wrote:
> I'm also aware of trickiness of eval() methods,
> so,, I could solve the problem in this way
>
> "
> profile_fields = "email email_backup brother sister".split()
> for key in profile_fields:
> getattr(request.user.get_profile(), key)
> "
That's so Zope.
> And, it works well.
On 5/28/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Okay... time to fix that problem then. Probably need to introduce a
> settings for tests only for database encoding. I should have done that
> when I first saw the problem instead of trying to dodge around it.
FWIW, as a workaround, in M
Hey Andrew --
The reason you haven't seen updates to the book is that we're in the
process of doing the final reviews for print. It's entirely
uninteresting work so we're not doing it publically.
Expect to see the first of the final chapters online in the next
couple of weeks; we'll be posting t
On 28-May-07, at 11:24 PM, Lic. José M. Rodriguez Bacallao wrote:
> So, if I add a ForeignKey field to my model it simply add a
> "related_model_id" column to my table, let me ask something, how
> django enforce that when I add a repeated value to that field it
> will an error, I mean, a f
>> Aaah! :-(
>>
>> I've been fighting this problem a bit when testing with MySQL, too,
>> because my system creates the databases in LATIN1 if I don't tell it
>> anything special and so the test database can't hold the full unicode
>> range of characters. It creates PostgreSQL database in UTF-8 on
So, if I add a ForeignKey field to my model it simply add a
"related_model_id" column to my table, let me ask something, how django
enforce that when I add a repeated value to that field it will an error, I
mean, a foreign key value that does not exist in the original table in a one
to many relatio
On 5/28/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
>
>
> Say I have:
>
> class TaggedItem(models.Model):
> """A tag on an item."""
> tag = models.SlugField()
> content_type = models.ForeignKey(ContentType)
> object_id = models.PositiveIntegerField()
>
Hi Jos�,
As the documentation says, the best alternative right now is to set a
ForeignKey from one of the models to the other, on which you should
place the ForeignKey really depends on every specific case, normaly it
should go to the one that "cannot live with the other" (hence, the
dependent one
Thanks for fixing that.
I also find using the smart_str() really handy, for cases where stuff
getting out of python.
Regards,
itsnotvalid
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
Hi every one, first of all, sorry about my english, it's not so good but I'm
still learning. Well, I'm new to django and right now I come from zope (2/3)
and plone. I find django very exciting but I got a little problem, how can I
specify a Generalization/Especialization relation in django, I mean,
Am 28.05.2007 um 15:51 schrieb Malcolm Tredinnick:
> I can't replicate this problem, but I can take a guess at what is
> going
> on. In [5377] I've checked in what is probably a fix for the problem.
> Could you try it and see if it changes things for you?
Looks good so far. I'll report if the
Hi,
We (Music Pictures Ltd) are on the lookout for a Django / Python
programmer to join our small team in Berlin, Germany.
Currently this is a student / intern ( praktikant ) position. Any
Linux, Postgres and Oracle would also be cool.
Our current projects are: a port of our image library softw
Hi there,
Say I have:
class TaggedItem(models.Model):
"""A tag on an item."""
tag = models.SlugField()
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
content_object = models.GenericForeignKey()
class Meta:
orderi
I don't know for sure, but since some features will change rather
dramatically before 1.0 is released (admin-newforms for instance), I
imagine they decided to put the chapters that would be affected on
hold until feature freeze.
Vince.
On May 28, 6:48 am, AndrewK <[EMAIL PROTECTED]> wrote:
> I'v
On Mon, 2007-05-28 at 11:27 +0200, Andreas Ahlenstorf wrote:
> Hi,
>
> I'm having issues with the Unicode Branch and mod_python (the
> development server ist working fine). That's what's comming from
> mod_python:
>
> Phase: 'PythonHandler'
> Handler:'django.core.handlers.mo
New update, I used ModelChoiceFields and ModelMultipleChoiceFields.
Problem solved :)
On May 23, 9:01 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I wrote a newforms form, but I have some problems when I want to test
> the class. Here's the definition:
>
> def _users():
>
Hello,
I found another deficiency in django-multilingual. I'm sure that on
many sites, including the one I'm developing now, there would be one
primary language for content and translations will appear slowly after
the content in the primary language is published. I want to display
content in prim
Malcolm Tredinnick wrote:
> On Mon, 2007-05-28 at 13:55 +0200, Michal wrote:
> [...]
>> You are right, the problem is in the database.
>>
>> It seems like the test database is created in SQL_ASCII encoding. I
>> looked into psql terminal and found:
>>
>> List of databases
>>N
Michal wrote:
> It seems like the test database is created in SQL_ASCII encoding. I
> looked into psql terminal and found:
>
> List of databases
>Name | Owner| Encoding
> -++---
> gr4unicode | pgsql | UNICODE
> te
On Mon, 2007-05-28 at 13:55 +0200, Michal wrote:
[...]
>
> You are right, the problem is in the database.
>
> It seems like the test database is created in SQL_ASCII encoding. I
> looked into psql terminal and found:
>
> List of databases
>Name | Owner| Encodin
On Sun, 2007-05-27 at 13:34 -0700, itsnotvalid wrote:
> I got an error when I am using admin interface to submit some forms as
> following the Django book (CH6).
>
> When the form in admin interface saving.
[... snip...]
>
> UnicodeDecodeError at /admin/books/author/add/
> 'ascii' codec can'
Malcolm Tredinnick wrote:
> On Mon, 2007-05-28 at 13:16 +0200, Michal wrote:
>> Malcolm Tredinnick wrote:
>>> On Mon, 2007-05-28 at 12:59 +0200, Michal wrote:
>>> [...]
My note was in relation with latest error (ie. I have problem with
execution of tests due to verbose_name error).
Hi!
I need an order form that will handle the orders for X number of
students and Y number of products. I have a working solution that
creates a .. for every product and submits it on
onchange, but I was wondering if there was more of a "django" way to
do this.
I would like my form to lo
On Mon, 2007-05-28 at 13:16 +0200, Michal wrote:
> Malcolm Tredinnick wrote:
> > On Mon, 2007-05-28 at 12:59 +0200, Michal wrote:
> > [...]
> >> My note was in relation with latest error (ie. I have problem with
> >> execution of tests due to verbose_name error).
> >>
> >> I am just after dinner
Malcolm Tredinnick wrote:
> On Mon, 2007-05-28 at 12:59 +0200, Michal wrote:
> [...]
>> My note was in relation with latest error (ie. I have problem with
>> execution of tests due to verbose_name error).
>>
>> I am just after dinner too, so I will try to find what is wrong in my
>> application.
On Mon, 2007-05-28 at 12:59 +0200, Michal wrote:
[...]
>
> My note was in relation with latest error (ie. I have problem with
> execution of tests due to verbose_name error).
>
> I am just after dinner too, so I will try to find what is wrong in my
> application... :)
>
>
> Once again, sorry
Malcolm Tredinnick wrote:
> On Mon, 2007-05-28 at 11:27 +0200, Michal wrote:
>> Malcolm Tredinnick wrote:
>>> On Mon, 2007-05-28 at 02:09 -0700, itsnotvalid wrote:
Michal, your error looks nearly identical to the one I encounter with
admin interface. Except the byte offending is not the
I've been learning Django for a while, but I'm new to this group, so
if there's a source of news that I'm not aware of, where this has been
covered, please accept my apologies.
Does anybody know why the writing of the Djangobook seems to have
ground to a halt? I check it fairly frequently, and ju
On Mon, 2007-05-28 at 11:27 +0200, Andreas Ahlenstorf wrote:
> Hi,
>
> I'm having issues with the Unicode Branch and mod_python (the
> development server ist working fine). That's what's comming from
> mod_python:
>
> Phase: 'PythonHandler'
> Handler:'django.core.handlers.mo
On Mon, 2007-05-28 at 11:27 +0200, Michal wrote:
> Malcolm Tredinnick wrote:
> > On Mon, 2007-05-28 at 02:09 -0700, itsnotvalid wrote:
> >> Michal, your error looks nearly identical to the one I encounter with
> >> admin interface. Except the byte offending is not the same.
> >>
> >> I guess there
Thanks for tell me this, I know now, I'm not familiar with open source
project process.
On 5/28/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
>
> On 5/28/07, flyaflya <[EMAIL PROTECTED]> wrote:
> > I have a url, its length is 201.
>
> I'm not trying to be mean here, but...
>
> 1. We have a publi
Malcolm Tredinnick wrote:
> On Mon, 2007-05-28 at 02:09 -0700, itsnotvalid wrote:
>> Michal, your error looks nearly identical to the one I encounter with
>> admin interface. Except the byte offending is not the same.
>>
>> I guess there is something between the model class and database
>> adapter
Hi,
I'm having issues with the Unicode Branch and mod_python (the
development server ist working fine). That's what's comming from
mod_python:
Phase: 'PythonHandler'
Handler:'django.core.handlers.modpython'
Traceback (most recent call last):
File "/usr/lib/python2.4/sit
On Mon, 2007-05-28 at 02:09 -0700, itsnotvalid wrote:
> Michal, your error looks nearly identical to the one I encounter with
> admin interface. Except the byte offending is not the same.
>
> I guess there is something between the model class and database
> adapters which adds those strange bytes
Michal, your error looks nearly identical to the one I encounter with
admin interface. Except the byte offending is not the same.
I guess there is something between the model class and database
adapters which adds those strange bytes.
--~--~-~--~~~---~--~~
You re
On 5/28/07, flyaflya <[EMAIL PROTECTED]> wrote:
> I have a url, its length is 201.
I'm not trying to be mean here, but...
1. We have a public bug-tracking system for bug reports:
http://code.djangoproject.com/timeline
2. Please search the bug-tracking system before reporting an issue;
odds are i
I have a url, its length is 201.
--
http://www.flyaflya.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-users@googlegroups.com
To unsubscribe fro
Hello Malcolm,
I try to make tests on my application, but after update of unicode
branch (now I am synced to revision 5371), I am unable to do it due to
some errors:
[EMAIL PROTECTED] app $./manage.py test staticpages
Creating test database...
Creating table auth_message
Creating table auth_gro
I'm putting together an on-line bibliography system, and I'd like to
be able to associate with each item (book, article...) a list of
authors in the order in which they were listed in the original
publication. I'm guessing the best way to do this is with a many-to-
many relationship via an interme
63 matches
Mail list logo