On 13.06.2009 21:19, Luc Saffre wrote:
> Can somebody explain what's going wrong there?
Okay, I now looked into Django's code and understood a few things:
I imagined that Django finds out the models of a project by looking into
the "models" module of each application. That's wrong.
django.models
OK, I found, I have to write the path in request.path_info !!!
It works !
--~--~-~--~~~---~--~~
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 uns
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
one simple idea ( it may or may not be feasible ) that you can use is
1) write down a middleware
2) examine the context which has a form and with the above error
message
and replace it with your new error message
On Jun 14, 5:45 pm, Vitaly Babiy wrote:
> Hey Everyone,
> I need to change th
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 django-users@googlegro
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 pr
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 pyt
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,
>
> >> I am working on a website in which we want the same footer t
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 Apache/mod_wsgi and its daemon mod
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 is
> >> handled by FlatpageFallbackMiddleware:
> >>
> >> MIDDLEWARE
> 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 D
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 like to be able to hook t
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:
http://www.n
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 forming like..
>
> > i.e (http://ww
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 wrong with comparing these plugables: http://www.djan
> 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" thi
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 go
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 the
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
excelle
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 would be really easy. The catch here is that
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 to modify a blog and article model that wil
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 certain
> objects to be ava
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 y
> 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 yours
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 the template selection, and i
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. An
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 w
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 becau
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 wrote:
> On Jun
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 kind
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 d
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:
> x.save()
> except My
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
t
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
> -http://groups.google.com/group/django-users/browse_thread/thread/c84d.
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 same way too. Yeah dja
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 bi
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 change
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
surfa
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 g
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)
47 matches
Mail list logo