Re: LANGUAGES in template

2006-09-07 Thread Patrick J. Anderson
gjiro wrote: > Hi Patrick, > > Check if your settings.py conforms to: > http://www.djangoproject.com/documentation/settings/#languages > > The context processor that exposes LANGUAGES to the template's > "context": >

Re: LANGUAGES in template

2006-09-07 Thread gjiro
Hi Patrick, Check if your settings.py conforms to: http://www.djangoproject.com/documentation/settings/#languages The context processor that exposes LANGUAGES to the template's "context": http://code.djangoproject.com/browser/django/trunk/django/core/context_processors.py James Bennett's

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-07 Thread limodou
On 9/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > there is la/tex, docbook, x/html and other. Wiki makups arent a > standard and they are in many cases specific to particular wikis. Basic > web user will know basic of HTML and BBcode from forums. He won't > probably know that there is

Re: Shared Hosting suggestion

2006-09-07 Thread Ian Holsman
On 08/09/2006, at 8:13 AM, [EMAIL PROTECTED] wrote: > > >> Pretty much any shared hosting service that supports Python and >> FastCGI will work (some offer mod_python, but not a lot of them, so >> FastCGI is usually the way to go on shared). > > sorry, i am new to django... so don't i need root

Re: How about a Django apps public repository?

2006-09-07 Thread Sean Schertell
Hey thanks for all the positive feedback on this. It seems like lots of folks share my sentiments. That's nice :-) It would be really nice to hear the devs' thoughts on the subject. Adrian, Jacob, Simon? A penny for your thoughts? Ironically, the whole point of this idea is to avoid

Re: Shared Hosting suggestion

2006-09-07 Thread [EMAIL PROTECTED]
> Pretty much any shared hosting service that supports Python and > FastCGI will work (some offer mod_python, but not a lot of them, so > FastCGI is usually the way to go on shared). sorry, i am new to django... so don't i need root access and the possibility to "really" install django? can i

Re: How about a Django apps public repository?

2006-09-07 Thread Daniele Spino
+1 for me too it would be great for me to lear how other people code... And of course It will help everybody to have a standardized way to do things in Django... eg. a Django Blog Picio 2006/9/7, limodou <[EMAIL PROTECTED]>: > > +1 > > I also suggested similar subject before. > > -- > I like

LANGUAGES in template

2006-09-07 Thread Patrick J. Anderson
I'm following the docs on i18n. In there, there's a sample of template code for a language selection form: {% for lang in LANGUAGES %} {{ lang.1 }} {% endfor %} But LANGUAGES is empty for me in the template. How can I use LANGUAGES variable in the

Crappy filename validator

2006-09-07 Thread Andy Dustman
The model docs strongly suggest validating all filenames of uploaded files for security reasons, so I wrote a validator that could be used for this, but it's not pretty: class filenameEndsWith(object): def __init__(self, choices=[], error_message=None): if not choices:

Re: Shared Hosting suggestion

2006-09-07 Thread Joseph Heck
We've used TextDrive, and while they have friendly service, we have had real trouble with system uptimes over the past several months. -joeOn 9/7/06, Giovanni Giorgi <[EMAIL PROTECTED]> wrote: I am using http://www.openhosting.com/ and I find it nice, because withthe starting price you can also

Re: my private django repository goes public

2006-09-07 Thread garaged
> I added some hints on the README.txt for > http://svn.sourceforge.net/svnroot/django-userlibs/trunk/libs.common > > Yes, you install it view setup.py build/install/bdist_rpm like django. > > Regards, > Dirk Hi Dirk That was easy, but the main problem I have is that I really don't understand

Re: mod_python - Using Apache prefork Vs Apache worker

2006-09-07 Thread gabor
Graham Dumpleton wrote: > gabor wrote: >> Filipe wrote: >>> Hi, >>> >>> The docs say [1] that: >>> "Django requires Apache 2.x and mod_python 3.x, and you should use >>> Apache's prefork MPM, as opposed to the worker MPM." >>> >>> I want to test a Django site on a server (I plan to deploy there

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-07 Thread [EMAIL PROTECTED]
there is la/tex, docbook, x/html and other. Wiki makups arent a standard and they are in many cases specific to particular wikis. Basic web user will know basic of HTML and BBcode from forums. He won't probably know that there is something like latex or docbook.

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-07 Thread limodou
On 9/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I don't want to make another mediawiki which requires to learn yet > another markup language and needs a horde of wikipedians to controll > it. I want Diamanda to be a WikiLike "CMS" where you can manage your > pages quick and easy

Re: Diamanda Wiki and MyghtyBoard Forum on SVN now

2006-09-07 Thread [EMAIL PROTECTED]
I don't want to make another mediawiki which requires to learn yet another markup language and needs a horde of wikipedians to controll it. I want Diamanda to be a WikiLike "CMS" where you can manage your pages quick and easy without playing with wiki syntax. Note that most "complicated" code

Group manipulation with comments

2006-09-07 Thread Scater
I have a problem to realize group manipulation with comments in Django Admin interface. This is must be grid with list of comments with checkbox near each entry in grid. Buttons: delete, favour by admin Filters: new comments, NOT favour etc. Any ideas ?

Re: IP based permissions

2006-09-07 Thread James Bennett
On 9/7/06, Håkan Johansson <[EMAIL PROTECTED]> wrote: > How do I do this the "right" way in Django? For some basic ideas you might want to look at the 'INTERNAL_IPS' setting; the biggest use Django makes of it is in enabling or disabling the various admin bookmarklets, but it would be a fairly

Re: How about a Django apps public repository?

2006-09-07 Thread limodou
+1 I also suggested similar subject before. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~~---~--~~ You received this message

Re: Re: db lookup filter: a=b-1

2006-09-07 Thread James Bennett
On 9/7/06, jaro <[EMAIL PROTECTED]> wrote: > I need all records where B - A = 1 > that can also be A = B - 1 You don't have to write the entire SQL statement to do this, but (and admittedly I'm still waking up right now) it's not also doable directly with the database API; you'd want to use the

Re: How about a Django apps public repository?

2006-09-07 Thread [EMAIL PROTECTED]
I really like the idea too. One suggestion, though... for us new and dumb folks, it would be good if the apps were as standalone as possible and could really be dropped in and started working. Good docs would be an added bonus. But that's just the dumb guy talkin'.

Broken Admin or Broken Programmer?

2006-09-07 Thread Sarcastic Zombie
What would cause a raw_id_admin field to have a proper ID number in it, but not be able to: 1. display the __str__() of the chosen object beside the input field 2. render the usual list of objects when clicking on the hour glass The hourglass link shows "http://((server))/admin///", which is

Re: How about a Django apps public repository?

2006-09-07 Thread Jeremy Kelley
Quoting fynali ([EMAIL PROTECTED]): > > +1 votes+=1 # from me too! :) -- Jeremy Kelley <[EMAIL PROTECTED]> gpg 1024D/EAB7CA38 6FF4 483B D7EA A09C A3E0 1CE1 F0A4 8C8E EAB7 CA38 The Christian ideal has not been tried and found wanting; it has been found difficult and left untried. - G.K.

Custom manipulator save() function problem

2006-09-07 Thread Gacha
I have a custom manipulator: class Pircejs_Add(Manipulator): def __init__(self): self.fields = ( TextField(field_name='vards', is_required=True), TextField(field_name='uzvards', is_required=True),

Re: How about a Django apps public repository?

2006-09-07 Thread spacedman
Sean Schertell wrote: > Am I alone on this? If I created such a repository would anyone use it? Why not just use SourceForge[1] as repository and just keep a list of django-related projects on the django main site? Barry [1] Or similar.

Custom manipulator save() function problem

2006-09-07 Thread Gacha
I have a custom manipulator: class Pircejs_Add(Manipulator): def __init__(self): self.fields = ( TextField(field_name='vards', is_required=True), TextField(field_name='uzvards', is_required=True),

Re: confusion with ManyToMany relation on self

2006-09-07 Thread Russell Keith-Magee
On 9/6/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: On 9/5/06, Sean Perry < [EMAIL PROTECTED]> wrote: Perhaps if symmetrical is true get_accessor_name should return None orsome similarly bogus value. This would also make the test incore/management.py work as planned.I had a quick attempt at

Re: Creating graphs in Django application

2006-09-07 Thread Jeremy Kelley
Quoting Devraj ([EMAIL PROTECTED]): > > Hi everyone, > > I am attempting to create graphs in my Django app.to provide reporting > features. Are there any libraries available to do this in Python or > Django? > > Something like http://www.qualityunit.com/postgraph/ for PHP > > Thanks I'll

Re: Creating graphs in Django application

2006-09-07 Thread Nate Straz
On Thu, Sep 07, 2006 at 01:39:30AM -0700, Devraj wrote: > I am attempting to create graphs in my Django app.to provide reporting > features. Are there any libraries available to do this in Python or > Django? PyX, http://pyx.sourceforge.net/ Nate

Re: How about a Django apps public repository?

2006-09-07 Thread fynali
+1 --~--~-~--~~~---~--~~ 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

Re: Dojo Editor2 invocation from Django

2006-09-07 Thread patrickk
the filebrowser is free, of course: http://www.vonautomatisch.at/django/filebrowser/ I´ve read on the mailinglist that some other people are working on filebrowsers too. so there might come up something better. integrating with fck: no copy/paste - in the fck image-dialog-window, you have an

Re: How about a Django apps public repository?

2006-09-07 Thread Giovanni Giorgi
I am intersted too in such project. If you need some help... drop me an email :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Shared Hosting suggestion

2006-09-07 Thread Giovanni Giorgi
I am using http://www.openhosting.com/ and I find it nice, because with the starting price you can also set up sendmail, PostgreSQL and so on. To try indeed if you have some extra bucks --~--~-~--~~~---~--~~ You received this message because you are subscribed

problem chained filter

2006-09-07 Thread Luis P. Mendes
Hi, I want a user to select a multiple filter through check boxes. The problem is that filtering in django doesn't return all the expected results. I tried both chained filtering and filters with anded conditions and the result is no different. I'm I missing something? Where's the flaw?

Re: mod_python - Using Apache prefork Vs Apache worker

2006-09-07 Thread Graham Dumpleton
gabor wrote: > Filipe wrote: > > Hi, > > > > The docs say [1] that: > > "Django requires Apache 2.x and mod_python 3.x, and you should use > > Apache's prefork MPM, as opposed to the worker MPM." > > > > I want to test a Django site on a server (I plan to deploy there some > > other sites in the

Re: Creating graphs in Django application

2006-09-07 Thread [EMAIL PROTECTED]
non free, but nice: http://www.advsofteng.com/cdpython.html --~--~-~--~~~---~--~~ 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

IP based permissions

2006-09-07 Thread Håkan Johansson
Hi everyone. We have decided to try out Django for our intranet solution here at work. I want a user's permissions to be dependent on from which IP he/she is logging in from. Some pages should only be accessible when the user logs in from the intranet for example. How do I do this the

Re: Creating graphs in Django application

2006-09-07 Thread Jay Klehr
If you don't mind using Flash as the output medium you could try this: http://www.maani.us/xml_charts/ Works with anything that is able to output XML, I've used the PHP version a bit and really like a lot of the options. Jay Devraj wrote: > Hi everyone, > > I am attempting to create graphs

Re: Creating graphs in Django application

2006-09-07 Thread Gacha
Devraj wrote: > Hi everyone, > > I am attempting to create graphs in my Django app.to provide reporting > features. Are there any libraries available to do this in Python or > Django? > > Something like http://www.qualityunit.com/postgraph/ for PHP > > Thanks Try

Re: Creating graphs in Django application

2006-09-07 Thread Gacha
Try: http://matplotlib.sourceforge.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-users@googlegroups.com To unsubscribe from this group, send

Re: Dojo Editor2 invocation from Django

2006-09-07 Thread patrickk
I don´t really get why you have html-code in your view. if you just want to test the editor, why not use direct_to_template: see http://www.djangoproject.com/documentation/generic_views/#django- views-generic-simple-redirect-to Am 07.09.2006 um 05:43 schrieb Gloria: > > OK, so here is what I'm

Creating graphs in Django application

2006-09-07 Thread Devraj
Hi everyone, I am attempting to create graphs in my Django app.to provide reporting features. Are there any libraries available to do this in Python or Django? Something like http://www.qualityunit.com/postgraph/ for PHP Thanks --~--~-~--~~~---~--~~ You

Re: db lookup filter: a=b-1

2006-09-07 Thread jaro
Thanks for response. Maybe I do not understand. Let me be more clear: class Foo(models.Model): name = models.CharField(maxlength=32) parent_id = models.IntegerField() A = models.IntegerField() B = models.IntegerField() I need all records where B - A = 1 that can also be A = B

Re: Showing the value of a choice instead of the key

2006-09-07 Thread cyberco
Thanks! That is indeed in a non-intuitive location. --~--~-~--~~~---~--~~ 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

Re: Shared Hosting suggestion

2006-09-07 Thread Remi
> Any of you have run a django application in a shared hosting > successfully? Yes, we do an we prove it :) http://blog.webfaction.com/django-screencast Remi WebFaction - Hosting for an agile web --~--~-~--~~~---~--~~ You received this message because you are

Re: How to correct this error?

2006-09-07 Thread Scater
PythonistL wrote: > Which file should I change with > if self.connection.get_server_info() >= '4.1': > cursor.execute("SET NAMES utf8") ? > you should change all files with this entry like this: cursor.execute("SET NAMES ") > Scater, > the erorr says: > Exception Value: (1267, "Illegal mix

Re: db lookup filter: a=b-1

2006-09-07 Thread James Bennett
On 9/7/06, jaro <[EMAIL PROTECTED]> wrote: > Do I need to go with custom SQL ? No... Assume this model: class Foo(models.Model): num_field = models.IntegerField() And suppose a view which is meant to take a URL like '/view/?num=3', and return the instance equivalent to 'num - 1': def