Re: Django & Couchdb ??

2009-06-14 Thread Benoit Chesneau
Just to complete (I see you already got it) : there is now the couchdbkit extension : http://bitbucket.org/benoitc/couchdbkit/ with documentation here : http://couchdbkit.org/docs/api/couchdbkit.ext.django-module.html - benoît --~--~-~--~~~---~--~~ You received

Re: Uploading Images

2009-06-14 Thread Oleg Oltar
I made a mistake in view.py. Corrected version is def handleUploadedFile(file): destination = open('usermedia/new.jpg', 'wb+') for chunk in file.chunks(): destination.write(chunk) destination.close() return destination def user_profile(request, profile_name): owner

can django add custom permission without module association?

2009-06-14 Thread victor
can django add custom permission without module association? if can,how to? thx a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: openid

2009-06-14 Thread Rama Vadakattu
Recently i worked with openid i have used the below package for implementing it. http://code.google.com/p/django-openid-consumer/ It is basically a fork of simonwillison django-openid implementing new openid features. I did not face any problems and successfully implemented openid on my site.

Uploading Images

2009-06-14 Thread Oleg Oltar
Hi! I know that the problem probably was discussed many times already, but I really can't make it working. I read the documentation and prepared the following code: model: class UserProfile(models.Model): """ User profile model, cintains a Foreign Key, which links it to the user

inlineformset_factory causing some KeyError whackiness.

2009-06-14 Thread Bartek
Hi, I am trying to use the inlineformset_factory on an odd model I have created. Here's the best way I can describe it: class Base(models.Model): title = models.CharField(max_length=55) def save(self, *args, **kwargs): if self.is_editable(): # do a bunch of things

Using TIME_ZONE = 'UTC' and pytz

2009-06-14 Thread ydjango
I am planning to set TIME_ZONE = 'UTC' in settings.py. This will, to my understanding, store all date time in MYSQL db in utc. I do not have to do anything on MYSQL side. To display I plan to use pytz to convert utc date and date times to user's timezone. I already have the user's timezone in

Re: Complex global footer

2009-06-14 Thread compbry15
Thanks for the responses. I ended up going with a template context processor. On Jun 14, 5:16 pm, Antoni Aloy wrote: > 2009/6/14 Alex Gaynor : > > > > > > > > > On Sun, Jun 14, 2009 at 3:46 PM, compbry15 wrote: > > >> Hey all,

Re: How do you handle scheduled downtime?

2009-06-14 Thread Graham Dumpleton
On Jun 15, 3:32 am, soniiic wrote: > Hello, > > I've been wondering how django devs handle scheduled downtime? Do you > use a different urls.py to always redirect someone to a 'service > unavailable' page? > > Or is there something fancy that you do? If using

Re: can you have a flatpage with url of "/" when Debug=True?

2009-06-14 Thread Michael
On Sun, Jun 14, 2009 at 2:37 AM, Dj Gilcrease wrote: > > On Sat, Jun 13, 2009 at 7:24 PM, Michael wrote: > > On Sat, Jun 13, 2009 at 1:30 PM, josebrwn wrote: > >> > >> If Debug = True, you can have a flatpage with URL = "/" that

Re: Any good django book that covers version 1.0?

2009-06-14 Thread Nick Lo
> Could you recommend a good book about django that covers version > 1.0? I've > seen a few books, but all of them covers v0.96. > > If there is no book covering v1.0, should I buy those with v0.96, or > are > they too obsolete by now? Are you sure you did a full search. There are loads of

Re: amCharts and Django

2009-06-14 Thread carlos
someone working with graphs statistic withs Django for examples PyOFC2, GChartWrapper, pygooglecahrt, but have one example with retrieve data of the databases or something that explains how to do thanks 2009/6/13 Travis Jensen > Anybody using amCharts with Django? I'd

Any good django book that covers version 1.0?

2009-06-14 Thread mig_akira
Hello everyone. Could you recommend a good book about django that covers version 1.0? I've seen a few books, but all of them covers v0.96. If there is no book covering v1.0, should I buy those with v0.96, or are they too obsolete by now? Thanks! -- View this message in context:

Re: How do you handle scheduled downtime?

2009-06-14 Thread Miles
We have a default virtual host configured to show a maintenance page, so when we disable the django virtual host, everything gets direct there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Newbies in Community.

2009-06-14 Thread Rizwan
Thanks very much for your help. There wont be any URL pattern I can write which use same method i called for "URL/id/1". On Jun 14, 11:13 pm, Tim Chase wrote: > > I have got select box which is auto submit button. In response of > > submission of form.. URL is

Re: What is available IN Django compared to other frameworks?

2009-06-14 Thread Olav
On Jun 8, 5:37 pm, Necmettin Begiter wrote: > On Mon, Jun 8, 2009 at 16:39, Olav wrote: > It is not even comparable to Drupal or Joomla. Drupal and Joomla are That they have different strengths doesn't mean that you cant compare them What is

Re: Newbies in Community.

2009-06-14 Thread Tim Chase
> I have got select box which is auto submit button. In response of > submission of form.. URL is forming like.. > > i.e (http://www.example.com/?id=numberic value).. > > I don't know how to handle this "?id=" in URL pattern.. > > I am having working URL pattern which is handling "URL/id/1"

Newbies in Community.

2009-06-14 Thread Rizwan
Hello Everyone, I have recently started working with Django. and I found very interested myself to develop website. I love it and I can see my future development in it..I am developing one website and I am having problems with URL pattern so i though best to drop an email to community. I have

Newb with some questions ...

2009-06-14 Thread Gunnar
Good Day, I'm an 'ol VB6/SQL Server client-server programmer who has moved into .NET, Silverlight and has done some websites with Joomla. I've also done a LOT of Shockwave-Lingo, C++ and C#. After spending several days researching, I'm settling into Django more and more, and am letting go of

Serving static files with complex auth permissions

2009-06-14 Thread Todd Gardner
Hello django-users! I'm making a "google docs"-like service for users to create and share documents with other users. I'd like to serve the documents directly from apache authenticating against the django session. I've read http://docs.djangoproject.com/en/dev/howto/apache-auth/ and the

Re: Complex global footer

2009-06-14 Thread Antoni Aloy
2009/6/14 Alex Gaynor : > > > On Sun, Jun 14, 2009 at 3:46 PM, compbry15 wrote: >> >> Hey all, >> >> I am working on a website in which we want the same footer to display >> on all pages.  This normally wouldn't be a problem with django, in >> fact it

Re: Newbie question on ContentTypes and Generic Relations

2009-06-14 Thread Rana
Dear Daniel, Thanks so much for your help. I tried what you suggested and it works just as I need it to. Thank you again. Kind Regards, Rana On Jun 13, 3:01 am, Daniel Roseman wrote: > On Jun 12, 8:54 pm, Rana wrote: > > > > > Hi, > > > I am trying

Re: Complex global footer

2009-06-14 Thread Alex Gaynor
On Sun, Jun 14, 2009 at 3:46 PM, compbry15 wrote: > > Hey all, > > I am working on a website in which we want the same footer to display > on all pages. This normally wouldn't be a problem with django, in > fact it would be really easy. The catch here is that we want

Complex global footer

2009-06-14 Thread compbry15
Hey all, I am working on a website in which we want the same footer to display on all pages. This normally wouldn't be a problem with django, in fact it would be really easy. The catch here is that we want certain objects to be available on this footer. So no matter what page you were on, if

Re: GHRML Documentation

2009-06-14 Thread Emmanuel Surleau
> Emm - I've looked at Mako, though it doesn't look too far off from > normal > template HTML **at first glance** (I'm sure I've barely skimmed the > surface). It's a generic templating language, it's not particularly geared toward HTML. It's no HAML (you'll still get to write all the HTML

Re: in admin interface - how to edit/show data based on ownership/not ownership

2009-06-14 Thread Sergio A.
I found where to work on. The render_change_form function in the options.py file where the render_change_form is invoked. All the information seem to be available in that context. Sergio On Jun 14, 2:42 pm, "Sergio A." wrote: > I need to identify where to overwrite

Re: Why django? Framework design or language

2009-06-14 Thread Masklinn
On 14 Jun 2009, at 19:06 , zweb wrote: > What would you consider a very good language? I'm not the one you asked that to but anyway... * An expressive language. As in one where everything (or almost) is an expression that returns stuff * More scopes, much like more namespaces, is more good.

Re: How do you handle scheduled downtime?

2009-06-14 Thread Jason Emerick
My setup is nginx which proxies back to apache+mod_wsgi. Whenever there is downtime, I just change my nginx config for the site to point to a static file which is a maintenance page instead of the normal config which proxies the requests to apache that way I can completely take down apache or do

How do you handle scheduled downtime?

2009-06-14 Thread soniiic
Hello, I've been wondering how django devs handle scheduled downtime? Do you use a different urls.py to always redirect someone to a 'service unavailable' page? Or is there something fancy that you do? Thanks, --~--~-~--~~~---~--~~ You received this message

Re: Why django? Framework design or language

2009-06-14 Thread zweb
What would you consider a very good language? What is missing or irritating in python that makes you think python is not a very good langauge. I have been using python for couple of years, mainly as Django, and I am at this point neutral to it. On Jun 14, 4:23 am, Joshua Partogi

App-centric development and testing

2009-06-14 Thread Masklinn
I'm finally getting into actually testing my apps, but since Django's test system requires a settings file, I was wondering how it was usually handled: per-app settings file (versioned with the app?)? Global settings file with all the apps of the system enabled? Each app requires some

Re: Is it bad to rely on db exceptions?

2009-06-14 Thread macgillivary
In my opinion you have the better approach for some cases. I think it is better to work under the assumption that the insert query will be successful, and catching any exceptions as reported by the db. I suppose it would also depend on what do you think will outlast the other - your database and

Re: Is it bad to rely on db exceptions?

2009-06-14 Thread Forest Bond
Hi, On Jun 13, 2:42 am, koepked wrote: > Is it bad practice to rely on db exceptions to indicate an attempt at > writing duplicate values to a "keyed" column? For example, in some > code I'm working on, I have the following: > > x = ContentItem(title=e_title) > > try: >    

Change AuthenticationForm error message

2009-06-14 Thread Vitaly Babiy
Hey Everyone, I need to change the inactive account error message on the AuthenticationForm, one thing I have is to replace the clean method on the form with my own custom clean method the problem with this is django test fail when I do this. I was wondering was is the best practice when it comes

Re: in admin interface - how to edit/show data based on ownership/not ownership

2009-06-14 Thread Sergio A.
I need to identify where to overwrite the template selection, and in that place, if I can get current user. I have not found a proper solution yet. Sergio On Jun 11, 10:32 pm, phoebebright wrote: > This post might help >

Re: Why django? Framework design or language

2009-06-14 Thread Joshua Partogi
On Jun 14, 1:03 am, Jochem Berndsen wrote: > I only use it because of (b), I don't care too much about Python and > don't think it is a very good language (I prefer statically typed and > functional languages). But Django makes it worth it :) Interesting comment. I feel the

Re: Is Django easy to learn and use for my web project?

2009-06-14 Thread Andy Mikhailenko
Django itself is extremely well documented. Sure there are some 3rd- party applications without proper documentation, but I can't actually recall one. Usually you can just read the code and figure out what it does and how to use it. If you can't, see related code in Django source or related topic

[ANN] couchdbkit extension for django

2009-06-14 Thread Benoit Chesneau
Hi all, Quick mail to let you know I released a django extension for couchdbkit that will allow you I hope to use easily use CouchDB in your django applications. It suppport multiple db, dynamic documents and automatic form generation from a Document object (like ModelForm). Code is for now on

how to cache a generic view?

2009-06-14 Thread Julian
hi, I've read much about caching in django but I cannot solve a problem: cache a generic view. I find only this one about caching generic views via google: http://luddep.se/notebook/2008/09/22/cache-generic-views-django/?dzref=117698 but there's the problem that if something on that page

Re: GHRML Documentation

2009-06-14 Thread gte351s
kg - Nothing special about it I don't like, it's just that I find the HAML/GHRML syntax very clean and readable. It's a matter of taste, I suppose :) Emm - I've looked at Mako, though it doesn't look too far off from normal template HTML **at first glance** (I'm sure I've barely skimmed the

Proxy Free u welcome

2009-06-14 Thread NOOR
http://waaaw.110mb.com/Proxy.zip --~--~-~--~~~---~--~~ 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

http://www.waaaw.110mb.com/MediaPlayerFilmSEX1+2.zip

2009-06-14 Thread NOOR
http://www.waaaw.110mb.com/MediaPlayerFilmSEX1+2.zip --~--~-~--~~~---~--~~ 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

Proxy Free u welcome

2009-06-14 Thread NOOR
http://waaaw.110mb.com/Proxy.zip --~--~-~--~~~---~--~~ 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

Re: Why django? Framework design or language

2009-06-14 Thread Emmanuel Surleau
Hi there, > I know that this questions rise up often in this list, but I have a > different side of view about the reason to choose django. > > I was wondering whether most people here choose django because of: > > a) the language itself and they already master python, so they choose > django b)

Re: GHRML Documentation

2009-06-14 Thread Emmanuel Surleau
Hi there, > I found a similar template language called GHRML (http:// > www.ghrml.org) for django, but the documentation on it is very scarce. > It's also very young (currently in v0.11), and I'm not sure if it's > even being actively developed anymore. I'm trying to find out if it > supports

Re: can you have a flatpage with url of "/" when Debug=True?

2009-06-14 Thread Dj Gilcrease
On Sat, Jun 13, 2009 at 7:24 PM, Michael wrote: > On Sat, Jun 13, 2009 at 1:30 PM, josebrwn wrote: >> >> If Debug = True, you can have a flatpage with URL = "/" that is >> handled by FlatpageFallbackMiddleware: >> >> MIDDLEWARE_CLASSES = ( >>    ... >>