Re: Executing logic for each object in object_list

2008-12-25 Thread Antoni Aloy
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 --~--~--

Re: Getting value of field from form.

2008-12-27 Thread 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

Re: django i18n for google

2008-12-27 Thread Antoni Aloy
? 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

Re: request.user is set to None

2008-12-29 Thread Antoni Aloy
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

Re: reusing the same block in extends "base.html"

2009-01-02 Thread Antoni Aloy
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

Re: XML Serialization Speed

2009-01-25 Thread Antoni Aloy
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

Re: Change widgets in ModelFormSet

2009-01-30 Thread Antoni Aloy
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

Re: Template tags question

2009-01-31 Thread Antoni Aloy
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

Re: Reverse foreign key lookup with unknown model

2009-01-31 Thread Antoni Aloy
; 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 --~--~-

Re: table display with AJAX

2009-02-07 Thread Antoni Aloy
e/browse/#svn/trunk/jqagenda It uses a slighty patched version of jqgrid. -- 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"

Re: looking for working example of mptt

2009-02-09 Thread Antoni Aloy
2009/2/10 laspal <amit.las...@gmail.com>: > > hi, > Does anyone has a working example of django mptt. I am not able to > implement it. > On the docs you have the way to go. I've followed them and it works for me. Django-page-cms also uses it, so you can also look there. Hop

Re: Django and jQuery trouble

2009-02-10 Thread Antoni Aloy
(city) > > Could you please give me some idea? > Test your Ajax URL agains the view directly with the browser. It's seems there is some kind of problem there. view: def test_1(request, zipcode, pro): url (r'^ajax/test_1/(\S+)/$', test_1) At firsth sight they don't match with

Re: HttpResponse post

2009-02-16 Thread Antoni Aloy
t] > > >response = HttpResponse ("newUrl") >#¿POST? >return HttpResponseRedirect(response) > After a post you should use a HttpResponseRedirect(url). If you need to have access to the post parameters an option is to save them in a session, or encode them

Re: HttpResponse post

2009-02-17 Thread Antoni Aloy
t;application/x-www-form-urlencoded", ..."Accept": "text/plain"} >>> conn = httplib.HTTPConnection("musi-cal.mojam.com:80") >>> conn.request("POST", "/cgi-bin/query", params, headers) >>> response = con

Re: Authentication with LDAP

2009-02-18 Thread Antoni Aloy
quite nice tutorial, perphaps it would help you. http://www.carthage.edu/webdev/?p=12 The LDAP backend is quite simple, as it Active Directory backend, so perhaps you can debug it and tell where is your problem. On the other hand, remember that the ldap backend would be begore the default backend. --

Re: Authentication with LDAP

2009-02-19 Thread Antoni Aloy
2009/2/19 João Olavo Baião de Vasconcelos <joaool...@gmail.com>: > On Wed, Feb 18, 2009 at 7:17 PM, Antoni Aloy <antoni.a...@gmail.com> wrote: >> >> This is a quite nice tutorial, perphaps it would help you. >> http://www.carthage.edu/webdev/?p=12 > > Tha

Re: Django MPTT Admin

2009-02-26 Thread Antoni Aloy
here, but we'll see. > > In any case, you'll find the code on github: > http://github.com/matthiask/feincms/tree/master > > > Thanks, > Matthias > > It seems very nice. I'm going to give it a try. :) Thank you! -- Antoni Aloy López Blog: http://trespams.com Site: http

Re: i'm use first time how to use it

2009-02-28 Thread Antoni Aloy
2009/2/28 NK B <nkbalaj...@gmail.com>: > > hello >     i 'm use first  time. so don't know about DJango so u help me how > installed it and  develop it > > Just follow the Django tutorial and the ask in the list any problems you have. Best regards, -- Anto

Re: Should I use Django?

2009-03-08 Thread Antoni Aloy
provider.  Is there any reason why I should use Django on my > site, on the Google App Engine? > --~--~-~--~~~---~--~~ Is there any reason you should'nt? Plain CGI code sounds quite old even for me ;) -- Antoni Aloy López Blog: http://tres

Re: Should I use Django?

2009-03-08 Thread Antoni Aloy
Django, I think it's worth as it could make the project more maintenable in the future. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: i18n/setlang no longer support GET

2007-09-26 Thread Antoni Aloy
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 --~--~-~--~~~--

Problem with sessions

2007-10-02 Thread Antoni Aloy
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

Re: Consuming a SOAP services from Django

2007-10-17 Thread Antoni Aloy
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&

Re: Templates

2007-10-18 Thread Antoni Aloy
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"

Stub django project

2007-10-19 Thread Antoni Aloy
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

Re: CSS problem

2007-11-01 Thread Antoni Aloy
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

Re: CSS problem

2007-11-01 Thread Antoni Aloy
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

Re: CSS problem

2007-11-01 Thread Antoni Aloy
('', (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

Error in the http module in trunk

2007-11-11 Thread Antoni Aloy
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

Re: PostgreSQL with Psycopg2

2008-10-13 Thread Antoni Aloy
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

Re: How to use post_save signal

2008-11-05 Thread Antoni Aloy
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

Re: How can I print all of received variables in template ?

2008-11-11 Thread Antoni Aloy
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

Re: Template translation

2008-11-11 Thread Antoni Aloy
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

Re: Caching and I18n

2008-11-20 Thread Antoni Aloy
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 --~--~-~--~~

Re: Caching and I18n

2008-11-25 Thread Antoni Aloy
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:

Re: Best IDE for Django and python?

2008-11-25 Thread Antoni Aloy
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

Re: best practices for SOAP client in Django

2008-12-05 Thread Antoni Aloy
, 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:

Re: How to return a specified column from database

2008-12-13 Thread Antoni Aloy
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

Re: MySpace clone using Django? Is it possible?

2008-12-20 Thread 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

Re: PDF to Text Coverter

2008-12-22 Thread Antoni Aloy
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

Re: Basic CRUD form with navigation layout

2008-06-24 Thread Antoni Aloy
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

Re: Basic CRUD form with navigation layout

2008-06-25 Thread Antoni Aloy
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

Re: Basic CRUD form with navigation layout

2008-06-25 Thread Antoni Aloy
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

Re: Development environment

2008-06-25 Thread Antoni Aloy
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@

Re: Basic CRUD form with navigation layout

2008-06-25 Thread Antoni Aloy
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

Re: URLs rewrite

2008-07-09 Thread Antoni Aloy
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:

Re: changing code = restarting django??

2008-09-05 Thread Antoni Aloy
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 --~--~-~--~~~--

Re: Introducing django-cms

2008-09-08 Thread Antoni Aloy
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

Re: Introducing django-cms

2008-09-09 Thread Antoni Aloy
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

Re: Django / Postrges problem

2009-03-25 Thread Antoni Aloy
see which querie consumes more time, it should be the cron job one. -- 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

Re: Fulltext searching

2009-03-27 Thread Antoni Aloy
;> searching to your models.  Are these better than the mysql fulltext >> searches? I prefer to stay away from database indexing so the application is database agnostic. I have integrated xapian successfully in some projects using django-xapian, and it works quite well. You can see it in action in t

Re: multiple django versions in mod_python

2009-04-04 Thread Antoni Aloy
for that http://blog.ianbicking.org/2007/10/10/workingenv-is-dead-long-live-virtualenv/, that allows us to mantain diferent versons of applications with their own dependencies. Best regards, -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~-

Re: Novice. - _unicode_(self) not working. :(

2009-04-05 Thread Antoni Aloy
lished') >        def  _unicode_(self): __unicode__(self) with two underscores -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: How to get session data from template

2009-04-05 Thread Antoni Aloy
_authenticated %}, the user object is only > available in one request but will be dissapeared in the next request. In your render_to_response don't forget to add context_instance=RequestContext(request) Hope it helps! -- Antoni Aloy López Blog: http://tres

Re: how to redirect to previous page

2009-04-21 Thread Antoni Aloy
> You can save the previous page in a session variable before making the redirect and then use it in the foo page. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Category list in Django

2009-05-10 Thread Antoni Aloy
2009/5/10 Bro <coolpari...@gmail.com>: > > How to create a correct Tree of category ? > Take a look at django-mptt at http://code.google.com/p/django-mptt/ it would help you a lot. -- Antoni Aloy López Blog: http://trespams.com Site:

Re: Category list in Django

2009-05-10 Thread Antoni Aloy
the category tree. -- 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

Re: Parsing the arguments in HTTP GET

2009-05-15 Thread Antoni Aloy
ect.com/en/dev/ref/request-response/) or you can rethink your application urls so they could be as: http://example.com/data/2/1#label//fetch so they could match ^data/(?P\d+)/(?P\w+)/(?P\w+)/(?P)/$ hope it helps. -- Antoni Aloy López Blo

Re: Trouble using pdb with manage.py runserver

2009-05-16 Thread Antoni Aloy
wyou test it with the noreload parameter? On the other hand I prefer to use import pdb; pdb.set_trace() in my code to set the breakpoint. You can also use winpdb, or even the Eclipse+pyDev debugger, but you have to run manager with the noreload option. -- Antoni Aloy López Blog: http://trespams.com S

Re: Counting pageviews

2009-05-16 Thread Antoni Aloy
nd this could have a great impact in performance. It depends on your needs and application. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: how to refer a foreign key to a non primary column from other model

2009-05-16 Thread Antoni Aloy
rom auth_user table. > > class details(models.Model): >   new_foreign_col = > http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey Check: ForeignKey.to_field Hope it helps! -- Antoni Aloy López Blog:

Re: parsing data from fileupload

2009-05-17 Thread Antoni Aloy
t a real table? I'm confused ... Please check http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ it would help you a lot to deal with file uploads. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~---~--~~ You received this mess

Re: Free eBook: Django 1.0 Website Development

2009-05-22 Thread Antoni Aloy
hould avoid this kind of posts. -- 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, sen

Re: image upload

2009-06-05 Thread Antoni Aloy
s http://code.google.com/p/appfusedjango/source/browse/#svn/trunk/thumbs_prj? -- 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&quo

Re: Complex global footer

2009-06-14 Thread Antoni Aloy
ould be to create your own template tag. Write it and use it in the footer. Remember that is just Python code, so you can use the Django cache API. Use the template tag in the base.html and inherit the other templates from base. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~

Re: trouble w/images

2009-06-20 Thread Antoni Aloy
filename), 'w') >    resizedImage.save(imagefile,'JPEG') >    imagefile = open(os.path.join('/tmp',filename), 'r') >    content = File(imagefile) > > >    path = 'img/testupload/2009/06/20/' >    imagepath = path + filename > >    #my_object = ImageTest.objects.all() >

Re: Sessions Not working.

2009-06-25 Thread Antoni Aloy
e you sure you're saving it in the database? >From your configuration I just see python2.3 too old for my preferences. You should also use Django 1.0.2 as its the last estable version (if you don't want to work in the cutting edge of course). Hope it helps! -- Antoni

Re: Password-protecting PDF downloads?

2009-06-29 Thread Antoni Aloy
before it's downloaded? Take a look at http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/ to port to Django or http://www.djangosnippets.org/snippets/491/ On this way you can control who has the rights to download a file without password protecting it. Hope it helps! -- Antoni

Re: dynamic inserting items to template

2009-08-10 Thread Antoni Aloy
; for i in xrang(10): >    insert checkbox > > thanks for reply > > You can create a template tag to do the work for you and pass the number of items you want as a parameter. You can also create using javascript and use a django template variable to set the counter. -- Antoni Aloy López

Re: is Django a good choice for a LAN app?

2009-08-11 Thread Antoni Aloy
a rapid development and that you have lots, tons of libraries and routines that are goint to help you. Actually developing web applications for internal use has lot of sense and protects your inversion, as the actual application you're making today for internal use, coud be accessible from outside th

Re: i18n javascript problem

2009-08-18 Thread Antoni Aloy
e name of your project, isn't it? You have to remember to include the url for the translation javascript as the documentatios is well explained. On the other hand, I have experienced some problems getting the javascript keys from the templates. The workarround I have found is to have all the javascri

Re: Django and ZSI

2009-08-31 Thread Antoni Aloy
oth live perfectly with Django. -- 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 d

Re: Showng the primary key in admin view

2009-09-02 Thread Antoni Aloy
def __unicode__(self): return u'%s : %s' % (self.id, self.name) On the other hand it you can use also list_display, but requires to create an admin.py file. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~---~--~~ You

Re: Django, Blueprintcss and a data array

2009-09-05 Thread Antoni Aloy
                   {% endfor %} >                 > >           {% endfor %} >         > > > > > {% endblock %} > I would add surronding the table code, but I can't see any problem. Please post the error. In my oppinion you'll have to check the dataarray as it se

Re: Running Django on Tornado's HTTP server

2009-09-13 Thread Antoni Aloy
using Tornado with your Django projects, > please let us know what bugs you find so we can fix them. Any and all > feedback is appreciated. > We're acually using Cherrypy, so it would be quite easy to test and check the performance. We'll post any issues we found. Thank you! --

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Antoni Aloy
2009/9/13 Antoni Aloy <antoni.a...@gmail.com>: > 2009/9/13 Bret Taylor <btay...@gmail.com>: >> >> I am one of the authors of Tornado (http://www.tornadoweb.org/), the >> web server/framework we built at FriendFeed that we open sourced last >> week (see ht

Re: Running Django on Tornado's HTTP server

2009-09-19 Thread Antoni Aloy
uration with CherryPy in WSGI mode involves a nginx server acting as a reverse proxy and serving the media files. I use the configuration without nginx pointing directly to the WSGI server just to make sure that all the media points to right server. That is, that I have

Re: Breakpoints in NetBeans

2009-09-21 Thread Antoni Aloy
, to set the breakpoint in the code. When I really need a visual debugger and more advanced features I run python manage.py runserver --noreload with winpdb, a nice graphical debugger which has nearly everithing I like to have in Netbeans IDE. -- Antoni Aloy López Blog

Re: Running Tornado instead of modwsgi apache

2009-10-15 Thread Antoni Aloy
ur own code, tune your database, then your web server and then perhaps you have to consider other server options. In our case our reason to move from apache+wsgi configuration to a ngnix + WSGI CherryPy/Tornado configuration not was performace but resources. Even loosing some performance the relation be

Re: Building a form to write one of two models

2009-10-16 Thread Antoni Aloy
classes that > are instantiated. You can create a factory for the form. That is, given the information from the html, you choose wicht form to instantiate. def get_form(param): if param == 'op1': return Form1 elif param =='op2': return Form2 ... On the view file MyForm = get_form(par

Re: using ajax with django

2009-10-19 Thread Antoni Aloy
ould i download and install ajaxcontroltoolkit. > To use ajax you need to be able to make AJAX connections through javascript and make your view.py code to return the right format depending on the request (html, xml, json). So theres nothing special you need to install. -- Antoni Aloy López Blog: http://tres

Re: "can't adapt" - mod_python, multiple interpreters, psycopg2

2009-10-21 Thread Antoni Aloy
et_aggregation result = query.execute_sql(SINGLE) File "/usr/local/virtualenvs/trobacasa/lib/python2.5/site-packages/django/db/models/sql/query.py", line 2369, in execute_sql cursor.execute(sql, params) ProgrammingError: can't adapt -- Antoni Aloy López Blog: http://trespams.com

Re: syntax error what am i doing wrong???

2009-10-26 Thread Antoni Aloy
gt; return HttpResponse(output) > > > > At first sight: you need triple quote string not single. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: debug toolbar problem

2009-11-01 Thread Antoni Aloy
roblem may lie? Are you caching your pages? Are you using Django ORM? -- 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.

Re: Migrating a Wordpress website to Django

2009-11-02 Thread Antoni Aloy
s/306 >> I migrated my own blog (trespams) from Wordpress to Django. The main difficult was to take care of tags and html conversions. You can mantain url with Django Redirect and hardcondig some of the others in urls.py. I had to create a migration script but this was just a matter of hours

Re: language switching in admin

2009-11-07 Thread Antoni Aloy
and giving them a change language form? -- 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,

Re: The job of a django web designer

2009-11-15 Thread Antoni Aloy
he development team and for that she must understand the django template system as well as subversion and to be able to code without Dreamweaver. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net -- You received this message because you are subscribed to the Google G

Re: Django i18n

2009-11-16 Thread Antoni Aloy
in advance. Hi Ricardo, Just have a look at http://code.google.com/p/appfusedjango/source/browse/#svn/trunk/appagenda, you'll find an agenda example with different languages. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net -- You received this message because you are subs

Re: style guide/autoformatter/linter for Django templates?

2009-12-01 Thread Antoni Aloy
, it has Django template syntax support as well as Django project support. It's a nice and fast editor, and it has one of the best autocomplete feature for Python and Django that I have seen so far. -- Antoni Aloy López Blog: http://trespams.com Site: http://apsl.net -- You received this m

Re: Time estimation for a Django project

2007-11-16 Thread Antoni Aloy
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

Understanding per view cache

2007-12-09 Thread Antoni Aloy
, 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

Re: Understanding per view cache

2007-12-09 Thread Antoni Aloy
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

Re: Model advice, i18n and content

2007-12-12 Thread Antoni Aloy
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

Re: i18n/setlang no longer support GET

2007-12-19 Thread Antoni Aloy
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

Re: Making a front end administration

2007-12-23 Thread Antoni Aloy
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:

Re: Cache problem with language

2008-02-02 Thread Antoni Aloy
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

Re: best example/tutorial for AJAX + Django

2012-02-15 Thread Antoni Aloy
ers" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- Antoni

Re: DatabaseError at /admin/ attempt to write a readonly database

2012-05-27 Thread Antoni Aloy
send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- Antoni Aloy López Blog: http://trespams.com S

My first troll

2012-05-28 Thread Antoni Aloy
trolling, as the trolls usually means the project is mature enought, and Django really is. Thanks for reading! -- 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

Re: Help for finance sector

2012-07-29 Thread Antoni Aloy
group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Antoni Aloy López Bl

  1   2   >