> tags = Tag.objects.all()
>
> for t in tags:
> indexed_tags[t] = Post.objects.filter(tags__name=t).count()
>
> Next I would sort indexed_tags and I have a dictionary of which tags are used
> the most.
>
> I'm wondering if this is a good idea ? Since if I have 1000 tags this would
> require 10
I need to implement some functionality, and I'm wondering if any of
you know of an app component that does this (so hopefully I don't have
to). I want to have versioning on a text field similar to the way
WordPress lets you save drafts and multiple revisions.
I've checked out Django fullhistory,
Hi,
I had a lot of problems, too. In the google groups settings google blamed me,
that the mail-server
I was using is bouncing... - well - I used google mail...
Now I switched in the settings to a private mail account and most of all works
fine now. Still not
everything all the time...
@Karen:
Hi folks,
I introduced Django at work not very long ago and the uptake has been good.
We are seeing early results working with the framework (somebody who never
previously used Python or Django has managed to build a web app well within
proposed time frames).
We will be going live in a while, and
On Aug 31, 2010, at 10:13 AM, Sithembewena Lloyd Dube wrote:
> We will be going live in a while, and we need hosting. I have a host in mind,
> but I wanted to know what others think? In your view, which host provides
> good Django support and decent performance?
http://djangofriendly.co
Ah, thanks Federico :)
On Tue, Aug 31, 2010 at 10:15 AM, Federico Maggi
wrote:
> On Aug 31, 2010, at 10:13 AM, Sithembewena Lloyd Dube wrote:
>
> > We will be going live in a while, and we need hosting. I have a host in
> mind, but I wanted to know what others think? In your view, which host
> pr
Looks like my proposed host is at the top there by a wide
margin
On Tue, Aug 31, 2010 at 10:17 AM, Sithembewena Lloyd Dube wrote:
> Ah, thanks Federico :)
>
>
> On Tue, Aug 31, 2010 at 10:15 AM, Federico Maggi > wrote:
>
>> On Aug 31, 2010, at 10:13 AM, Sithembewena Lloyd Dube wrote:
>>
>> >
On Tue, 2010-08-31 at 10:13 +0200, Sithembewena Lloyd Dube wrote:
> We will be going live in a while, and we need hosting. I have a host
> in
> mind, but I wanted to know what others think? In your view, which host
> provides good Django support and decent performance?
low cost small site - webfa
To integrate a calculated value with search features from admin app, I
don't know any other way than create and save a calculated field on
your model ...
This calculated field, you can calculate it with cube ... but if you
don't use the Cube for any other statistic than that, it is too much
overhea
Hi thanks for quick response.
I was thinking more about real custom attributes. Be able to define a
string, or choice filed from admin. And after all create query and/or
render form on it.
Application that we are working at requires different attributes on
objects from client to client.
We were lo
Thanks Kenneth, interesting summary. We would likely start off with WF as
our needs at this point should be covered by their hosting.
On Tue, Aug 31, 2010 at 10:25 AM, Kenneth Gonsalves wrote:
> On Tue, 2010-08-31 at 10:13 +0200, Sithembewena Lloyd Dube wrote:
> > We will be going live in a while
I use a Linode with Ubuntu serving django with a uwsgi/cherokee setup.
Its remarkable how easy and intuitive it is and its hardly bank
breaking at £10 a month.
You cant beat the flexibility that you get.
The only complaint I've got is the compatiblity issues with Django 1.1
and Cms. Its caused me c
On 31 août, 06:16, reduxdj wrote:
> So, I'm still newer to django. I have user registration,
> authentication, imagefields, filters, and more all built into my
> application and working. So now, I need a user to be able to edit his
> own email and upload an image to the user_profile. First, I am u
Also the Linode support team are amazing, I have been left nothing but
impressed by them.
On Aug 31, 10:25 am, Robbington wrote:
> I use a Linode with Ubuntu serving django with a uwsgi/cherokee setup.
> Its remarkable how easy and intuitive it is and its hardly bank
> breaking at £10 a month.
>
hi,
there was a recent thread on this subject, and I had an idea that this
may be a good way to give a basic instruction in the way django works to
people who come from radically different backgrounds:
http://lawgon.livejournal.com/80621.html
--
regards
Kenneth Gonsalves
--
You received this m
I want to add a column to the logentry model in admin section.How
can I do this?
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-us...@googlegroups.com.
To unsubscribe from this group, send em
On Tue, Aug 31, 2010 at 2:45 AM, Henrik Genssen wrote:
> @Karen:
> is there a view in the admin section, where you can filter posts that were
> never answered?
> And if: can it be made public? There are a lot of peaple who might want to
> help - (see stackoverflow
> or cempetitors...) but if one d
Hi all! I'm working to create my CMS on Django, I would like to
realize a easy admin page for my flat pages that in Django-CMS is
called "site map". How I can do that? Are there any tutorial or how to
about that? Have you any advice?
Thanks!
The site map in Django-CMS:
http://www.django-cms.org/m
On Tue, Aug 31, 2010 at 3:14 AM, Elim Qiu wrote:
> I'm in tutorial 2. Looks like I did something wrong. Please help. thanks
> See the image attached
>
The image looks fine to me. What do you see that you think is wrong?
Karen
--
http://tracey.org/kmt/
--
You received this message because you
Thanks for your advise. I'm short of time right now so I briefly looked at
django's aggregation possibilities.
I'll look into them more deeply tonight.
But I stumbled upon a problem.
Post.objects.values('tags')
Gives me:
FieldError: Invalid field name: 'tags'
In [56]: Post.tags
Post.tags
I
Hi,
I seem to be having a problem setting up django and postgresql.
I have created a database and switched users to postgres then sync'd
the database successfully in my django project directory. But it isn't
finding the admin page still. No errors, just cant find them.
Can any one help with Pos
Hi,
I am working on a chat application in Django, how can I ensure that I
do not have to poll the server for any chat data.
Possible approaches that I've been to:
1. BAD - use polling.
2. Use long polling - bad approach afa browser support is concerned.
3. Using sockets in flash - makes t
On Tue, 2010-08-31 at 04:30 -0700, Robbington wrote:
> Hi,
>
> I seem to be having a problem setting up django and postgresql.
>
> I have created a database and switched users to postgres then sync'd
> the database successfully in my django project directory. But it isn't
> finding the admin page
Hi,
I am working on a chat application in Django, how can I ensure that I
do not have to poll the server for any chat data.
Possible approaches that I've been to:
1. BAD - use polling.
2. Use long polling - bad approach afa browser support is concerned.
3. Using sockets in flash - makes t
Also, what kind of users are you speaking about ? system, database or django
users ?
Do you have the admin site available in the urls ? Did you uncomment both the
url and the auto discovering part ?
Did syncdb showed django_admin_log table being created (or can you check it has
been created) ?
Apologies I should have been more clear,
'It' refers to my domain name when visited "/admin"
All the django settings are correct, I've used sqlite3 and got the
admin up and working.
So I have installed postgres, pyscopg2.
su postgres
created a database
updated my settings.py:
DATABASES = {
'
Pretty sure fb uses Erlang for chat.
On Aug 31, 2010 7:34 AM, "Shamail Tayyab" wrote:
> Hi,
>
> I am working on a chat application in Django, how can I ensure that I
> do not have to poll the server for any chat data.
>
> Possible approaches that I've been to:
>
> 1. BAD - use polling.
>
> 2. Use
I've seen this project: http://code.google.com/p/django-chat/ but I don't
test it... perhaps the code can helps you.
What about use a free protocol as XMPP (jabber) and write a "client" for
django?
On Tue, Aug 31, 2010 at 14:08, Jeff Bell wrote:
> Pretty sure fb uses Erlang for chat.
>
> On Aug
I just feel kind of redundant to have the same text in and above the
textfields. And also the odd table layout that makes choice fields and
votes' fields so apart; and doubt if I did something wrong.
At the moment, I only care about following the tutorial correctly. If you
think it looks fine, the
Thanks Owen but is doesn't work. The similar Error message:
contribute_to_class
if self.meta:
AttributeError: 'Options' object has no attribute 'meta'
On Aug 30, 8:03 pm, Owen Nelson wrote:
> Sorry to be guessing here, but I was looking at something similar recently.
> My attempt (untested a
I'll look into this. I have no idea what you mean by 'ajax' or 'json'.
Thus your code doe'snt really make sense given my lack of knowlege. I
will do some googling to see if I can piece it together. Thanks for
the help!
On Mon, Aug 30, 2010 at 10:37 PM, Rolando Espinoza La Fuente
wrote:
> On Mon,
Hi,
Actually, there is a confusion between the administrative data django fills and
the data the admin application owns itself.
Unless I'm mistaken, Django admin application only creates 1 table I named in
my previous message (django_admin_log).
Can you check this table has been created ?
If it
Hello everyone...
Ive been having the following problem in my satchmo shop, when
registering a new account, the template welcome.txt is not loading the
variable 'company_name' --> debug info : http://dpaste.com/236858/
Besides that there are two things that I want to do... One is to
reverse the
Webfaction +2
http://www.webfaction.com/demos/django
Regards
Juande
We will be going live in a while, and we need hosting. I have a host
in mind, but I wanted to know what others think? In your view, which
host provides good Django support and decent performance?
--
You received this messa
Funny you should ask --
The basic challenge with any chat application is the long polling bit,
django by default isn't really designed to handle that. Other servers
(Tornado, etc.) are much better at handling the long polling cycle that
typical web chat applications require.
I was just fin
The meta class instance is accessed through ClassName._meta -- not
ClassName.meta
I tried this when I got back last night and had (other) issues myself, so
this might not be the right approach anyway.
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
Try to modify the flatpages source! You can find it directly in your
django installation.
--
Karim Gojux
www.karimblog.net
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To
On Tue, Aug 31, 2010 at 14:11, Karim Gorjux wrote:
> I would like to
> realize a easy admin page for my flat pages that in Django-CMS is
> called "site map".
I found what I need. Is here: http://code.google.com/p/django-mptt/
--
Karim Gojux
www.karimblog.net
--
You received this message becau
Actually, I would *avoid* modifying the flatpages source, but that does
raise a good point -- look at the source and copy/paste the Meta defined
inside the class, making the overrides you need in your subclass (redefine
the Meta).
You'll have to watch for changes if/when you switch django versions,
Howdy!
I have been working with Django/Pinax on a 10.6.4 system with python
2.6.6 and have had no luck getting PIL to work. I have looked through
about 10-15 paged including ones listed on this group with no results.
Currently the error I am getting is:
The _imaging C module is not installed
I ha
This sounds more like libjpeg isn't on the library load path, a
system, rather than python, setting.
I haven't done this with a Mac, but PIL has been troublesome on *nix
servers for us as well.
The common problems for us don't sound like your problem. [Some
versions of PIL install as "Imaging" r
To work with PIL and other librairies a little bit weird and difficult
to install the best way is to install Macport and after that:
port install py26-pil
and you'll need to use the python of the macport installation:
$ /opt/local/bin/python2.6
It's the samething on linux, i'm alway using the P
Here's my problem, I have successfully got the user to update his/her
email. However, I can not figure out why my imageField for my profile
is not updating, neither the copying of the file or the image path is
adding to my user profile table. I have included the mimetype on my
form. I've done this
Check this out: It's pretty awesome and works with tornado on flash
and serves AMF objects.
On Aug 31, 12:03 pm, David Koblas wrote:
> Funny you should ask --
>
> The basic challenge with any chat application is the long polling bit,
> django by default isn't really designed to handle that. O
I'm getting no where with this, are there any other suggestions on row
to render a 'please wait' page while other python works? Can I call a
view.my function to run from my 'please wait' template?
Please be as elementary as possible as javascript, AJAX, jquery, and
the like are brand new to me.
T
Thanks Bill and Mathieu!
I will try the Mac port option first, in fact I did look at it last
night probably around 1am or so...
I treied rebuilding the virtual env I was using as well just to
verify, but the problem seem higher up the stream and Bill indicated.
I will take a look for the ld.conf
Rolando's suggestion is a pretty straight forward method to achieve what you
want. You probably need to elaborate where in the process you're having
trouble (although based on your response maybe it's the first step?). You
can indeed call a view.my function from your please wait template, but you
w
I suffered for a couple of days trying to install PIL on snow leopard
myself just a few weeks ago. I'm on 10.6.4 as well, although I'm using
python 2.7. But most of the hurt is related to libjpeg, so that
shouldn't matter.
I eventually got everything running by following the directions posted
here
Ok, I'll try to elaborate. again java is foreign to me although I've
spent all day trying to learn some.
Here's the code:
def please_wait(request):
# ... setup context or something
return render_to_response("please_wait.html")
def run_DHM(request)
# ... perform calculations and collect
I have an Entity which has a many-to-many field "tags" to Tags. I'm trying
to pin down a bug, and wanted a sanity check:
entity = directory.models.Entity.objects.get(id =
int(search.group(1)))
entity.tags.remove(directory.models.Tag.objects.get(id =
I finally pinned down the problem; it was in an unrelated area.
Thanks,
On Tue, Aug 31, 2010 at 5:59 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I have an Entity which has a many-to-many field "tags" to Tags. I'm trying
> to pin down a bug, and wanted a sanity c
$.getJSON should be embedded in your initial Page Wait response page. The
first argument isn't a view, rather a URL. So you might want to use the
django url template tag, e.g.,
$.getJSON('{% url whatever.run_DHM %}', ...)
The second argument is a callback function. The browser stores the callback
I am interested in this problem too, I need to pass some additional
data along side chat messages.
Why did you decide to abandon polling? I was thinking of thinking of
using it and updating about twice a second.
On Aug 31, 6:34 am, Shamail Tayyab wrote:
> Hi,
>
> I am working on a chat app
So I tried the Macports option and it started to look good, but then I
got:
---> Installing py26-pil @1.1.7_1
---> Activating py26-pil @1.1.7_1
Error: Target org.macports.activate returned: Image error: /opt/local/
Library/Frameworks/Python.framework/Versions/2.6/bin/pilconvert.py
already exists
On Tue, Aug 31, 2010 at 23:52, Elim Qiu wrote:
> I just feel kind of redundant to have the same text in and above the
> textfields.
This is a result of the tutorial - they aren't always the same :)
>
And also the odd table layout that makes choice fields and votes' fields so
> apart; and do
Hi Daniel-
Thanks for your response.
No, I wasn't generating the form within django; I had hand coded
a form into the page; because I had intended that this form appear on
every page in the side.
I'll try it as you suggest and report back. This may involve
learning how to write temp
(snip 'programming by accident' code)
I'm not sure you really understand what you're doing :-/
> > > Here's my problem, I know you don't get direct access to the user
> > > model,
>
> > Yes you do.
>
> > > so making the user email editable is kind of tricky
>
> > Why so ?
>
> you can't query for
You could try ActivePython:
http://www.activestate.com/activepython/downloads
Then
{{{
$ pypm install pil
The following packages will be installed to ~/.local (2.6):
pil-1.1.7-1
Get: [pypm-free.activestate.com] pil 1.1.7-1
Installing pil-1.1.7-1
Fixing script ~/.local/bin/pilconvert.py
Fixin
Hi,
@Jeff, Erlang! Pretty surprised to see that.
@Alexander, doesn't work :( - or might be I am not able to get it..
@David, cool I'll try this, but will this work using mod_python / Apache?
@ebry1,
Imagine 1 people live chatting, that means 1 requests per
second, but in real world, only 3
59 matches
Mail list logo