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 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?  it should live in
> 'flatpages/default.html' in your templates folder.
>
> -jake
>
> Hai Dong wrote:
>   
>> 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 below. I'd appreciate if anyone can help identify the issue.
>> Thanks, Hai
>>
>>
>>   Page not found (404)
>>
>> Request Method:  GET
>> Request URL: http://72.52.81.31/test/
>>
>> Using the URLconf defined in |powerphoto.urls|, Django tried these URL
>> patterns, in this order:
>>
>>1. ^powerphoto/
>>2. ^admin/
>>
>> The current URL, |test/|, didn't match any of these.
>>
>> 
>>
>>
>>   Internal Server Error
>>
>> The server encountered an internal error or misconfiguration and was
>> unable to complete your request.
>>
>> Please contact the server administrator, [EMAIL PROTECTED] and inform them
>> of the time the error occurred, and anything you might have done that
>> may have caused the error.
>>
>> More information about this error may be available in the server error log.
>>
>>
>>
>> >>
>>
>>
>> 
>
>
>   


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 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 URLField, it gives an error
> > that the URL is invalid (of course 'http://' by itself is not a valid
> > URL).  Shouldn't the validation step know to ignore a form field value
> > if it's the same as the initial= value??
>
> You'd prefer invalid data would pass validation?
>
> If you provide an invalid initial value, I'd expect it not to pass.  No?


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 URLField, it gives an error
> that the URL is invalid (of course 'http://' by itself is not a valid
> URL).  Shouldn't the validation step know to ignore a form field value
> if it's the same as the initial= value??

You'd prefer invalid data would pass validation?

If you provide an invalid initial value, I'd expect it not to pass.  No?

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 definition.  By
> default, SlugField has db_index=True, according to the docs, and I do
> see an index for SlugFields without unique=True.  Is anyone else
> seeing this?  i.e.
>
> foo = models.SlugField()  > index is present in Postgres, as
> expected
>
> bar = models.SlugField(unique=True)   ---> index is not present in
> Postgres
>
> I also have other attributes on the SlugField, like maxlength,
> blank=True and null=True, but the only consistent difference between
> the SlugFields where an index is not present automatically vs those
> that are seems to be the attribute unique=True.  Manually creating the
> index works fine.  Any comments/suggests?  Is this a bug?
>
> Shev


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 = CommentForm(auto_id=False)

The docs also state that the initial values will not be used as
fallback values during a form validation.

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 URLField, it gives an error
that the URL is invalid (of course 'http://' by itself is not a valid
URL).  Shouldn't the validation step know to ignore a form field value
if it's the same as the initial= value??


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 = CommentForm(auto_id=False)

The docs also state that the initial values will not be used as
fallback values during a form validation.

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 URLField, it gives an error
that the URL is invalid (of course 'http://' by itself is not a valid
URL).  Shouldn't the validation step know to ignore a form field value
if it's the same as the initial= value??


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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.


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 example I've got a template lookup model, and
a per-page settings model that I'd like to have always there (it will
be cached).  Site is also related to a client model which is linked to
about 20 other models I definately don't need at every request.

What i'd like to be able to do is
Site.objects.get(pk=1).select_related(Settings,Templates), where
Settings and Templates are the related models I need pre-fetched at
every request.  select_related doesn't work like this, but I'm
wondering if there is some way to fake it or should I just skip
the orm and go raw sql to a fake model class?  I only need read access
so it shouldn't be too hard, but it seems like there should be a
better way.

>From the docs it looks like fkey=Null is an option, but not a
practical one for this.  Nor does depth do me much good due to the
model relationships involved.  Any advice would be much appreciated.


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 editors, maybe interesting.

Thanks!

On Aug 25, 10:18 am, Amirouche <[EMAIL PROTECTED]> wrote:
> 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.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 from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 Directive for Apache, and 4 parameters with manage.py.
> My question is, are there any docs out there with more configuration
> examples/directives. Also, has anyone had any sucess with it on large
> sites in comparison with mod_python or FastCGI?

Anyone?


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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?  it should live in
'flatpages/default.html' in your templates folder.

-jake

Hai Dong wrote:
> 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 below. I'd appreciate if anyone can help identify the issue.
> Thanks, Hai
> 
> 
>   Page not found (404)
> 
> Request Method:   GET
> Request URL:  http://72.52.81.31/test/
> 
> Using the URLconf defined in |powerphoto.urls|, Django tried these URL
> patterns, in this order:
> 
>1. ^powerphoto/
>2. ^admin/
> 
> The current URL, |test/|, didn't match any of these.
> 
> 
> 
> 
>   Internal Server Error
> 
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
> 
> Please contact the server administrator, [EMAIL PROTECTED] and inform them
> of the time the error occurred, and anything you might have done that
> may have caused the error.
> 
> More information about this error may be available in the server error log.
> 
> 
> 
> > 
> 
> 


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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:

self.errors['my_field_name'] = ErrorList(['My error message'])

For details see class ValidationError in django.newforms.util

HTH, Peter

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 to do it with unknown parameters? It will
> need to work with a+b, just like a+b+c+d+e+f+g+h... You get it :)

from django.db.models import Q

fields = 'a+b+c+d+e'.split('+')

query = Q(field=fields.pop(0))
for field_value in fields:
 query = query | Q(field=field_value)
mylist = MyModel.objects.filter(query)


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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/courses/fixtures'.
Problem installing fixture '/../eeyore/courses/fixtures/courses.xml':
 node is missing the 'name' attribute

--

I receive this error if I dumpdata as JSON and attempt loaddata:

Installing json fixture 'courses' from '/../eeyore/courses/fixtures'.
Problem installing fixture '/../eeyore/courses/fixtures/courses.json':
column "enable_comments" is of type boolean but expression is of type
integer
LINE 1: ...TO
"courses_note" ("schedule_id","content","file","enable_co...
 ^
HINT:  You will need to rewrite or cast the expression.

--

Help! (I'm using svn trunk, build 6001.)


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 hide the details of where this summary view of the
data is constructed.

How can I display a table of groups and counts, using the DB API?  Can
this be wrapped around a model that is tied to a database view?

-Dave


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 reliability and low cost.


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 class that
inherits from Python's unittest.TestCase class. In its setUp(), it
calls
start() on the RC client to initiate a session. Similarly in its
tearDown(), it calls stop().

The problem arises when running ./django-admin test. I have a
TestSuite
with several model tests (which run well) and several
SeleniumTestCase-based tests. However, I quickly realized that I'll
need
to spawn the Django development server from the test code somehow -
otherwise, the Selenium tests won't have anything to connect to.

At this point I'm stuck. My current code runs ./django-admin runserver
through the popen2 module. This has a major flaw, though: the
"runserver" process uses one database, but the initial ./django-admin
test process uses another database - one that it recreates and then
destroys every time it's used.

In other words, spawing a separate "runserver" process doesn't allow
me
to take advantage of Django's automatic testrunner code. I end up with
a
freshly created test database that's completely untouched by Selenium
tests AND the original database specified in settings.py (which
doesn't
get reset automatically).

I can't figure out how to use Django's management code to spawn a
runserver process without calling ./django-admin.py first. I also
can't
figure out how to resolve the double database issue. I've examined the
patch in #2879 and the explanations in #2867, but I've been unable to
recreate their steps.

Does anyone have any suggestions to point me in the right direction? I
apologize for the long email, and hopefully I'm not missing anything
fundamental.

Thank you!

Nick Fishman


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 it with unknown parameters? It will
need to work with a+b, just like a+b+c+d+e+f+g+h... You get it :)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG0FuLSyMaQ2t7ZwcRAjX2AKCPMlrRZ/L1UrloTFtdhih4hUjLJgCgz076
r/ij0zbfMBsM0FCzAHbXECU=
=C+kv
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---

begin:vcard
fn:Christian Hoeppner
n:Hoeppner;Christian
email;internet:[EMAIL PROTECTED]
note:I am a freelance coder specialized in web applications and their deployment at a small or medium scale.
x-mozilla-html:FALSE
version:2.1
end:vcard



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 documentation, I concluded that the following code is intended
by Django developers, but it does not work. :

j = Jewel()
...
j.save_file_file(j.get_file_filename(), request.FILES['preview']
['content'])
...

There, the problem is that get_file_filename() method returns just the
filename *not* including the media path and upload_to path. (Also
get_file_url(), too) And j.file is just a string member variable, so I
cannot access Field object directly.

I currently avoid this problem with the following code:

path_file = '%s%s%s' % (settings.MEDIA_ROOT, 'attach/vault/file/',
request.FILES['file']['filename'])
fo = open(path_file, 'w')
fo.write(request.FILES['file']['content'])
fo.close()

How can I refine this?


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 below. I'd appreciate if anyone can help identify the issue.
Thanks, Hai


  Page not found (404)

Request Method: GET
Request URL:http://72.52.81.31/test/

Using the URLconf defined in |powerphoto.urls|, Django tried these URL
patterns, in this order:

   1. ^powerphoto/
   2. ^admin/

The current URL, |test/|, didn't match any of these.




  Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] and inform them
of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error log.



--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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.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 from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 ?


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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(models.Model):
> > name = models.CharField(maxlength=30)
>
> > class Snippet(models.Model):
> > name = models.CharField(maxlength=30)
> > tags =
> > models.ManyToManyField(Tag,filter_interface=models.HORIZONTAL)
>
> > My aim to filter snippets according to multiple tag constraints
> > simultaneously.
> > However, the overlap of two sets just doesn't get filtered properly.
> > E.g.:
>
> > In [96]: Snippet.objects.filter(tags__name="home")
> > Out[96]: [, ]
>
> > In [97]: Snippet.objects.filter(tags__name="email")
> > Out[97]: [, ]
>
> > In [98]:
> > Snippet.objects.filter(tags__name="home").filter(tags__name="email")
> > # SHOULD return []
> > Out[98]: []
>
> > I tried the exact same idea by using .filter(Q(..),Q(..)) and also
> > with the Q(..)(..) option, as well as by dividing the process into
> > stages and inspecting the first filter's result on the way (it's
> > valid). Everything just ends up with the same empty list...
>
> It's a known bug. The SQL query that is constructed doesn't work with
> many to many fields. Work in progress.
>
> Regards,
> Malcolm
>
> --
> If Barbie is so popular, why do you have to buy her 
> friends?http://www.pointy-stick.com/blog/


--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



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 need sufficient access, space
and permissions to be able to install and run it on their server. Many
'mainstream' providers do provide access of this sort.

You may find this list helpful:

http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts

Yours,
Russ Magee %-)

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---