; a = A()
>
Just use a property in A
class A(models.Model):
@property
def connected(sefl):
try:
x = self.b
except: # put the real exception here
x = self.c
return x
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-
your logic to pass the data in a
way that could be iterated and presented in the way you want.
So just pass to the template the list wicth contains the fnal data.
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
You received
eset are generated
following alwasy the same rules, so you can be sure that id would be
always the same. Get the id and add a css acording, for exemple.
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
You received this m
ype and test the performance for each.
For one of my applications I found that lxml+mako templates was the
best solution for me, but perhaps it's not your case.
http://diveintopython.org/performance_tuning/timeit.html
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
gt;
>
You can create a tag, depending on how your application is could make
sense. What's clear is that you can't use the same block name twice.
Best regards,
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
You receive
cant access to its properties.
So double check that you have SessionMiddleware and
AuthenticationMiddleware configured in your settings.py, and if it
fails give more information about how you're accessing to the User
object.
Hope it helps!
--
Antoni Aloy López
Blog: http://tres
?
You could create a url that links to your localized site so Google
would be able to crawl it, but I suppose that your site depens on
changing the language via POST, isn't it?
I that case, you could write yourselve the code and allow changing the
code using GET.
--
Antoni Aloy
emplate it's just a matter to write {{form}}
Hope it helps!
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
practice to have database-
> insertion logic inside template tags.
> --~--~-~--~~~---~--~~
Sounds like a work for signals
http://docs.djangoproject.com/en/dev/topics/signals/
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~--
ask.
>
> Is there any python library is available to read a pdf files... ?
>
> Or any library to convert the pdf into text files?
>
> If you have any idea about above issues
>
> please let me know...
>
> Regards
> Harish Bhat M
--
Antoni Aloy
users and company needs that getting a pre-built
solution and just change the css.
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
other querying methods.
>>
>> --
>> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
> >
>
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
You received t
, connection pooling etc
For the Django point of view is just another library, in the form of a
service we instatiate in the application __init__.py.
I don't know if this is the best way to do it, but it works quite well for us.
Best regards,
--
Antoni Aloy López
Blog: http://trespams.com
Site: http:
2008/11/25 Kurczak <[EMAIL PROTECTED]>:
>
> I wonder why no one mentioned Komodo IDE or Komodo Edit.
> They're my personal favorites for bigger projects. Both are well
> suited for dynamic languages and really lightweight compared to
> Bloatclipse with pydev (or aptana).
I have tested Komodo
round for the next
> one and will give feedback once that's been done.
>
It's nice to help!
But you have to consider this is my first patch on Django core, and I
just be really sure that everything is ok when one of django main
developers double check the tests :)
--
Antoni Aloy López
Blog:
it
> should be fairly straightforward as well. So it looks close.
>
> Regards,
> Malcolm
Anybody on this thread is going to take the ticket? I could take a
look at it and make the tests.
Best regards,
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~
e using the right language in your browser, that is the
language on which you want the pages or you have managed yourself to
change the languaje.
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
You received this messag
2008/11/11 K*K <[EMAIL PROTECTED]>:
>
> Hi, all.
>
> I want to write a page template for test my program.
>
> How can I print all of variables posted to the template?
>
> Just like Django's error page.
well, just check the Django code ;)
--
Antoni Aloy López
instancia = kwargs['instance']
# Creates the object who's going to store the username
usuari = Eliminat(user=instancia.username)
# and the save it
usuari.save()
pre_delete.connect(registra, sender=User)
}}}
Hope it helps!
Best r
sql-client-8.3
>postgresql-contrib-8.3
> 5. Psycopyg2-2.0.8.tar.gz - Downloaded & Installed.
>
> Have you tried to import Psycopyg directly from the Python interpreter?
Double check that you really have psycopg2 installed. On ubunto to th
/usr/lib/python2.5/site-pacakges and type
2008/9/8 Thomas Steinacher <[EMAIL PROTECTED]>
Hi Thomas!
>
> @Antoni Aloy:
> What do you mean by integration? Like integrating other applications
> (e.g. a gallery) into the CMS? We're still looking for a good solution
> to do that (e.g. by providing an API which allows to
opment and we would appreciate any
> feedback and contributions.
>
>
I also like very much http://code.google.com/p/django-page-cms/ . Your
project seems more oriented to a end user cms, and
django-page-cms is more oriented towards integration.
Anyway I like the idea of have a multi-language Django-based c
t; In php when you change the code there is no need to restart the
> server, but in j2ee its necessary to recompile everything. how does
> that work in django?
>
> >
>
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~--
gt;
> http://www.mysite.com/widgets/purplewidget.php
>
> needs to redirect to
>
> http://www.mysite.com/widgets/purplewidget/
It seems a task for apache mod_rewrite
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
Hope it helps!
--
Antoni Aloy López
Blog:
Hi Leandro,
I have updated the appfusedjango to show an example of grid with
search and pagination using jqGrid with a minor patch to use it with
Django.
Hope it helps!
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
e mode.
Best regards,
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.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@
my free time.
Best regrads,
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
ion.
Best regards,
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.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@goo
hould
read about django newforms, on the second one you should read about
your RIA (Dojo, jQuery, extjs, etc) and the documentation about Django
serialization.
Best regards,
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
--~--~-~--~~~---~--~~
Yo
age()
for header in headerlist:
value = request.META.get(header, None)
if value is not None:
ctx.update(value)
return 'views.decorators.cache.cache_page.%s.%s.%s.%s' % (
key_prefix, iri_to_uri(request.path), ctx.hexdigest(),lang)
cache._generate_cac
uce data to the application, and lest you to administer the
data in a friendly way.
Users usually want's more and more and you will find yourself hacking
the Django admin code to fit the user needs.
--
Antoni Aloy López
Binissalem - Mallorca
http:
he
> developer. It would be better if the view supported both ways and the
> developer could choose whether they wanted functionality or spec
> compliance. This isn't a simple change, and it shouldn't be decided
> just like that...
Same as I.
It's easy to solve, but it's quite annoying th
Just an issue, I've lots of problems with Django i18n and cachés. So
if you decide not to use different urls for the language and just take
the page language from the browser or let the user to change it
manually, be careful with per-view-cache as far as I know is not i18n
friendly.
--
Antoni
I have one solution (patching the cache) so the cache key is generated
using the current language.
What I can't see is that the key generation takes into account the
vary headers to generate the cache, so perhaps I have not undesrtood
the documentation.
--
Antoni Aloy López
Binissalem
, but I not able to make it work.
Any ideas?
I have a test project in http://code.google.com/p/appfusedjango/source
if somebody want's to play with it.
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat
n is more undertandable than function points and
in my oppinion gives better estimation results for web projects.
Hope it helps!
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat
--~--~-~--~~~---~--~~
You received
versions as in 6473.
Anybody has a similar problem?
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
('',
(r'^media/(?P.*)$', 'django.views.static.serve',
{'document_root':'./media/'}),
)
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat
--~--~-~--~~~---~--~~
You received this message because you
l see how it
deals with the media.
On the other hand, it just uses the ideas of
http://www.djangoproject.com/documentation/0.96/static_files/ but
splitting the configuration .
The trunk version is rock solid and has lot of improvements.
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams
mod_python also i prefer using the development
> server for sometime)
>
> Goutham
>
I have created an small start project with django, that will show you
how to load css and image files from the development server
http://appfusedjango.googlecode.com/svn/
Hope it helps!
--
Antoni A
Hello!
I have just created a project at
http://code.google.com/p/appfusedjango/, the idea is to have a simple
application to start with which shows and solves some of the common
questions one can have when starts a project.
Hope it helps!
--
Antoni Aloy López
Binissalem - Mallorca
http
s the language, or
perhaps I'm missing something...
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
ce
module and the model module.
Hope it helps!
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&
but it would be nice to know it
somebody has the same problem or "is only on my machine".
Regards,
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat
--~--~-~--~~~---~--~~
You received this message b
lowed.
That's true, but this makes i18n/setlang unworth for usual
applications, so I would prefer to have the option to be a bad boy and
use the GET request.
--
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat
--~--~-~--~~~--
101 - 145 of 145 matches
Mail list logo