On 1/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
i have installed both the following:
libevent-1.2-1 and memcached-1.1.13
rebooted apache2 and still get the same error...
any further ideas?
Install the Python memcached bindings. See the Memcached section here:
http://www.djangobo
i have installed both the following:
libevent-1.2-1 and memcached-1.1.13
rebooted apache2 and still get the same error...
any further ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group
On Jan 5, 2007, at 12:41 AM, [EMAIL PROTECTED] wrote:
InvalidCacheBackendError: Memcached cache backend requires the
'memcache' library
It sounds like you're trying to use memcached for caching.
what i have installed:
httpd-2.0.52
mod_python-3.1.3-5.1
postgresql-server-8.1.3-1.el4s1.2
pos
Yes, it seems like a dumb idea, but has anyone had any success getting
it to run?
~ do you have any pointers you can share?
i am getting the following error in my browser:
=
Mod_python error: "PythonHandler django.core.handlers.modpython
It would seem that something is happening between the authentication
middleware setting request.__class__.user and the context processor
reading it.
Couple things to try if you're in a debugging mood:
After line 11 in django/contrib/admin/middleware.py:
request.__class__.user = LazyUser()
+
Brian Beck wrote:
class Payment(models.Model):
...
class Custom:
def sortable_fields = ['amount', 'received_date']
That last line should of course just be:
sortable_fields = ['amount', 'received_date']
--~--~-~--~~~---~--~~
You received t
ringemup wrote:
Does that apply to the actual sorting of the data as well? It seems to
me that it's something most efficiently accomplished at the database
level.
If sorting will always be done by field in the model (and not some
complex combination, for example), and SQL orders it how you're
On 10/18/06, Tyson Tate <[EMAIL PROTECTED]> wrote:
...
I've got the following in settings.py:
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.auth",
)
MIDDLEWARE_CLASSES = (
'djan
I am trying to get your solution 1 to work for the case of multiple
instances of the same model. The forms looks good, but the problem is
that all fields have the same name (because the forms are generated
from the same model). Is there any way around that? Or do I have to
write a custom manipula
On Jan 4, 6:42 pm, "Jorge Gajon" <[EMAIL PROTECTED]> wrote:
On 1/4/07, stoKes <[EMAIL PROTECTED]> wrote:
> On Jan 4, 12:10 pm, "Jorge Gajon" <[EMAIL PROTECTED]> wrote:
> > Hi Adam,
> > On 1/3/07, stoKes <[EMAIL PROTECTED]> wrote:
> > > base.html
> > > {% showmenu %}
> > > {% f
On 05-Jan-07, at 8:42 AM, Brian Beck wrote:
* Database access. You can still use Python's much lower-level DB-API
to play with the database, and you can still make it look nice to use.
Check out the raw SQL query in this Custom Managers example:
http://www.djangoproject.com/documentation/model
A lot of time has been spent on making Django not-too-magical while
keeping the rapid development time. I've found that it rarely does too
much automatic stuff behind my back.
Just a couple examples of high-level stuff that isn't
too-high-for-your-own-good:
* Database access. You can still use
On 05-Jan-07, at 8:17 AM, Mojave wrote:
The only thing I'm concerned with is that the tutorials I've read
about
Django show it off as almost too easy and automatic. While I will
welcome the ability to quickly get a site up and running, I also like
to tinker. Is Django something that will giv
Adrian Holovaty wrote:
On 1/4/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
> FWIW, it amazes me sometimes that although Django can be made to work
> on mod_python that very few if any Django developers I have seen
> exhibit any real knowledge about how Apache/mod_python works. As a
> consequ
I'm looking to move away from my Perl cgi background and into something
more powerful, cleaner and standard. Django and Ruby on Rails both look
interesting.
The only thing I'm concerned with is that the tutorials I've read about
Django show it off as almost too easy and automatic. While I will
w
Hello,
When using the types ForeignKey or CharField (with the "choices" option)
in a model, I am finding that the resultant
form elements are truncating the display of default values. Does anyone
know of a simple way to avoid this?
Thanks,
CL
--~--~-~--~~~---~--
On 1/4/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
FWIW, it amazes me sometimes that although Django can be made to work
on mod_python that very few if any Django developers I have seen
exhibit any real knowledge about how Apache/mod_python works. As a
consequence I keep seeing incorrect sta
On 1/4/07, David Abrahams <[EMAIL PROTECTED]> wrote:
...
If I log into the server and run "top" while trying to access pages, I
don't see any alarming jumps in CPU load; the hungriest processes
typically stay in single-digit (or below) percentages of CPU usage, so
I doubt profiling is going to b
I am developing a Django-based site, and it *really* seems to be
slow... sometimes. It's running in an Apache virtual server on the
same machine as my static site. When things are good, the
Django-based site approaches the static site in speed, but when things
are bad, there's just no comparis
Adrian Holovaty wrote:
On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> here what I've got from my Apache2 error log:
>
> [Thu Jan 04 16:07:57 2007] [notice] mod_python: (Re)importing module
> 'django.core.handlers.modpython'
> [Thu Jan 04 16:08:06 2007] [notice] mod_python: (Re)importi
On 1/5/07, John DeRosa <[EMAIL PROTECTED]> wrote:
What's the proper/recommended/improper/not-recommended use of
models.LazyDate() in 0.95?
I'm working on a project that picked up its use in 0.91-based code.
There's a passing reference to it in the 0.90 docs, but nothing since
then. There are r
I solved this by sorting the tuple of tuples outside of the add/create
custom manipulators, then using that sorted list instead of
ColorAccount.COLORS:
col_list = list(ColorAccount.COLORS)
col_list.sort(lambda x, y: cmp(x[1], y[1]))
col_tuple = tuple(col_list)
And then:
forms.Selec
Hi Aljosa,
On 1/4/07, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote:
i'm trying to create a model which referencing itself and for this
code i get this error:
"name 'Chapter' is not defined"
how do i do this or something similar?
code:
>>>
from django.db import models
class Chapter(models.Mode
i'm trying to create a model which referencing itself
The documentation says :
To create a recursive relationship -- an object that has a many-to-one
relationship with itself -- use models.ForeignKey('self').
Chris
--~--~-~--~~~---~--~~
You received this me
On 1/4/07, stoKes <[EMAIL PROTECTED]> wrote:
On Jan 4, 12:10 pm, "Jorge Gajon" <[EMAIL PROTECTED]> wrote:
> Hi Adam,
>
> On 1/3/07, stoKes <[EMAIL PROTECTED]> wrote:
>
> > base.html
> > {% showmenu %}
> > {% for service in services %}
> > {{
> > service.name }}
> >
Hello,
This is a simplified example of what I'm trying to accomplish. In my
model I have the following objects and fields:
class ColorAccount(models.Model):
COLORS = (
(0, 'Red'),
(1, 'Orange'),
(2, 'Yellow'),
(3, 'Green'),
...
)
fav_color = mode
Hello,
This is a simplified example of what I'm trying to accomplish. In my
model I have the following objects and fields:
class ColorAccount(models.Model):
WINE_VARIETALS = (
(0, 'Red'),
(1, 'Orange'),
(2, 'Yellow'),
(3, 'Green'),
...
)
fav_colo
i'm trying to create a model which referencing itself and for this
code i get this error:
"name 'Chapter' is not defined"
how do i do this or something similar?
code:
from django.db import models
class Chapter(models.Model):
name = models.CharField(maxlength=200)
content = m
Now you're talking!!! Thanks for that, it's exactly what I was thinking.
Basically I am trying to make a system where you show a list of records,
allow the user to view the record, edit the record or add a new one.
Similar to the admin interface, but with only a view option, so in case your
a 'p
On 04/01/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
On 1/4/07, Felix Ingram <[EMAIL PROTECTED]> wrote:
> ScaffoldScript is dead; long live FormGen!
> Using this script: http://code.djangoproject.com/wiki/FormGenScript
> in this manner: python formGen.py -a MyApp -m Category
Hey Felix,
Have
google python workflow - http://www.google.com/search?q=python+workflow
--~--~-~--~~~---~--~~
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 un
On Jan 4, 2007, at 9:55 AM, Robin Becker wrote:
Is there a better way to handle this sort of thing using fastcgi or
scgi? Can we get all requests from a particular host to be handled
in only one group of processes. Our back end process doesn't
respond well to being threaded and it can tak
2007/1/4, mamcxyz <[EMAIL PROTECTED]>:
Any docs about how write a workflow engine then?
I'm really interested in this topic, I had to create a workflow too
and I haven't any experience about that. Here is what I need:
* a User can create Experiments
* a User can create Processes
Ok, simple
Tom,
We run a number of sites using lighttpd and django off one code base.
Yes, each site needs an entry in lighttpd.conf and each site has it's
own settings file. Obviously you can set settings to allow each
instance to have different templates or different installed apps.
http://bus.glam.ac.u
Honza Kr�l wrote:
Hi Ramdas,
the "Right Way (tm)" how to solve this using newforms is:
1) subclass Field to create a field representing (and validating) username:
class UserField( forms.Field ):
def clean( self, value ):
do what you must to verify username, throw validation error if you
ar
The HTML in the template is fairly easy to do:
{% if object %}
we have an object so we're updating
{% else %}
no object so we're inserting
{% endif %}
I'm not quite sure how you want to handle the viewing part though.
In the form HTML, just create your form as if you are doing an update:
{% if
On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I created a app with a pgsql database, the problem is that i often get
the error to many clients connected to the database. I configured the
database that 20 simaltanious connections can be made, still this error
pops up once in a while eve
Hello Django users,
I'm a newby in using django for developing applications and
experiencing some problems i hope some of you can assist me.
I created a app with a pgsql database, the problem is that i often get
the error to many clients connected to the database. I configured the
database that
Hello,
I would like to know how I could lock a table or field ? My idea is to
lock a table/s while one user is modifyng data until he confirms or
cancel the operation. And if other user access to same data, he access
in read-only mode.
I wouldn't like to use transactions to do this operation, I
What's the proper/recommended/improper/not-recommended use of
models.LazyDate() in 0.95?
I'm working on a project that picked up its use in 0.91-based code.
There's a passing reference to it in the 0.90 docs, but nothing since
then. There are references to it all over the web...
E.g.:
cla
On 1/4/07, Felix Ingram <[EMAIL PROTECTED]> wrote:
ScaffoldScript is dead; long live FormGen!
Using this script: http://code.djangoproject.com/wiki/FormGenScript
in this manner: python formGen.py -a MyApp -m Category
Hey Felix,
Have you seen django.newforms.form_for_model and form_for_field
ScaffoldScript is dead; long live FormGen!
Using this script: http://code.djangoproject.com/wiki/FormGenScript
in this manner: python formGen.py -a MyApp -m Category
will turn this model:
class Category(models.Model):
category = models.CharField(maxlength=50, unique=True)
createdOn = mo
On Jan 4, 12:10 pm, "Jorge Gajon" <[EMAIL PROTECTED]> wrote:
Hi Adam,
On 1/3/07, stoKes <[EMAIL PROTECTED]> wrote:
> base.html
> {% showmenu %}
> {% for service in services %}
> {{
> service.name }}
> {% endfor %}
> but receiving this error:
> Except
On Thu, Jan 04, 2007 at 07:59:10PM +0530, Ramdas S wrote:
I am trying to move a user registration form code inspired heavily from
http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration
to newforms from oldforms.
Does the newforms replace django.core.manipulators, if so how can I
Hi Ramdas,
the "Right Way (tm)" how to solve this using newforms is:
1) subclass Field to create a field representing (and validating) username:
class UserField( forms.Field ):
def clean( self, value ):
do what you must to verify username, throw validation error if you
are not satisfied with
Hi Adam,
On 1/3/07, stoKes <[EMAIL PROTECTED]> wrote:
base.html
{% showmenu %}
{% for service in services %}
{{
service.name }}
{% endfor %}
but receiving this error:
Exception Type: TemplateSyntaxError
Exception Value:Invalid block tag:
ringemup schreef:
Julio's hit it on the nose. Not ot mention that Firefox actually has a
hidden setting for that too, and some proxies (including AOL's) also
block referrers. You might be best off explicitly passing the URL of
the current page as a parameter.
I still find it strange that o
Any docs about how write a workflow engine then?
--~--~-~--~~~---~--~~
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 gro
I'm unsure if this is a simple to answer issue or not. We've been using django
simply for a while and are now starting to use it in a more production like
setting. Since apache is our preferred server we tried using a single apache
server with mod_python in virtual hosts. Each virtual host had
I am trying to move a user registration form code inspired heavily from
http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration
to newforms from oldforms.
Does the newforms replace django.core.manipulators, if so how can I use it?
To save data using a form, how else can I use the n
I'm having trouble on deciding where to start with this problem. I
only have one port to use on TextDrive.
I have .co.uk site running using Django (under FastCGI). I want to
duplicate the site and change the content for the .com US version,
making modifications to the model/code/template
Julio's hit it on the nose. Not ot mention that Firefox actually has a
hidden setting for that too, and some proxies (including AOL's) also
block referrers. You might be best off explicitly passing the URL of
the current page as a parameter.
--~--~-~--~~~---~--~---
Hi!
I'm just a beginner with django but I miss this functionality too.
I will be glad if django loops could unpack the values of the list.
Regards,
Michel Thadeu Sabchuk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
Hi!
I'm just a beginner with django but I miss this functionality too.
I will be glad if django loops could unpack the values of the list.
Regards,
Michel Thadeu Sabchuk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
On 1/4/07, Benedict Verheyen <[EMAIL PROTECTED]> wrote:
Hi,
This is what goes wrong in explorer: the HTTP_REFERER isn't set.
With Firefox, the HTTP_REFERER is set.
Any idea how i can solve this?
I had this problem with a client that was running Norton and
somewhere in the program preferenc
While working on a complex form using 'newforms' I had some problem
with 'initial' data.
I have multiple forms using the 'prefix' argument to get different
keys for them.
As far as I know (*please* correct me if I am wrong) the only way to
set initial data dynamically is to create the fie
Hi,
I have a table where i want the users to be able to edit
cells by clicking on them. Then they get the usual edit view
and after the changes are saved, they are redirected back
to the table view.
I use this in my template:
It works for Firefox but unfortunately we use Explorer here
and E
Have you read http://www.djangobook.com/en/beta/chapter12/ ?
--~--~-~--~~~---~--~~
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 f
Have you read http://www.djangobook.com/en/beta/chapter12/ ?
--~--~-~--~~~---~--~~
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 f
59 matches
Mail list logo