Re: TyneMCE-like for math, You know one?

2007-08-25 Thread Nathaniel Whiteinge
Depending on your ultimate output needs, ASCIIMathML.js may be a good solution: http://www1.chapman.edu/~jipsen/mathml/asciimathdemo.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Django Queue Service

2007-08-25 Thread Joseph Heck
For anyone interested, I've made available the code (using Django) to a project that implements a message queue for use with Django (or anything, really) projects. The brilliantly conceived name is "Django Queue Service", and the source is available at http://django-queue-service.googlecode.com/.

Re: Help with Django installation on OSX 10.4.10

2007-08-25 Thread Kenneth Gonsalves
On 26-Aug-07, at 11:51 AM, Brandon Taylor wrote: > -bash: django-admin.py: command not found what happens if you run /usr/local/bin/django-admin.py, that is, with the full path name. If it runs, then it means your path does not contain /usr/local/bin. If it doesnt run, your alias is borked.

Re: Help with Django installation on OSX 10.4.10

2007-08-25 Thread Duc Nguyen
Not sure if this is the solution, but I put my PATH settings in ~/.profile instead of .bash_profile. I didn't make an alias of django_admin.py in /usr/local/bin. I just made sure $DJANGOHOME/bin was part of my PATH. -- Duc On Aug 25, 2007, at 11:21 PM, Brandon Taylor wrote: > > Hi everyon

Re: Help with Django installation on OSX 10.4.10

2007-08-25 Thread Joseph Heck
It is most likely an improper reference in django-admin.py to the location of python - or the "wrong" python. If you invoke python in your terminal, which do you get? BTW: I used the MacPorts install of Python, and I keep the following in my .profile: export PATH=/opt/local/bin:/opt/local/sbin:

Help with Django installation on OSX 10.4.10

2007-08-25 Thread Brandon Taylor
Hi everyone, I'm just getting started with Django/Python. I have installed Python 2.4.4, and Django from the latest build. I can run 'python' and 'import django' from bash and it does not error out, so I'm assuming my installs are correct. I have made an alias of 'django-admin.py' and placed it

Re: a question about flatpage

2007-08-25 Thread Hai Dong
Jake: Thanks for the help. I did not have flatpages/default.html. By creating that file, the problem was solved. Hai jake wrote: > hai - > > this error message is coming from your server, not django (though it > probably originates with django). so you might check the server logs > (yours are

Re: Validation problem with newforms and initial value for URLField

2007-08-25 Thread Shev
No, invalid data should not pass. But neither should an initial field value raise an error when the POSTed data is exactly the same as the starting value; it should just be ignored and the value discarded. On Aug 25, 7:32 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 8/25/07, Shev <[EMAIL

Re: Validation problem with newforms and initial value for URLField

2007-08-25 Thread Jeremy Dunck
On 8/25/07, Shev <[EMAIL PROTECTED]> wrote: ... > However, what I'm seeing is that when I actually do set > initial='http://' for a URLField, either in the field definition above > or via passing in a dictionary for dynamic initial values, if I then > submit/POST the form without changing the URLF

Re: SlugField missing an index when unique=True?

2007-08-25 Thread Shev
I'm still seeing this bug, so ticket-time it is. On Aug 8, 11:11 pm, Shev <[EMAIL PROTECTED]> wrote: > Hi Djangoers - I'm using Postgres 8.2 and I'm noticing that for all > models where I have a SlugField, the database index seems to be > missing where I also set unique=True in the SlugField defi

Validation problem with newforms and initial value for URLField

2007-08-25 Thread Shev
So in the docs, it says one can set an initial value for form fields via the initial attribute, e.g. from the docs: class CommentForm(forms.Form): ... name = forms.CharField(initial='Your name') ... url = forms.URLField(initial='http://') ... comment = forms.CharField() f = CommentFor

Validation problem with newforms and initial value for URLField

2007-08-25 Thread Shev
So in the docs, it says one can set an initial value for form fields via the initial attribute, e.g. from the docs: class CommentForm(forms.Form): ... name = forms.CharField(initial='Your name') ... url = forms.URLField(initial='http://') ... comment = forms.CharField() f = CommentFor

Re: Newbie: How to create different person models that share a profile model?

2007-08-25 Thread Ed Hagen
That will work -- assigning roles to Users makes sense. But, using your setup, is there any way to enforce a single role per User? As it is now, a single User could be assigned both a student and teacher role. Many thanks for your help. Ed. --~--~-~--~~~---~--~

select_related - excluding relationships?

2007-08-25 Thread Doug B
I'm trying to figure out how best to approach this. I've got a site model, and a few related models that are loaded in middleware and stuck on almost every request. I'd like to use select related for this, but the site model also has foreignkey references from lots of models I don't need. For ex

Re: TyneMCE-like for math, You know one?

2007-08-25 Thread [EMAIL PROTECTED]
Thanks. This mathdonalds seens to be very good. Maybe doing some modifications it should work for what I need. I liked an editor named Xina, http://xinha.webfactional.com/wiki/Examples, good with an math plugin. This article (http://www.geniisoft.com/showcase.nsf/WebEditors) compare several edito

Re: SCGI

2007-08-25 Thread Sasha Weberov
On Aug 23, 9:32 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: > I recently setup mod_scgi and found some configuration examples on a > RoR site to get it working. It seems pretty nice so far, much easier > to setup then FastCGI, but the configuration is non existant. I was > able to find 1 Direct

Re: a question about flatpage

2007-08-25 Thread jake
hai - this error message is coming from your server, not django (though it probably originates with django). so you might check the server logs (yours are probably in /var/log/httpd/error_log). the first django-related issue i would check though: do you have a template file for your flatpages?

Re: Injecting validation errors into newforms

2007-08-25 Thread Peter Melvyn
On 8/24/07, Kirk Strauser <[EMAIL PROTECTED]> wrote: > problem I'm running into is that I'd really, really like to be able to > associate errors from the form.clean() stage of validation with the fields > that are actually having problems. To assign a single message, I use following assignment:

Re: Dynamic OR queries

2007-08-25 Thread Steven Armstrong
Chris Hoeppner wrote on 08/25/07 18:40: > Hi there! > > I was just wondering how to dynamically "or" together an indetermined > quantity of Q objects. They're constructed from a string like q=a+b+c, > which would get stiched together as "(Q(field=a) | Q(field=b) | > Q(field=c))". Any clue on how

loaddata issue

2007-08-25 Thread Drasty
I'm attempting to use the loaddata action to load an XML file (generated using the dumpdata action on an MySQL db) to populate an app in a project that is using PostgreSQL for its db. I receive the following error: Loading 'courses' fixtures... Installing xml fixture 'courses' from '/../eeyore/co

Using SQL aggregates

2007-08-25 Thread [EMAIL PROTECTED]
I'm new to Django, so this may be answered elsewhere but I have not found it. If I want to display a summary view of some large datasets, in SQL I would use: select name, count(*) from MyTable group by name This SQL in practice would have several joins. In past lives, I've used SQL VIEWS to hi

Re: Can Django be run on 1and1 ?

2007-08-25 Thread john
On Aug 25, 7:07 am, Amirouche <[EMAIL PROTECTED]> wrote: > As a general advice don't run anything on 1and1.com ; ) > Unless you want to state a specific good reason, don't make comments like this - we have been using 1and1 for email and static type web hosting for a long time with excellent relia

Integrating Selenium unit-tests into Django

2007-08-25 Thread bsdlogical
Hello everyone. I've seen several threads in the past months about integrating Selenium into Django, so hopefully I'm not asking something that's already been asked. I'm using OpenQA.org's Python RC client to communicate with a Selenium server running in the background. I have a SeleniumTestCase

Dynamic OR queries

2007-08-25 Thread Chris Hoeppner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there! I was just wondering how to dynamically "or" together an indetermined quantity of Q objects. They're constructed from a string like q=a+b+c, which would get stiched together as "(Q(field=a) | Q(field=b) | Q(field=c))". Any clue on how to do

How to access upload_to property of FileField in views?

2007-08-25 Thread daybreaker
Hello, I'm new to Django development. Here is my first question. :) I have a model which has a 'file' FileField. class Jewel(models.Model): ... file = models.FileField(upload_to='attach/vault/file/') ... I wonder how to access upload_to property in views. After reading Django docume

CRUD generic views and new forms

2007-08-25 Thread cesco
In the current django documentation is written that the create_object generic view (from django.views.generic.create_update) returns as template context the "form" variable which is an instance of django.oldforms.FormWrapper. Is there a way to use new forms? Thanks and regards Francesco --~--~-

a question about flatpage

2007-08-25 Thread Hai Dong
Hello: I got a strange problem with flat page. I created a test flatpage called "/test2/". I know the flatpage middleware is working, since if I enter /test/ as my url I will get page not found (404) error. However, if I enter /test2/ I got the Internal server error. I have attached both errors b

Re: TyneMCE-like for math, You know one?

2007-08-25 Thread Amirouche
On Aug 25, 3:33 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > sum ... > not hard stuff like integral which one is really the hardest ? you may already know about MathML, http://en.wikipedia.org/wiki/MathML so googling for mathml + tinyMCE give you this result: http://www.mathdonalds.

Re: Can Django be run on 1and1 ?

2007-08-25 Thread Amirouche
As a general advice don't run anything on 1and1.com ; ) On Aug 25, 7:02 am, john <[EMAIL PROTECTED]> wrote: > Can Django be run on a mainstream web hosting company like 1and1.com > or does it require a hosting company that specially offers django ? --~--~-~--~~~---~-

Re: Odd behavior of filtering

2007-08-25 Thread Djon
Is there a ticket for it on the Trac? How/where can I monitor it so that as soon as a fix is available I could get the changeset? Thanks! On Aug 21, 11:45 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-08-20 at 22:04 +, Djon wrote: > > Hi > > > My model is: > > > class Tag

Re: DATABASE_ENGINE setting became required

2007-08-25 Thread omat
After testing with the older revisions, I found that revision 5976 is the one that caused the problem: Revision: 5976 Author: adrian Date: 5:39:05 AM, Monday, August 20, 2007 Message: Refactored get_query_set_class() to DatabaseOperations.query_set_class(). Also added BaseDatabaseFeatures.uses_cu

Re: Can Django be run on 1and1 ?

2007-08-25 Thread Russell Keith-Magee
On 8/25/07, john <[EMAIL PROTECTED]> wrote: > > Can Django be run on a mainstream web hosting company like 1and1.com > or does it require a hosting company that specially offers django ? I don't know anything about 1and1 specifically. If they don't provide Django support out-of-the-box, you will

Re: DATABASE_ENGINE setting became required

2007-08-25 Thread Russell Keith-Magee
On 8/25/07, omat <[EMAIL PROTECTED]> wrote: > > Hi, > > After a recent svn update, my no-database django application is > broken. Could you help us out here and tell us what constitutes a 'recent SVN update'? What was the last version that worked? Which version have you updated to? > Something c

DATABASE_ENGINE setting became required

2007-08-25 Thread omat
Hi, After a recent svn update, my no-database django application is broken. Something changed, and now the DATABASE_ENGINE setting became required and its absence results in an ImproperlyConfigured error, even if the application does not use a db backend. Beware. Regards, oMat --~--~