Why must {% extends '' %} be first value in template? Inconvenient for ajax versions.

2010-03-27 Thread David Hollander
very inefficient OR violate the DRY principle. What is the best idiom to handle this situation? Thank you for your time. -David -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups

Re: Why must {% extends '' %} be first value in template? Inconvenient for ajax versions.

2010-03-28 Thread David Hollander
Goal: produce responses for both ajax and regular requests with a single render_to_response call and no extraneous templates. Solution: 1. dynamic extends. mypage.html: {% extends base %}. base="mybase.html" or "ajaxbase.html" pros: one render_to_response call. cons: Have to create extra dummy temp

Re: TemplateDoesNotExistError makes no sense

2010-04-11 Thread David Zhou
On Sun, Apr 11, 2010 at 4:26 PM, Dexter wrote: > I have a server running with primarily nginx and secundary apache2, > And I am getting an template error trying to browse an app. It seems it > cannot find a template, but it is certainly there, the runserver just works > fine. Everything in progr

Re: Giving up PHP. ...Can't decide between Django & Rails

2010-04-14 Thread David Hollander
I went with Django because of Python. It is a multi-purpose language that is used in the sciences, social sciences, and scripting for software\videogames. Ruby on the other hand is primarily known just for Rails. I also figured Python would be faster and only get faster due to Google's Unladen Swal

request.POST.getlist('fieldname') / repeated rows of fields

2007-06-10 Thread David Priest
request.POST returns a QueryDict object for those fields that have the same key. The key appears to be assigned by Django when it magics the form and template into an http response. It seems difficult to get Django to deal with multiple lines on a form, ie. as when creating almost any busi

Re: WebFaction celebrates its 1000th Django site with free Django hosting

2007-06-11 Thread David Reynolds
artin Glueck Sam/Musicpeeps.co.uk Jay Parlar Vinay Sajip Niels Poppe Jesse Wolfe David Reynolds Adam Fast Ramiro Morales Yhsla Jones Thank you to everyone who entered the draw. Thanks for this, I look forward to putting it to some good use :) Thanks, David -- David Reynolds [EMAIL PROT

Re: request.POST.getlist('fieldname') / repeated rows of fields

2007-06-11 Thread David Priest
underscore.) The names come out as line_1-FieldName. It's then child's play to tell which datum belong to which field. :) Happy, happy! On 07-Jun-10, at 6:10 PM, David Priest wrote: > > request.POST returns a QueryDict object for those fields that have > the same key. The

Re: request.POST.getlist('fieldname') / repeated rows of fields

2007-06-11 Thread David Priest
script work, one does want the id to be unique. Right now, both attributes get nailed, which makes them far less useful in distinguishing things 2- dimensionally (by row and by field group). On 07-Jun-11, at 3:21 PM, Malcolm Tredinnick wrote: > > On Mon, 2007-06-11 at 15:10 -0700,

Re: Sitemap questions (probably dumb ones)

2007-06-12 Thread David Larlet
ow anything about, since it only exists to > archive the old php-based board. > I have exactly the same question about pages which don't match a django models and which are not FlatPages. For example /, /blog/, /products/, etc. I can't find any example about that. David --~--

Re: request.POST.getlist('fieldname') / repeated rows of fields

2007-06-12 Thread David Priest
Well, now, that is an interesting find. It seems to me the upcoming prefix attribute should result in a dotted name, not a dashed one, so that one could make good use of this utility. On 07-Jun-10, at 9:35 PM, SmileyChris wrote: > django.utils.datastructures.DotExpandedDict --~--~

Re: get subversion revision-number in a django-project

2007-06-15 Thread David Reynolds
pt-get install python-subversion on Debian. These give you python svn client bindings so you should be able to use that to find out the revision number. Cheers, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread David Larlet
2007/6/13, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >> I've been playing with the sitemap stuff and am finding it to be quite > >> slick. I do, however, have some questions

Re: Hosting for Django

2007-06-15 Thread David Reynolds
). Hope that is of some help. Thanks, David On 15 Jun 2007, at 11:53 am, Christian M Hoeppner wrote: Hi there! This is a message for all those that have been successful in deploying django. It is not that I find myself unable to get a django project to show up in a web browser, but I

Re: Sitemap questions (probably dumb ones)

2007-06-15 Thread David Larlet
2007/6/15, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > 2007/6/13, John DeRosa <[EMAIL PROTECTED]>: > >> David Larlet wrote: > >>> 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >>>> I've been playing

Re: Sitemap questions (probably dumb ones)

2007-06-16 Thread David Larlet
2007/6/16, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > > > Any thoughts about this implementation? > > I think you could get rid of FakeObject() completely: > > class MainSitemap(Sitemap): > priority = 0.8 > > def items(self)

Re: newforms, manytomany, default value.

2007-06-16 Thread David Priest
Lordy, I would dearly *LOVE* for someone to answer your question! On 07-Jun-5, at 6:52 AM, larry wrote: > >> I'm not sure what "a patch in the development tree" means here. >> Current >> subversion trunk doesn't seem to have anything like that. > > Sorry for not being clear -- I'm (obviously)

Re: request.POST.getlist('fieldname') / repeated rows of fields

2007-06-17 Thread David Priest
It also appears that a dashed name can cause problems in templates, as it is interpreted as minus sign. On 07-Jun-12, at 5:42 PM, David Priest wrote: > Well, now, that is an interesting find. > > It seems to me the upcoming prefix attribute should result in a > dotted name, not

Mysql sleeping queries

2007-06-18 Thread David Reynolds
ay be doing this? Versions: apache 2.0.54 mysql 4.0.24 mysqldb 1.2.1c2-1 If anyone can shed any light, I'd be very interested to know. Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Mysql sleeping queries

2007-06-18 Thread David Reynolds
On 19 Jun 2007, at 6:56 am, Gábor Farkas wrote: hi, i have no idea what went wrong, but to the developers it certainly would help, if you could find out exactly which revision broke the mysql behaviour. Difficult to tell since we hadn't svn up'd for a while... -- David Reyno

Re: Mysql sleeping queries

2007-06-19 Thread David Reynolds
thing we can do to stop this? Thanks for your help, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Apache auth

2007-06-19 Thread David Reynolds
magazine/modpython.py", line 2, in ? from django.core.handlers.base import BaseHandler ImportError: No module named django.core.handlers.base Anyone have any ideas why this might be happening? Thanks, David [0 - http://www.djangosnippets.org/snippets/62/] -- David Reynolds [EMAIL PROTECTE

Re: Introducing DjangoSites.Org

2007-06-20 Thread David Reynolds
DEFAULT_FROM_ADDRESS (if you've not already ;) ) and resend me the email (or delete the account so I can re-add it). Account Username is: Paperface Thanks, David On 20 Jun 2007, at 11:15 am, [EMAIL PROTECTED] wrote: A week ago I posted about a project I was working on, Djangosites.org. It's inte

Re: Introducing DjangoSites.Org

2007-06-20 Thread David Reynolds
On 20 Jun 2007, at 12:33 pm, [EMAIL PROTECTED] wrote: On Jun 20, 9:04 pm, David Reynolds <[EMAIL PROTECTED]> wrote: Could you fix your DEFAULT_FROM_ADDRESS (if you've not already ;) ) and resend me the email (or delete the account so I can re-add it). David, I've fixed th

Re: Mysql sleeping queries

2007-06-20 Thread David Reynolds
have done some testing and it does seem to appear in 5482, as Malcolm suggested. 5481 is fine, 5482 starts the hanging mysql processes. Hope that helps, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: too many connections django 0.96 does not close connections

2007-06-20 Thread David Reynolds
ns or socket connections ( DISCLAIMER: I read this on experts exchange ). Hope that helps a bit, thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: Mysql sleeping queries

2007-06-21 Thread David Reynolds
, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

ANN: Django-fr.org is out!

2007-06-21 Thread David Larlet
ng-list if you have any question or if you are motivated (have a look at the participate page on the site), we hope that new community will create passionate django users like the english one ;-). David --~--~-~--~~~---~--~~ You received this message because you are

Re: 'retrieve': the missing permission?

2007-06-22 Thread David Larlet
2007/6/20, David Larlet <[EMAIL PROTECTED]>: > 2007/6/20, Gábor Farkas <[EMAIL PROTECTED]>: > > > > David Larlet wrote: > > > 2007/6/18, David Larlet <[EMAIL PROTECTED]>: > > >> Hi, > > >> > > >> I've just tried to

Re: Apache auth

2007-06-22 Thread David Reynolds
make it into trunk. Can I ask what mod_python/apache versions you are using? I can fairly consistently get this error, however I have to replace: SetHandler python-program with: SetHandler none or else I get a 404 from django. Perhaps I am missing something? Thanks, Dave -- David Rey

Re: Apache auth

2007-06-25 Thread David Reynolds
suggestions greatly appreciated. Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: 'retrieve': the missing permission?

2007-06-26 Thread David Larlet
2007/6/22, Chris Brand <[EMAIL PROTECTED]>: > > > > I just wonder why this permission is not part of the default > > > permissions (like add, change and delete)? > > > > > > David > > > > > No more thoughts about that? I'm really

Re: ANN: Django-fr.org is out!

2007-06-26 Thread David Larlet
//django.es/ > > Regards, > > -- > Ramiro Morales > Wow, we're glad to motivate this new community! That's just awesome, let's spread the world ;-). David --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: 'retrieve': the missing permission?

2007-06-28 Thread David Larlet
2007/6/26, David Larlet <[EMAIL PROTECTED]>: > 2007/6/22, Chris Brand <[EMAIL PROTECTED]>: > > > > > > I just wonder why this permission is not part of the default > > > > permissions (like add, change and delete)? > > > > > >

Re: 'retrieve': the missing permission?

2007-06-28 Thread David Larlet
2007/6/28, David Larlet <[EMAIL PROTECTED]>: > 2007/6/26, David Larlet <[EMAIL PROTECTED]>: > > 2007/6/22, Chris Brand <[EMAIL PROTECTED]>: > > > > > > > > I just wonder why this permission is not part of the default > > > > > pe

Re: Unicode branch merged into trunk

2007-07-04 Thread David Reynolds
On 4 Jul 2007, at 1:41 pm, Malcolm Tredinnick wrote: I have just finished merging the Unicode branch into trunk (in r5609). Fantastic news! What's the status of newforms-admin (just out of interest). Thanks to everyone whose good work has gone into the Unicode branch. Cheers,

function to generate choices list

2007-07-06 Thread David Reynolds
oes anyone, please have any idea how I could do this? Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: function to generate choices list

2007-07-10 Thread David Reynolds
. This, again wouldn't work on our production server, I think because it is running Python 2.3 still (but there could be some other reason). Just for completeness, the fix I used in the end was to make a custom field which rendered with a list of folders from the filesystem. Thanks,

Re: is there any host servers that supports Django based sites?

2007-07-14 Thread David S.
> Webfaction django hosting rocks. I second that. Truly professional, responsive, and helpful. Peace, David S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

newforms-admin: admin related field options

2007-07-14 Thread David S.
I am using the newforms-admin branch, which is really great. But I realized I still have admin specific fields options in my model, e.g. blank, choices. I am wondering where they really belong. Thanks, David S. --~--~-~--~~~---~--~~ You received this message

Re: is there any host servers that supports Django based sites?

2007-07-15 Thread David S.
> can I get a link to Webfaction? googling webfaction --> http://www.webfaction.com/ --~--~-~--~~~---~--~~ 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@googlegrou

Re: Blog engine

2007-07-17 Thread David Reynolds
e Django's generic date views [1] and you're pretty much there. Seems like such a good first project to write in Django as well 0 - http://code.google.com/p/django-tagging/ 1 - http://www.djangoproject.com/documentation/generic_views/#date- based-generic-views -- David Reyno

Re: Blog engine

2007-07-17 Thread David Reynolds
ment-utils [0] has spam protection and moderation. RSS feeds are easily done within Django [1] Next? 0 - http://www.b-list.org/weblog/2007/06/25/hacking-comments-without- hacking-comments 1 - http://www.djangoproject.com/documentation/syndication_feeds/ -- David Reynolds [EMAIL

Re: Bulk data upload

2007-07-18 Thread David Reynolds
it unpacked automatically, but how do I automagically assign the images with the product, having in mind that some might have 5 pics and others might have 2 or none. What about CSV? You can export from Excel as CSV pretty easily and it's a fairly easy format to parse in python...

Authentication for application with subdomains

2007-07-19 Thread David Marko
django 'sites' approach is not suitable. Thanks for any advice and hits. David --~--~-~--~~~---~--~~ 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: Authentication for application with subdomains

2007-07-19 Thread David Marko
> One possible solution would be to append the domain name to the > username before authentication. The user types in 'bob', then the > system munges it to 'bob.sub.domain.com' before doing the validation. ### this approach should work . Do you use it for your app? Any experiences? --~--~--

How to do not escape a unicode string in Django

2007-07-23 Thread David Larlet
;ve got unicode, it auto-escape my \n and it returns: >>> myobject \n\n Is there a simple way to unescape unicode strings? Have I missed something? (I hope I don't need to rewrite all my tests...) David --~--~-~--~~~---~--~~ You received this mes

Re: Blog engine

2007-07-23 Thread David Reynolds
(I did this for Magnolia recently.) http://code.google.com/p/jellyroll/ Pretty sure I mentioned most of these earlier in the thread... -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: How to do not escape a unicode string in Django

2007-07-24 Thread David Larlet
gt;> print myobject # call __str__ Title of my object >>> myobject # call __repr__ Before I switched to the unicoded trunk, it works perfectly but know unicoded string were escaped so I have: >>> myobject # call __repr__ \n\n\n Th

Re: How to do not escape a unicode string in Django

2007-07-24 Thread David Larlet
2007/7/24, David Larlet <[EMAIL PROTECTED]>: > 2007/7/23, Jacob Kaplan-Moss <[EMAIL PROTECTED]>: > > It's probably just your shell; try ``print myobject`` instead. > > Before I switched to the unicoded trunk, it works perfectly but know > unicoded string were

Re: mod_python, multiple django-sites, memory usage

2007-07-24 Thread David Reynolds
it. Presumably the more sites we get, the worse this problem will get and it may be wise for us to look into using mod_fastcgi in future. Does anyone have any experience of using fastcgi with 30 odd sites? Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIM

Re: Generating charts with ReportLab

2007-07-30 Thread David Reynolds
s If anyone is interested in a sample for a Pie or Scatter chart, let me know, and I can add samples of these as well. I would say, go ahead and add them, as I'm sure many people will find them useful at some point. Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Descripti

Re: a rather big, new django site:

2007-07-30 Thread David Reynolds
running! :-) Not working as of 9:21am GMT. I'm getting a Forbidden, You don't have permission to access / on this server. Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: loading fixtures: no error, no data

2007-08-01 Thread David Reynolds
using the database referred to in the other one's settings file? Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: mod_python/django problems

2007-08-03 Thread David Reynolds
We have around 30 and have noticed the problems you've mentioned.. Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: django app for managing sending email to users...

2007-08-04 Thread David Reynolds
k) I think I would find this useful a *lot* for work, so I would be very happy to help, if necessary. Thanks, Dave -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: mod_python/django problems

2007-08-04 Thread David Reynolds
it's only gone away after a restart of apache. -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: mod_python/django problems

2007-08-06 Thread David Reynolds
unrelated sites with totally different domain names? They all have: and none of them have wildcarded domain names. It has been www.customerdomain1.tld that has appeared on www.customerdomain2.tld Thanks, David -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic

Django-tagging, is it possible to add a TagField to a UserProfile?

2007-08-18 Thread David Larlet
Hi, I try to add a TagField to a UserProfile and it doesn't seemed to work (it didn't find obj._get_pk_val() when I save the profile), did someone had already done that? Regards, David --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Django-tagging, is it possible to add a TagField to a UserProfile?

2007-08-18 Thread David Larlet
2007/8/18, David Larlet <[EMAIL PROTECTED]>: > Hi, > > I try to add a TagField to a UserProfile and it doesn't seemed to work > (it didn't find obj._get_pk_val() when I save the profile), did > someone had already done that? > > Regards, > David > Hum,

Odd 404 error on Textdrive with Lighty

2007-08-20 Thread David Merwin
I have textdrive account with lightty and flup running. The blog section works great. No problems. However, the audio media (and I suspect other elemets of the same app) generic views are throwing an odd 404 error. It seems that the system is not getting to the django debug. However, it is showin

Re: Odd 404 error on Textdrive with Lighty

2007-08-20 Thread David Merwin
Fixed the 404 template and 500 templates. Here is the site wide URLS: http://dpaste.com/hold/17376/ Here is the object URLS: http://dpaste.com/hold/17375/ Lemme know what you see. Just emailed, textdrive. They do not think it is memory related. Thanks, Dave On 8/20/07, RajeshD <[EMAIL PROTEC

Re: Odd 404 error on Textdrive with Lighty

2007-08-20 Thread David Merwin
wrote: > > > > On Aug 20, 6:11 pm, "David Merwin" <[EMAIL PROTECTED]> wrote: > > Fixed the 404 template and 500 templates. > > > > Here is the site wide URLS:http://dpaste.com/hold/17376/ > > > > Here is the object URLS:http://dpaste.

Re: Odd 404 error on Textdrive with Lighty

2007-08-21 Thread David Merwin
all works beautifully. Thanks for the tip RajeshD! On 8/20/07, David Merwin <[EMAIL PROTECTED]> wrote: > Thanks again for all your help. That makes a ton of sense. > > Here is my vhost: http://dpaste.com/hold/17389/ > > Here is docs for this setup: http://textusers.com/wiki/

Re: Making the django documentation available from the admin documentation site

2007-08-23 Thread David Reynolds
Christian, SmileyChris has a rather cunning application that does just that: http://smileychris.tactful.co.nz/ramblings/django-documentation/ Cheers, David On 23 Aug 2007, at 4:29 pm, Christian Joergensen wrote: > Hello > > I was wondering if the idea of including the ./doc

Re: Making the django documentation available from the admin documentation site

2007-08-23 Thread David Reynolds
On 23 Aug 2007, at 5:06 pm, Christian Joergensen wrote: > Great, thanks. :) > > Regards, Don't thank me, thank Chris ;) Thanks, -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Django Development Position

2007-08-28 Thread David Sonenberg
The Developer will primarily be responsible for performing development tasks relating to the firm's intranet system including bug fixes, documentation, and feature development. The Developer will also be responsible for managing smaller projects to support internal systems, external web sites, an

Re: Django Development Position

2007-08-28 Thread David Sonenberg
I forgot to mention that this position is located in New York, NY and applicants must be US citizens with no criminal history. On Aug 28, 4:25 pm, David Sonenberg <[EMAIL PROTECTED]> wrote: > The Developer will primarily be responsible for performing development > tasks relating t

HttpMethodsMiddleware and mod_python (REST)

2007-08-29 Thread David Larlet
[_MIDDLEWARE_KEY].upper() AttributeError: can't set attribute Any thoughts? Regards, David --~--~-~--~~~---~--~~ 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@g

Re: HttpMethodsMiddleware and mod_python (REST)

2007-08-31 Thread David Larlet
2007/8/29, David Larlet <[EMAIL PROTECTED]>: > Hello all, > > I wonder if there is an alternative of the HttpMethodsMiddleware > snippet http://www.djangosnippets.org/snippets/174/ which works with > mod_python because for the moment it raises an AttributeError when yo

Re: HttpMethodsMiddleware and mod_python (REST)

2007-09-01 Thread David Larlet
2007/8/31, Benjamin Slavin <[EMAIL PROTECTED]>: > > On 8/31/07, David Larlet <[EMAIL PROTECTED]> wrote: > > > request.method = request.REQUEST[_MIDDLEWARE_KEY].upper() > > > AttributeError: can't set attribute > > > > > Hello David, Hi

using querysets to populate a form

2007-09-03 Thread David Reynolds
it every so often? Has anyone done anything similar? Any ideas greatly welcomed. Thanks, David -- David Reynolds [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Look at my city!

2007-09-03 Thread David Larlet
, sorry for the noise. Sylvain, ces liens à boulets n'ont rien à faire ici, merci. En plus tu lagues et ça c'est très mauvais pour les chatons... David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: using querysets to populate a form

2007-09-04 Thread David Reynolds
No one have any ideas? Thanks, Dave On 3 Sep 2007, at 12:51 pm, David Reynolds wrote: > > Hi, > > I have a requirement to use querysets as choices in various elements > of a form, and as the data grows this is clearly going to have a big > hit on the database every time t

Re: Apache + Django - syntax error

2007-09-06 Thread David Reynolds
On 6 Sep 2007, at 11:06 am, b3n wrote: > I wasn't sure if the syntax was different for Unix/Windows. I think it > would be helpful if the tutorial made a statement to that effect. Surely not saying anything implies that there are no differences between the two? -- David Reyn

Re: using querysets to populate a form

2007-09-07 Thread David Reynolds
to be checkboxes and also the actual dataset won't be that big. It'll be a distinct query on a huge set of data and I don't want that huge hit every time someone loads the form. I think I'll go for the caching idea, as you suggested. Thanks,

full-text search and mediawiki markup apps

2007-09-07 Thread David Cramer
I've taken the time to upload both our SphinxSearch layer, and our MediaWiki markup util to Google code today. For more info see my blog post: http://www.davidcramer.net/code/54/mediawiki-markup-and-sphinxsearch-... I haven't used Google code before, so if theres any problems just let me know. E

Re: Django deployment à lá Capistrano

2007-09-10 Thread David Reynolds
There are people using capistrano for django [0][1]. Would it not be better to look at writing a django recipe for capistrano rather than trying to re-implement it? Thanks, David 0 - http://www.unessa.net/en/hoyci/2007/06/using-capistrano-deploy- django-apps/ 1 - http://toys.jacobian.org

Re: Django deployment à lá Capistrano

2007-09-10 Thread David Reynolds
think merging all of these ideas into one big django-addon would > be a > gorgeous idea for all of us. Not only rails is fun! I agree that the community will benefit from the tool, I just think that perhaps it's silly to reinvent the wheel, but that's just my 2¢ Thanks, Dave -

Re: Django deployment à lá Capistrano

2007-09-10 Thread David Reynolds
me. > > By the way. I don't try to tell anyone that "my tool's superior to > tool > X". I'm just letting the community know. Anyone to join my efforts? > Gorgeous. Not? I'd love this kind of tool anyways. I'd be doing it > alone, if that's

Re: Adding a request.user to a ModelForm instance

2008-01-07 Thread David Grant
rm.save(commit="False") > newplace.useradd = request.user #excluded in PlaceForm > newplace.save() > > Exeption after executing this lines: > > Exception Value:(1048, "Column 'useradd_id' cannot be null") > > > -- David Grant http://www

Re: Trying to limit choices in my admin view

2008-01-08 Thread David Grant
be the solution: > > > http://groups.google.com/group/django-users/browse_thread/thread/15cbc8a7205ed92e/481afde9d882b76f?lnk=gst&q=limit_choices_to#481afde9d882b76f > > Could I create a new view that gets called whenever a collection page > in my admin gets called? And within

Re: Maximum ImageFIeld width

2008-01-08 Thread David Grant
EMAIL PROTECTED]> wrote: > > How can you validate that an ImageField's width is <= a maximum in > pixels? > > > -- David Grant http://www.davidgrant.ca --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: how to create new variable in html file in template

2008-01-09 Thread David Grant
I want to use the local variable in template's html file. > > like 'count = 0' and how to use it > {% ifequal count%4 0%} > do something > {% endifequal%} > > But Do not pass. > > How to do it? > > > -- David Grant http://www.davidgrant.ca --~--~---

Re: how to create new variable in html file in template

2008-01-09 Thread David Grant
> > Hi, > Thanks your reply. > I get an assemblly data and want to show in the template. > How to show four result in one row? > I have no idea about this. > > > Thanks and regards. > > > On Jan 9, 4:24 pm, "David Grant" <[EMAIL PROTECTED]>

Re: Basic MySQLdb Install

2008-01-09 Thread David Grant
in the PATH). I have assured that > libmysqlclient_r.so.15 resides in MySQL as a result of the install (it > is at $MYSQL_HOME/lib/mysql/libmysqlclient_r.so.15). > > Where does Python expect this file to be? Because, it doesn't seem > that the current location is sufficient. &

Re: Basic MySQLdb Install

2008-01-09 Thread David Grant
On Jan 9, 2008 6:46 PM, rob_mazur <[EMAIL PROTECTED]> wrote: > > On Jan 9, 1:16 pm, "David Grant" <[EMAIL PROTECTED]> wrote: > > Why are you compiling mysql and python and mysqldb from scratch? You are > > using SUSE are you not? Get the binary rpm packages

Re: Question about views.py

2008-01-10 Thread David Grant
not repeat myself. Is there a way to get rid of get_entries_list() > and somehow make my views.py cleaner? I tried to pass entries directly > to the template but it didn't quite work (maybe I'm missing > something). > > I searched the web for some examples, but it's ha

Re: Postgresql setup

2008-01-10 Thread David Grant
error when I try to connect. Anyone have any postgres config example > files perhaps? > > Thanks > > mjj > > PS > > Running Fedora Core 3, Python 2.3, Postgres 7.4, mod_python, pyscopg2 > > > > > -- David Grant http://www.davidgrant.ca --~--~-~--~---

Re: Question about views.py

2008-01-10 Thread David Grant
}} in the templates. I've also rewritten a lot > of for loops into list comprehensions (I guess I still have some > habits from PHP). > > Cheers, > Matic Žgur > > On Jan 10, 2008 6:04 PM, David Grant <[EMAIL PROTECTED]> wrote: > > I think you should be able to a

Re: Basic MySQLdb Install

2008-01-10 Thread David Grant
;t work. Dave On Jan 10, 2008 12:35 PM, rob_mazur <[EMAIL PROTECTED]> wrote: > > On Jan 9, 10:58 pm, "David Grant" <[EMAIL PROTECTED]> wrote: > > Well it is still trying to import from /root/.python-eggs/... I would > also > > be interested in

Re: Basic MySQLdb Install

2008-01-10 Thread David Grant
rsions would collide with other installed vesions). Remove the mysql rpm, delete /etc/mysql (or similar, if it exists), then reinstall the rpm. Dave On Jan 10, 2008 2:11 PM, rob_mazur <[EMAIL PROTECTED]> wrote: > > Thanks David. I believe I am nearly there...one last hurdle I > believ

Re: Basic MySQLdb Install

2008-01-10 Thread David Grant
On Jan 10, 2008 3:24 PM, rob_mazur <[EMAIL PROTECTED]> wrote: > > On Jan 10, 2:51 pm, "David Grant" <[EMAIL PROTECTED]> wrote: > > I would work on it the other way around...tell mysql to put it's socket > > somewhere else... I'd be surprised if

Re: Django Tag Cloud

2008-01-11 Thread David Grant
s that you all can recommend? > > Cheers. > > > -- David Grant http://www.davidgrant.ca --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Custom ForeignKey field validation

2008-01-12 Thread David Grant
ot have a parent that also has a parent. Not sure if I'm on the right track here for a DRY method that will work with the admin interface and also with newforms (should I decide to make some of my own admin-like views). -- David Grant http://www.davidgrant.ca --~--~-~--~~---

Re: Custom ForeignKey field validation

2008-01-14 Thread David Grant
On Jan 12, 2008 6:34 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Jan 12, 2008 5:28 AM, David Grant <[EMAIL PROTECTED]> wrote: > > > I have a simple category model. They will eventually be chapters in a > > book and I only want entries to go into child categor

Re: problem with django admin after update to development version

2008-01-14 Thread David Grant
EMAIL PROTECTED]> wrote: > > > > > > It is a solution. > > > > > > """ > > > > Tried home1 in module prog_innov.views. Error was: 'module' object > has > > > > no attribute 'home1' > > >

Re: more than one field as a primary key

2008-01-15 Thread David Grant
ld(blank=True, maxlength=240) > timeOfLastStatusUpdate = models.DateTimeField() >PID = models.IntegerField() >class Meta: >db_table = 'ingestQueue' > > Regards, > Nader > > > -- David Grant http://www.davidgrant.ca --~--~-

Re: about dbpaste

2008-01-18 Thread David Reynolds
w it to someone else. If you're looking for something in particular you could try djangosnippets.org -- David Reynolds [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

"Can't pickle function objects" in Sessions middleware. Any help ?

2008-01-18 Thread David Marquis
#x27;m left thinking that it might be my fault : have I put something wrong in the session ? In this case, the session contains, at most, one or two strings and 1 or 2 unsaved or saved (persisted) model instances. Is it right (or legal) to put an unsaved model instance in a user's session ?

Re: Sending SMS messages

2008-01-18 Thread David Marquis
ays I don't know if this would fit your requirement, but it is a quick and easy solution. Otherwise there are several SMS gateways (with remote API) that will charge a fee for every relayed SMS message. I am thinking of Clickatell (http://www.clickatell.com/) -- David On 18-Jan-08,

<    2   3   4   5   6   7   8   9   10   11   >