On 8/11/06, a <[EMAIL PROTECTED]> wrote:
>
> dont know perl...
OK.
--~--~-~--~~~---~--~~
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 unsubscr
On 8/12/06, a <[EMAIL PROTECTED]> wrote:
>
> dont know perl...
You don't need to know Perl to run memcached. You just install it and
use the Python bindings.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
First I must admit that I'm a databse dummy. I'm using fairly recent
django code from svn. I have a simple desire. I want people who can
be organized into committees, with each committee having a committee
leader, also a person. I wrote up my models like so:
class Person( models.Model ):
dont know perl...
Jeremy Dunck wrote:
> What do you consider equivalent?
>
>
> On 8/11/06, a <[EMAIL PROTECTED]> wrote:
> >
> > is there a memcached equivalent in python
> >
> > thanks
> >
--~--~-~--~~~---~--~~
You received this message because you are subscribed
And just to note, I tried doing compression with PIL in my model's
save() method. The problem is that files aren't written to disk until
*after* the save() method is complete.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Anybody have any code lying around to automatically compress JPEGs
that are uploaded in the Admin via a FileField/ImageField? Many of my
users aren't in a position to know how to compress images themselves,
and our site certainly doesn't need full quality JPEGs.
Jay P.
--~--~-~--~~-
On Fri, 2006-08-11 at 19:25 -0700, [EMAIL PROTECTED] wrote:
> Ah ok. I'll svn update to the current version, and if that doesn't work
> use my workaround.
The stuff I'm working on isn't in svn yet. So that won't help you,
unfortunately. :-(
Regards,
Malcolm
--~--~-~--~~
This looks like the same bug I filed in
http://code.djangoproject.com/ticket/2389.
On 12/08/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
> On 8/11/06, Corey Oordt <[EMAIL PROTECTED]> wrote:
> >
> > I'll be happy to. I did put in a track item for this (although I can't
> > remember what the numbe
Ah ok. I'll svn update to the current version, and if that doesn't work
use my workaround.
I was kind of hoping it was my mistake and that I was going to learn
something new about Django, but if you really want to be wrong I won't
stop you.
--~--~-~--~~~---~--~~
Y
Hi,
for the open mesh network app i'm writing, I needed a way for creating a
topology overlay in google maps. Using polygons was simply to slow, so I
decided to render my own tiles. I use matplotlib + basemap for
generating the tiles on demand. On my lokal machine that works nice, but
on the tota
Hi David,
On Fri, 2006-08-11 at 13:02 -0700, [EMAIL PROTECTED] wrote:
> "User.objects.filter(groups__name='staff')" returns every user if group
> 'staff' exists, and no users if it doesn't, whereas the following does
> what I expect - it returns onlu those users that are in the 'staff'
> group:
>
On Fri, 2006-08-11 at 13:59 +, DavidA wrote:
>
> Hancock, David (DHANCOCK) wrote:
> > So, I¹d appreciate any pointers to documentation, code, etc. to let me log
> > queries to a file.
>
> David,
>
> While not exactly what you want, I wrote a simple middleware class to
> track page-generatio
On Fri, 2006-08-11 at 07:04 -0700, PythonistL wrote:
> Malcom,
> Thanks a lot for help
> So, to sum up
>
> type ofresolve_variable(EndTime, context)-datetime.datetime.now()
> is 'datetime.timedelta'
> type of resolve_variable(EndTime, context) is 'datetime.datetime'
> type ofdatetime.
The indention is right. I figured out the issue but still have the
problem. It is the for loop around levels and the for loop around
content area. Can a for loop be within another for loop. I would
think so but I have never done it before.
--~--~-~--~~~---~--~
Hi Dirktryhttp://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/middleware/SafePost.py(it uses stripogram)It doesn't remove all the exploits to be sure, but it raises the bar a bit.regardsIan.On 12/08/2006, at 8:06 AM, Bryan Chow wrote:What exactly are you trying to achieve with Strip-o-Gram
( still in beta yada yada yada ) <- that'd be the diatribe on the django site. so even though psycopg is stable it still officially isn't supported by the django developers. so anybody using it still has to eat their own pie.. h pie, I like pie.
VanceOn 8/11/06, Laurent Rahuel <[EMAIL PR
What exactly are you trying to achieve with Strip-o-Gram?
Have you considered using Django's built-in STRIPTAGS or REMOVETAGS
filters instead?
http://www.djangoproject.com/documentation/templates/#removetags
Bryan
On 8/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I though
Hi Olivier,
What is the error message?
You're missing a % in line 9.
Bryan.
On 8/11/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I just tried two loops "for" imbricated, it does'nt seems to work. It
> gives an error at the second "endfor" when we use "forloop.first"
> between the two.
>
On 8/11/06, Seth Buntin <[EMAIL PROTECTED]> wrote:
> In template W:/DjangoAppz/kate/templates/tick/base_search.html, error
> at line 4
> Caught an exception while rendering: iteration over non-sequence
...
> Any ideas? It might be simple this is my first try at views.
What is the value of result
On 11 Aug 2006, at 20:05, Michal wrote:
>
> Hello,
> I was trying to include some of the menu templates according to
> flatpage.url variable (I have several local menu templates):
>
> {% include flatpage.url|menu %}
>
> But this doesn't work. It seems to me, that flatpage.url|menu isn't
> evaluat
Le mercredi 9 août 2006 19:42, Vance Dubberly a écrit :
>
> Warning psycopg2 is not supported by django. ( still in beta yada
> yada yada ). Unless you're willing to eat your own pie when things go
> awry, don't use it.
>
Snip,
Fromhttp://initd.org/projects/psycopg2, you can read :
"""
psycop
Another option, if you are using PostgreSQL or other db that supports
VIEW's, is to store your queries as db VIEWs and then write Django
models that reference those views. Then you still get the yummy
goodness of using the django dbapi to access the "objects" returned by
your messy query/VIEW
a wrote:
> is there a memcached equivalent in python
If your server is running memcached it can be accessed from other
programs including those written in Python. Is this what you mean? If
yes, you need a Python library for accessing memcached:
ftp://ftp.tummy.com/pub/python-memcached/
Also t
I just tried two loops "for" imbricated, it does'nt seems to work. It
gives an error at the second "endfor" when we use "forloop.first"
between the two.
But Django is as brillant as the music of Django! Thank's a lot.
Here is the the code:
{% for ligne in tableau %}
{% if forloop.first %}
{% for
What do you consider equivalent?
On 8/11/06, a <[EMAIL PROTECTED]> wrote:
>
> is there a memcached equivalent in python
>
> thanks
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
is there a memcached equivalent in python
thanks
--~--~-~--~~~---~--~~
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
"User.objects.filter(groups__name='staff')" returns every user if group
'staff' exists, and no users if it doesn't, whereas the following does
what I expect - it returns onlu those users that are in the 'staff'
group:
s = Group.objects.get(name='staff')
User.objects.filter(groups=s)
Why doesn't "
Hi All,
I thought about the usage of Chris Withers stripogram [1] as a filter in
middleware or filter in the templatetag, but then I read that stripogram isn't
aware of some kind of exploits.
Has anybody integrated stripogram into django ?
Which security riscs should I remember if I do such th
One idea is to create a package that would contain files of your
queries.
Each file could just be have an assignment : QUERY = """ """
You could then import them, like : from queries import update_this
and access it by update_this.QUERY
Corey
On Aug 11, 2006, at 3:05 PM, Maciej Bliziński w
Here is my view:
def search(request):
results =
Resource.objects.filter(title__icontains=request.POST['keyword'],
description__icontains=request.POST['keyword'])
keyword = request.POST['keyword']
return render_to_response('tick/base_search.html', {'results':
results, 'keyword': key
Hello,
I was trying to include some of the menu templates according to
flatpage.url variable (I have several local menu templates):
{% include flatpage.url|menu %}
But this doesn't work. It seems to me, that flatpage.url|menu isn't
evaluated, because find_template_source from django/template/l
Hello Djangoers,
I've got to write a set of large SQL queries. I'd like to avoid putting
the whole pages of the SQL into the Python code. I'd like to store the
queries as separate files and load them when needed.
How to do in a Django way? Create something similar to template
directory? What wou
> 1. get djang-scgi.py from here:
> https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/file/stuff/trunk/bin/django-scgi.py
and here's little problem.. :) this link isn't working now and I would
like to play around with cherokee and scgi.
Could somebody send me django-scgi script?? :)
--~--
Hello Adrian,
thank you for the link to documentation. I was missing __init__.py in my
templatetags directory.
Have a nice day
Michal
Adrian Holovaty wrote:
> On 8/11/06, Michal <[EMAIL PROTECTED]> wrote:
>> Hello,
>> I would like use my custom filter function inside Flatpage template. How
>> c
On 8/11/06, Corey Oordt <[EMAIL PROTECTED]> wrote:
>
> I'll be happy to. I did put in a track item for this (although I can't
> remember what the number is).
http://code.djangoproject.com/ticket/2520
--~--~-~--~~~---~--~~
You received this message because you are
I'll be happy to. I did put in a track item for this (although I can't remember what the number is).I'm using PostgreSQL 8.1The models are at: http://paste.e-scribe.com/1125/This is actually a combination of two related errors: One that leads to a searching error (?e=1) and another that leads to a
On 8/11/06, Deryck Hodge <[EMAIL PROTECTED]> wrote:
> Anyone planning to attend LinuxWorld next week? I'll be there doing a
> tutorial on Monday, but I have free time Monday night and Tuesday
> night. I don't mind trying to get an informal Django meetup going.
> If by chance there's particular i
Many people come to Django without having knowledge of Python before,
and that's perfectly fine!, but you must be aware that it is DOUBLE
hard, and you must double your efforts to learn Django and Python
alongside.
My recommendation (and Malcolm also said it) is that you first get to
know Python
Hi.
Anyone planning to attend LinuxWorld next week? I'll be there doing a
tutorial on Monday, but I have free time Monday night and Tuesday
night. I don't mind trying to get an informal Django meetup going.
If by chance there's particular interest, I could help schedule a BOF,
assuming there is
On Aug 11, 2006, at 5:59 AM, Aidas Bendoraitis wrote:
>
> As far as I undersand, API KEY is not something like ID, it's more
> like a password for user's website URL, so it does not necessary have
> to be unique.
>
> For example, when you register an account for GMaps, you get an API
> KEY for a s
On 8/11/06, Michal <[EMAIL PROTECTED]> wrote:
> Hello,
> I would like use my custom filter function inside Flatpage template. How
> could I do this?
>
> If I try to load my custom tags model ({% load cust_template_tags %}) I
> get this error:
Hi Michal,
A flatpage template is no different from a
On 8/9/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > 3 - Why was the trailing 's' taken off of the table named "Entries" to
> > generate the class Entrie?
>
> Inspectdb is trying to follow Django's normal pattern, but it chose
> poorly. We suggest that model names be singular (since they r
Hello,
I would like use my custom filter function inside Flatpage template. How
could I do this?
If I try to load my custom tags model ({% load cust_template_tags %}) I
get this error:
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/django/core/servers/baseh
On 8/10/06, Corey <[EMAIL PROTECTED]> wrote:
> I have a model with several foreign keys. Currently when I do a search,
> it returns everything. The query string shows ?e=1.
>
> The search_fields is set to a local field and a foreign key.
>
> If a remove the foreign key from the search fields, I ge
And here is the tag
from django.core.template import Library, Node,resolve_variable
from django.core import template
import datetime
register = Library()
class TimedifNode(Node):
def __init__(self, EndTime):
self.EndTime = EndTime
def render(self, context):
Difference=re
Hi,
On 8/11/06, Corey Oordt <[EMAIL PROTECTED]> wrote:
>
> David,
>
>
> Not sure if this helps, but the only way I found (using postgresql) was to
> turn on query logging in postgresql. Then you truly see everything that is
> passed to the database.
>
> I'm not familiar with Oracle at all, but I'
Malcom,
Thanks a lot for help
So, to sum up
type ofresolve_variable(EndTime, context)-datetime.datetime.now()
is 'datetime.timedelta'
type of resolve_variable(EndTime, context) is 'datetime.datetime'
type ofdatetime.datetime.now() is 'datetime.datetime'
and
value ofresolve_varia
Hancock, David (DHANCOCK) wrote:
> So, I¹d appreciate any pointers to documentation, code, etc. to let me log
> queries to a file.
David,
While not exactly what you want, I wrote a simple middleware class to
track page-generation stats when calling a view. In it, I count the
number of queries a
Malcolm Tredinnick wrote:
> On Fri, 2006-08-11 at 05:59 -0700, Tomas Jacobsen wrote:
> > > Is there an easy way to just drop the 'category_slug' the detail_view,
> > > or is it another/better way to do this?
> >
> > I missed a 'in' there:" just drop the 'category_slug' in* the
> > detail_view "
>
On 8/11/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote:
>
> On 8/11/06, Felix Ingram <[EMAIL PROTECTED]> wrote:
> >
> > On 8/10/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote:
> > > On 8/10/06, Felix Ingram <[EMAIL PROTECTED]> wrote:
> > > > On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote:
> > > >
On Fri, 2006-08-11 at 21:56 +1000, Malcolm Tredinnick wrote:
> In fact, despite you giving me all this extra information (thanks!), now
> that I'm concentrating, it's actually a little bit clearer what the
> problem is. The order_by(...) clause is a little inconsistent with the
> other query co
Felix Ingram wrote:
> Well that's true but 128 bits still gives you 3 x 10^38 possible
> strings, so you could probably give everyone on the planet a key an
> still not have a collision.
Understatement of the week! The human population is currently about
6.5x10^9. You could give every teaspoon
David,Not sure if this helps, but the only way I found (using postgresql) was to turn on query logging in postgresql. Then you truly see everything that is passed to the database.I'm not familiar with Oracle at all, but I'm sure it has a way to do that.Corey OordtOn Aug 11, 2006, at 8:38 AM, Hancoc
On 8/11/06, Hancock, David (DHANCOCK) <[EMAIL PROTECTED]> wrote:
>
> To get to the next step with the Oracle patch, I'd really like to learn
> what to change to force ALL queries to be logged.
I think I read a message on this group about a middleware that does
this (the guy was selling it chea
On Fri, 2006-08-11 at 05:59 -0700, Tomas Jacobsen wrote:
> > Is there an easy way to just drop the 'category_slug' the detail_view,
> > or is it another/better way to do this?
>
> I missed a 'in' there:" just drop the 'category_slug' in* the
> detail_view "
>
> Anyways, it seems like you got the
On Fri, 2006-08-11 at 05:40 -0700, PythonistL wrote:
> Hello Malcom,
> Thank you for your reply.
> The value of resolve_variable(EndTime, context) is
> 2006-08-10 12:56:00
No, that isn't necessarily it's value. That's what happens when you
convert it to a string (which could be quite different fr
On Fri, 2006-08-11 at 08:38 -0400, Hancock, David (DHANCOCK) wrote:
> I haven’t completely given up on getting Oracle and Django working
> together, but I did revert to 0.95 and installed MySQL, which are
> meeting my needs.
>
> To get to the next step with the Oracle patch, I’d really like to
>
Hello Malcom,
Thank you for your reply.
The value of resolve_variable(EndTime, context) is
2006-08-10 12:56:00
but how can I find out the type in template tag?
When I try something like this
context['Type']=type(resolve_variable(self.EndTime, context))
im my tag
and in template I use {{Type}} i
Title: How to log ALL queries
I haven’t completely given up on getting Oracle and Django working together, but I did revert to 0.95 and installed MySQL, which are meeting my needs.
To get to the next step with the Oracle patch, I’d really like to learn what to change to force ALL queries to be
As far as I undersand, API KEY is not something like ID, it's more
like a password for user's website URL, so it does not necessary have
to be unique.
For example, when you register an account for GMaps, you get an API
KEY for a specific URI.
Aidas Bendoraitis [aka Archatas]
On 8/11/06, Felix I
> Is there an easy way to just drop the 'category_slug' the detail_view,
> or is it another/better way to do this?
I missed a 'in' there:" just drop the 'category_slug' in* the
detail_view "
Anyways, it seems like you got the idea.
Im trying to modify the view you wrote for me for the category
On 8/11/06, Felix Ingram <[EMAIL PROTECTED]> wrote:
>
> On 8/10/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote:
> > On 8/10/06, Felix Ingram <[EMAIL PROTECTED]> wrote:
> > > On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote:
> > > > Nowadays(is that a word?) a lot of fancy web services use API keys t
On Fri, 2006-08-11 at 04:47 -0700, Tomas Jacobsen wrote:
> Yes, I was missing the last slash. Now I get the detail page, but now I
> get the real problem I thought I had at first for this page. Because I
> use the category_slug in my url for the detail page, I don't think I
> can use generic view
What about creating a new user, one that all anonymous users can use
to log in? You could customize the admin login page to say something
like:
"To log in anonymously, use the username/password anon/anon"
Then all you have to do is create an "anon" user, and assign it
whatever priviledges you re
On Fri, 2006-08-11 at 04:48 -0700, Bjørn Stabell wrote:
> Hi,
>
> Is there any way to add fields to the django admin list view so that
> they are:
>
> * displayed
> * sortable
> * filterable
>
> I know it's possible to create custom methods on the model that you can
> have displayed in the l
On Fri, 2006-08-11 at 04:43 -0700, PythonistL wrote:
> Im my template tag I use something like this
>
>
> if resolve_variable(EndTime, context)>datetime.datetime.now():
> ...
> ...
> ...
> where in a table
> EndTime is 2006-08-10 12:56:00
> and say datetime.datetime.now() is about
> datetime.da
Hi Nick,
On Fri, 2006-08-11 at 20:33 +0930, Nick Lane wrote:
[...]
> Okay, basically I want the photos with the highest rating for the album.
> I've messed around with a few ways of doing it, but at the moment I have
> something like:
>
> models.py:
>
> class AlbumPhotoManager(models.Manager):
Hi Jussi,
On Fri, 2006-08-11 at 04:37 -0700, jarpis wrote:
[...]
> Problem is, AnonymousUser seems to be a special case and I can't figure
> out how to give permissions to it.
You can't. An AnonymousUser object is not a real user and only exists
for users that do not exist within the system. Th
Hi,
Is there any way to add fields to the django admin list view so that
they are:
* displayed
* sortable
* filterable
I know it's possible to create custom methods on the model that you can
have displayed in the list view, but I haven't found any way to make
them sortable or filterable.
I
Im my template tag I use something like this
if resolve_variable(EndTime, context)>datetime.datetime.now():
...
...
...
where in a table
EndTime is 2006-08-10 12:56:00
and say datetime.datetime.now() is about
datetime.datetime(2006, 8, 11, 13, 35, 14, 312000)
from that said above, should be
r
Hi.
I'm trying to allow admin generated pages for unauthenticated
(anonymous) users. This is for intranet app and I'd only need to open
some models. I'm using 0.95 release version and development server.
Problem is, AnonymousUser seems to be a special case and I can't figure
out how to give perm
Yes, I was missing the last slash. Now I get the detail page, but now I
get the real problem I thought I had at first for this page. Because I
use the category_slug in my url for the detail page, I don't think I
can use generic view for this page?
Don't I need a "custom" view that get the 'catego
On 8/11/06, Antonio Cavedoni <[EMAIL PROTECTED]> wrote:
> Fair enough, but if the field is invisible, how does one specifies
> said ordering? For example, if I have a list of 5 items, and I
> suddenly decide that item 4 should be on top of the list, how do I
> move it up?
I think, since you're ba
> > class Photo(models.Model):
> > title = models.CharField(maxlength=50)
> > rating = models.PositiveIntegerField(default=0)
> >
> > class Album(models.Model):
> > title = models.CharField(maxlength=50)
> > pub_date = models.DateField()
> >
> > class AlbumPhoto(models.Model):
>
Malcolm Tredinnick wrote:
> On Fri, 2006-08-11 at 10:50 +0200, Mario Graziosi wrote:
>
>> I have a tough problem representing my data model
>> with Django when using the standard Admin Interface.
>>
>> I need to represent the concept of a callgroup: a list
>> of items (either persons or, again,
On 8/11/06, Jay Klehr <[EMAIL PROTECTED]> wrote:
> Felix Ingram wrote:
> > On 8/10/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> >> Just username+randomstring is good.
> >> SHA better than md5.
> >>
> > Choice of hashing algorithm means nothing here. The only thing about
> > SHA is that you'll get
On Fri, 2006-08-11 at 02:42 -0700, Tomas Jacobsen wrote:
>
> Malcolm Tredinnick wrote:
> > On Fri, 2006-08-11 at 02:12 -0700, Tomas Jacobsen wrote:
> > > Malcolm Tredinnick wrote:
> > >
> > > The command line your talking about, is it the shell?
> >
> > Yes.
> >
> > > I've tried python manage.py
On 11 Aug 2006, at 11:13, Ivan Sagalaev wrote:
> This option creates an invisible field "_order" for manually
> specifying the order of child records of a single given parent
> record. This is mostly visible in Admin where child records with
> "edit_inline" appear in the same order that the
Malcolm Tredinnick wrote:
> On Fri, 2006-08-11 at 02:12 -0700, Tomas Jacobsen wrote:
> > Malcolm Tredinnick wrote:
> >
> > The command line your talking about, is it the shell?
>
> Yes.
>
> > I've tried python manage.py shell and the code you wrote. But nothing
> > happends when I type them in. N
On Fri, 2006-08-11 at 10:50 +0200, Mario Graziosi wrote:
> I have a tough problem representing my data model
> with Django when using the standard Admin Interface.
>
> I need to represent the concept of a callgroup: a list
> of items (either persons or, again, callgroups) to
> which phone calls s
gabor wrote:
> i've read the documentation, i checked the group-archives,
> but still... i just cannot understand what that setting does.
>
> could someone explain it to me?
I remember me asking the same question some time ago :-)
This option creates an invisible field "_order" for manually spe
On Fri, 2006-08-11 at 02:12 -0700, Tomas Jacobsen wrote:
> Malcolm Tredinnick wrote:
>
> > Since the first part of the URL mapping tuple is a Python regular
> > expression, you can experiment at the command line. Import the "re"
> > module and use the regular expression you are trying to get work
Malcolm Tredinnick wrote:
> Since the first part of the URL mapping tuple is a Python regular
> expression, you can experiment at the command line. Import the "re"
> module and use the regular expression you are trying to get working to
> match against the sorts of URLs you are going to be sendin
I have a tough problem representing my data model
with Django when using the standard Admin Interface.
I need to represent the concept of a callgroup: a list
of items (either persons or, again, callgroups) to
which phone calls should be dispatched in a given sequence.
The model is illustrated at
Felix Ingram wrote:
> On 8/10/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
>> Just username+randomstring is good.
>> SHA better than md5.
>>
>
> Choice of hashing algorithm means nothing here. The only thing about
> SHA is that you'll get a longer string (160 bit rather than 128).
>
> If
Earn $3252 Weekly Send Emails
Get paid to stay at home Answering Emails
Make $25.00 Per Email Guaranteed. Incredible Work at home
Opportunity. Start making money today!
http://manhar.moneytime0.hop.clickbank.net
--~--~-~--~~~---~--~~
You received this message
86 matches
Mail list logo