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
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?
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
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.
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
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
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
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,
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
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
> 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
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
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:
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
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
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
> 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"
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
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
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
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
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
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
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
> 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
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
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.
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
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
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
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
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
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:
>
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
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
>
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
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
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
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
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
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
--~--~-~--~~~---~--~~
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
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
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)
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
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 = (
>> ...
>>
46 matches
Mail list logo