hi,
am pleased to announce that django now has telugu. Also i note that
the other day, kannada support was also added. These are the 3rd and
4th Indian languages to be added - 4 down 18 to go. Thanks to
pavithran for telugu and the sampaada group for kannada.
--
regards
kg
http://lawgon.li
I am working with newforms and am wanting to set the class of the
produced with a ChoiceField using a RadioSelect widget. I assume it
should be something like this..
field = forms.ChoiceField(choices=CHOICES,
widget=forms.RadioSelect(attrs={'class': 'fun'}))
output would be
Field:
Choice
To whom it may concern,
I'd registered last year in the Django users group at
Google. After MUCH email, and little time yet to
explore Django, I removed my id from the group.
But I'm still getting 20 to 40 group email copies a
day.
Please, remove my id and address from the Django users
group
On 3/9/07, johnny <[EMAIL PROTECTED]> wrote:
>
> I am new to python and javaScript, I have created a funtion that
> return the tags via ajax. I tried to replicate the php example. But
> it's not working. I doesn't return any tags back to my html page via
> ajax. I need some help. I am using j
On Thu, 2007-03-08 at 19:46 +, Paul Childs wrote:
[...]
> Then I get this Django Error message in the browser...
>
> TypeError at http://127.0.0.1:8000/idms/
> unpack non-sequence
> Request Method: GET
> Request URL: http://127.0.0.1:8000http://127.0.0.1:8000/idms/ <
> THIS IS INTERESTI
hello,
i suspect you cannot do this (but i can be wrong because i myself do
not have much experience with django).
you could make your own association table manually in stead of using
ManyToManyField. of course in this case you won't have FOO_set methods
on your models.
konstantin
On Mar 8, 10
How can I add a field in a join table?
I have this:
class Item(models.Model):
name = models.CharField(maxlength=32)
class List(models.Model):
name = models.CharField(maxlength=32)
items = models.ManyToManyField(Item)
which creates the 'list_items' join table fine, but then how do I
On 3/8/07, fyl <[EMAIL PROTECTED]> wrote:
> This is somewhere between an observation and a question. I am writing
> a view that needs to know "some stuff", in particular
> HTTP_ACCEPT_LANGUAGE. As I read the developing book and look at the on-
> line documentation, it is not clear what is availabl
I am new to python and javaScript, I have created a funtion that
return the tags via ajax. I tried to replicate the php example. But
it's not working. I doesn't return any tags back to my html page via
ajax. I need some help. I am using jQuery autocomplete plugin from
here:
http://just-tech.
> After I run : python manage.py runserver and browse my blog, it seems
> that it can't read my images and css. I am not using apache because I
> am developing my blog using my personal pc (Windows XP)
>
> Here is my urls.py:
>
> from django.conf.urls.defaults import *
>
> urlpatterns = pattern
Hi,
Yes, I am using date based generic views for my blog. Then I am using
the admin to create posts. So, I think the cause is the JS control in
admin. Today my posts can be viewed correctly. But, I am developing in
my personal laptop using Windows XP, then I think the 'server' date
time shall be
This is somewhere between an observation and a question. I am writing
a view that needs to know "some stuff", in particular
HTTP_ACCEPT_LANGUAGE. As I read the developing book and look at the on-
line documentation, it is not clear what is available and, probably
more important, what is good pract
After digging through the messages here, I finally just did a custom
query. Here is the function I used that will spit out a template-ready
dictionary:
---
def csql(self,query,qkeys):
from django.db import connection
cursor = connection.cursor()
cursor.execute(query)
r
Thanks a lot, Atilla.
`Question.objects.filter(answer__user=user).distinct()` returns
exactly what I expect. This is wonderful, thanks a lot. I also
recheck the django manual and found this solution has a name as "query
over related objects" (http://www.djangoproject.com/documentation/
db_api/#q
All Right. It seems to be a problem somewhere else:
Both, localy and on server I run python 2.5. It looks like, that
diamanda installation procedure is calling older python version
2.4 ??? Is it possible?
sample:
[EMAIL PROTECTED] raw]$ python manage.py syncdb
[EMAIL PROTECTED] raw]$ cd ..
Go to your database in phpmyadmin or something and see what that field
is doing. I don't think it's set up to insert the default value of 0
I grabbed the code for Myghtyboard right when it was first released
and have modded almost all of it by now, but that line is exactly the
same in mine. I thi
What do you exactly mean by saying: "Did you alter the db so it would
allow that field to be null?"
I returned to previous version without "null=True", syncdb, but still
same... :-(
I have downloaded code today. Is it possible, that thre would be some
little bug currently? Does somebody tried re
hello,
as the subject says, select_related() does not return many-to-many
relations. is this a feature or a bug?
thanks
konstantin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
I'll take a look. Thanks!
On Mar 8, 2:34 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > Is that only for comments, though? Guess I could genericize it.
> > Managed to do so for karma, so I guess I could for profanities, too.
>
> No,
OK! figured this out. Turns out you have to install an older version
of mod_python - 3.1.4 to be precise. everything works perfectly now!
thanks for all of your help!
On Mar 7, 9:38 pm, Brian Rosner <[EMAIL PROTECTED]> wrote:
> On 2007-03-07 09:49:48 -0700, "leland" <[EMAIL PROTECTED]> said:
>
>
On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Is that only for comments, though? Guess I could genericize it.
> Managed to do so for karma, so I guess I could for profanities, too.
No, the validator itself is in django.core.validators.
The comments system will optionally apply that v
Long time lurker, first time poster . . . (I would have asked more
questions before, but the answers have always been in the archives.)
I'm working on an app to show the rapidly approaching NCAA tournament
brackets, and am having some trouble with it. Since I'm quite new to
Django I thought I'd f
Is that only for comments, though? Guess I could genericize it.
Managed to do so for karma, so I guess I could for profanities, too.
On Mar 8, 1:39 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > What I'd like to see (and maybe it's
Hi Henrik.
On Mar 7, 10:47 pm, "Henrik Lied" <[EMAIL PROTECTED]> wrote:
> So I've been thinking about a queue-system. How I should do this I'm
> not sure about. I was thinking about adding an extra field to the
> model (encoded = models.BooleanField), and setup a python script which
> returns all
I have Selenium RC running and I was wondering if someone might be
able to nudge me in the right direction. I am trying to at least get
my local web site, running on the Django dev server, to display in the
browser without an error, nothing more. Any help would be appreciated.
The following are t
Hi Henrik.
On Mar 7, 10:47 pm, "Henrik Lied" <[EMAIL PROTECTED]> wrote:
> So I've been thinking about a queue-system. How I should do this I'm
> not sure about. I was thinking about adding an extra field to the
> model (encoded = models.BooleanField), and setup a python script which
> returns all
On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> What I'd like to see (and maybe it's built-in somewhere and I've
> overlooked it) is some sort of naughty-word filter.
Have a look at django.core.validators.hasNoProfanities, which looks
for a list of disallowed words in settings.PROFANITI
What I'd like to see (and maybe it's built-in somewhere and I've
overlooked it) is some sort of naughty-word filter.
On Mar 8, 12:35 am, "simonbun" <[EMAIL PROTECTED]> wrote:
> Good stuff! I am going to be needing this at some point and now i have
> a good base to start from.
>
> I have one enhan
Yeah, I'd actually considered that. We do use that method on another
product.
The big upside is that you don't have to store exceptions if you remove
just one date in the future from the recurrence pattern, you just remove
that one date record from the database.
There can be a big downside de
On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
...
> Also I store these Schedules as a top level table. I then create
> Resources (Events?) that "use" a specific schedule. This way I can
> have lots of Resources that use the same Schedule, again minimising
> the number of schedule records
Did you alter the db so it would allow that field to be null? Better
yet, now that I look at it.. forget making it null. Make sure it's
defaulting to 0, like it's supposed to.
On Mar 8, 11:08 am, "zehi" <[EMAIL PROTECTED]> wrote:
> HI baxter,
>
> I did exactly as you proposed, but the result is
Hello,
I would like to restrict access to certain files based on user roles
and/or permission. I know about Authenticating against Django's user
database from Apache [1] but I am using FastCGI with Apache 1.3.3. I
read this message[2] and specifically this comment [3] and I was
wondering if anyo
class City(models.Model):
# ...
class Person(models.Model):
# ...
hometown = models.ForeignKey(City)
class Book(models.Model):
# ...
author = models.ForeignKey(Person)
edited = models.ForeignKey(Person)
If do this: Book.objects.select_related().get(id=4), Would it get on
On 06/03/07, roberto <[EMAIL PROTECTED]> wrote:
>
> dear all,
>
> i'm starting to use django and i have what may seem to a lot of you
> the stupidest question ever, though i have not been able to solve
> this,.
>
> i have to classes:
>
> class warriors(models.Model):
> username = models.CharFi
If you're familiar with XSLT then that should also be a good
candidate. The problem there is that things could get complicated, if
the HTML document is not a well-formed XML document.
On 08/03/07, Kjell Magne Fauske <[EMAIL PROTECTED]> wrote:
>
>
>
> On Mar 7, 8:17 pm, "Ramdas S" <[EMAIL PROTECT
HI baxter,
I did exactly as you proposed, but the result is unfortunately the
same.
I've even created fresh database, but when I go to Admin, create the
new category and then trying to add new Forum and getting the same
error page saying as above...
Some other idea, what could cause the problem
On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Sorry, the date_from and date_to are probably superfluous for your
> needs. For my system they represent the period that this schedule is
> valid for and therefore the absolute extent that rrule can generate
> dates for.
>
> For my applicat
I was happy to find the addition of the permalink decorator in the
development version as a help in removing hardcoded paths from
get_absolute_url() methods.
Unfortunately, using it requires that you define a custom view (even
if the custom view simply returns a generic view). Interestingly, you
On 08/03/07, Alex Dong <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I have a data model like this:
> * a `user` has multiple `questions`
> * a `user` could give multiple `answer`s or `comment`s to any
> `question`s.
> So here, there are
> * a one-to-many relationship from `user` to `question`
> * a
On Mar 8, 4:31 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> Mostly I'm cool with that, but one thing just isn't clicking yet: Your
> date_from and date_to fields, I'm guessing these represent the from/to
> dates of the *original* event, and aren't affected by repetitions? So
> if that's the ca
On 3/8/07, Gary Doades <[EMAIL PROTECTED]> wrote:
>
> >
> > So in your Event model (or whatever you're calling it), you're
> > essentially storing the keyword arguments to an rrule, depending on
> > what's necessary for a particular event?
> >
> > Then whenever you need to render a calendar, you p
>
> So in your Event model (or whatever you're calling it), you're
> essentially storing the keyword arguments to an rrule, depending on
> what's necessary for a particular event?
>
> Then whenever you need to render a calendar, you pull in all the
> Events from the db, create rrules for each usin
On 3/8/07, Merric Mercer <[EMAIL PROTECTED]> wrote:
>
> I have a template that loops through a simple query set and displays the
> data in a table.
>
> I now need to add another column to my table. However, the data in the
> new column is a calculation based on two of the other fields
> in that
On 3/8/07, enquest <[EMAIL PROTECTED]> wrote:
> What effect wil the new form lib have on the admin. I read that its
> being remade. But will the admin app bread an will you need to change
> your code for the new one?
Here's the writeup:
http://code.djangoproject.com/wiki/NewformsAdminBranch
Adr
What effect wil the new form lib have on the admin. I read that its
being remade. But will the admin app bread an will you need to change
your code for the new one?
Enquest
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On 3/8/07, Rubic <[EMAIL PROTECTED]> wrote:
>
> Anders,
>
> I think the simple answer is for foreign keys (including
> ChoiceFields when they're foreign keys), you want
> to pass it the id/pk of the object. If the ChoiceFields
> are a list of tuples, just pass it the value.
>
> For multiple selec
Hi all,
I have a data model like this:
* a `user` has multiple `questions`
* a `user` could give multiple `answer`s or `comment`s to any
`question`s.
So here, there are
* a one-to-many relationship from `user` to `question`
* a many-to-many relationship between `question` and `answer`,
`question`
On 3/8/07, Vertigo <[EMAIL PROTECTED]> wrote:
>
> I am struggling right now with the same concerns :-)
> I have a hand-written form for a model with ManyToMany field.
>
> So far, I noted a few things that helped me come to a working
> solution, but maybe not really elegant...
>
> The form initiali
Anders,
I think the simple answer is for foreign keys (including
ChoiceFields when they're foreign keys), you want
to pass it the id/pk of the object. If the ChoiceFields
are a list of tuples, just pass it the value.
For multiple selection values, pass it a list of the values
you want selected.
On Mar 7, 8:17 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a web site, which needs to output HTML content as Latex
>
> Ramdas S
I don't know of any Python library that converts from HTML to LaTeX.
However, writing one should not be that difficult. It is at least much
easier than
I've never seen it, so I'm just speculating here, but I think it's
throwing a wobbly cause you don't have any topics in the forum yet.
Looking at the source, I see:
class Forum(models.Model):
...
forum_topics = models.PositiveIntegerField(default='0', blank=True,
verbose_name=_("Topics")) #
I am struggling right now with the same concerns :-)
I have a hand-written form for a model with ManyToMany field.
So far, I noted a few things that helped me come to a working
solution, but maybe not really elegant...
The form initialization with an object looks like this (I hope...):
my_form =
On 3/7/07, Mary <[EMAIL PROTECTED]> wrote:
>
> I have really tried with dojo and i worked with this steops exactly
> http://code.djangoproject.com/wiki/AddDojoEditor
> and i didn't see anything in my text Area field
>
> I have django 0.95.1 i have installed dojo 0.4
>
> Can anyone help please as i
On 3/8/07, Gary Doades <[EMAIL PROTECTED]> wrote:
>
> I'm working on this very problem.
>
> The best way I have found so far is to use the rrule stuff from the
> python-dateutil package.
>
> Given a repeat interval such as DAILY, WEEKLY, MONTHLY etc. it can
> generate all the dates that your event
On 3/7/07, jlnn <[EMAIL PROTECTED]> wrote:
>
> We were hoping to avoid that, because we have multiple development/
> test and production servers that need to be configured exactly the
> same. Standard configs is the best way to ensure that.
>
It's an academic debate or matter of personal taste, I
OHH i just found the solution which is that i miss to add this line in
view.py
from blog.savedtemplate.models import Template
and it solved my issue :)
Thank you ;
Mary Adel
On Mar 8, 1:59 pm, "Mary" <[EMAIL PROTECTED]> wrote:
> I just have another one issue about the template db
> I have creat
I have a template that loops through a simple query set and displays the
data in a table.
I now need to add another column to my table. However, the data in the
new column is a calculation based on two of the other fields
in that record.
I presume that this can be done using a template ta
I just have another one issue about the template db
I have created a template in the database and i called it blog/
home.html
and i wrote may view like this :
from django.shortcuts import render_to_response
from blog.home.models import Blog
def home(request):
return render_to_response('blog
Hi,
I downloaded diamanda fro google.code and followed instructions at:
http://diamanda.googlecode.com/svn/trunk/README.TXT
Everything works just fine, I have anly problem with 'Add Forum'.
I am getting the following error message:
IntegrityError at /admin/myghtyboard/forum/add/
myghtyboard_fo
> Can you provide a few more clues, please? In particular, what exception
> is being raised. If we know what part of the code is involved, it will
> be easier to try and work out the differences.
> If you can reduce the behaviour to a simple (only a few lines) example,
> that would be great, too.
The thing is that the server load will increase quite a bit when 500
users do the same thing at the same time. It would be nice to get a
different server to take care of this.
How's that "large streaming upload" patch working?
--~--~-~--~~~---~--~~
You received t
Dear Malcom ;
I have renamed my version to "myapp.savedtemplate" and it worked fine
with me
so my problem has been solved and i really appreciate your help;
Thank you very much ;
Mary Adel
On Mar 7, 1:00 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Wed, 2007-03-07 at 01:41 -0800, Mary
gordyt skreiv:
> Howdy Equerm,
>
> I have some notes posted on using Django with Dreamhost here:
>
> http://www.gordontillman.info/Development/DjangoDreamhost
>
> --gordy
Thanks, I'll check it out :)
--~--~-~--~~~---~--~~
You received this message because you are
chasfs skreiv:
> Can you set up your env so it it matches what fcgi has and then run
> manage.py shell? If that works, use the shell to try to access the
> database. The other thing that might help is to look at the logs,
> likely in ~/logs/django.gigzor.com.
>
> Thanks,
> -chasfs
> http://zdeci
Either override templates for specific models or use javascript (js
property of the Admin class) to change the fields.
I think that it will be also possible to change the field type with
the newforms admin. Reference:
http://www.djangosnippets.org/snippets/35/
Good luck!
Aidas Bendoraitis [aka Ar
65 matches
Mail list logo