Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-21 Thread Ian Holsman
you might want to check out hugo's dbtemplate loader (which I updated to work with the current trunk) http://svn.zyons.python-hosting.com/trunk/zilbo/common/dbloader/ that way you can store the templates themselves in a database, which might make life a bit more easier. regards Ian

Re: HTTPS access

2006-08-23 Thread Ian Holsman
::https, open-uri and the rio library." > (http://www.juretta.com/log/2006/08/13/ruby_net_http_and_open-uri/) > > I would like django to connect to gmail via HTTPS and get the contact > list of a user. I used to do it with PHP+Curl. Is there a library in > django like curl? >

Re: Image validation works only once

2006-08-23 Thread Ian Clelland
t the code involved, I'm not sure why you'd be getting an error, but you should be okay if you leave the validation out. ImageFields automatically have isValidImage added to their validator list when the upload form is processed, so you don't need to specify it expli

Re: my private django repository goes public

2006-08-23 Thread Ian Holsman
call. > > Regards, > Dirk > -- > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > -- Ian Holsman [EMAIL PROTECTED] http://economy-chat.com It's what the economists ta

Re: Webdav access - OT

2006-08-23 Thread Ian Holsman
//www.atmarkit.co.jp/flinux/special/webdav03/webdav01a.html describes something similar to what you want by the looks of the pictures (but in japanese) > > That said, Googling "python webdav server" gives me http:// > sandbox.xerox.com/webdav/, which at first glance might be what yo

Re: import opml file

2006-08-24 Thread Ian Holsman
you might want to check out FeedJack http://www.feedjack.org/ it's done a lot of stuff in that area. regards Ian On 24/08/2006, at 5:42 PM, a wrote: > > hi guys how do i import opml file in django > using syndication > > i m tryin to build an rss reader > thanks &

Re: User Registration weirdness. Ian, help!

2006-08-25 Thread Ian Holsman
x27;[EMAIL PROTECTED]') and register. It does that already. it uses your secret-key as part of the crypt string. -- Ian Holsman [EMAIL PROTECTED] http://VC-chat.com It's what the VC's talk about --~--~-~--~~~---~--~~ You received this message becau

Re: i18n: Translating default model values

2006-08-25 Thread Ian Clelland
ll have to do it all in python, rather than sql, but you'll at least have the full power of django's orm :) Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: User Registration weirdness. Ian, help!

2006-08-26 Thread Ian Holsman
gt; > The old school solution was to surround the url with angle brackets > <>. Intelligent mail readers would recognize this and display the url > correctly. > > http://www.w3.org/Addressing/URL/5.1_Wrappers.html > > Why do people put angle brackets around : > > http:/

Re: Admin looking for media/css/null?

2006-08-27 Thread Ian Holsman
opies. regards Ian On 28/08/2006, at 6:21 AM, Cole Tuininga wrote: > > Hi folks - I'm setting up Django with mod_python and I've come across > a little problem. When using the admin area, I get an error in my > apache logs. Here's an example: > > [Sun Aug 27 16:15:59 2006

Re: Django patch!

2006-09-01 Thread Ian Holsman
this time, it does stop hundreds of spams a day. could you please. a. post your patch to the developers list b. email jacob to get your IP# white listed Thanks for your understanding the Django team ? regards Ian On 02/09/2006, at 3:12 PM, Kenneth Gonsalves wrote: > > > On 02-

Re: PyCaptcha for the Zyons Project

2006-09-04 Thread Ian Holsman
it looks like it is on the cheese shop. http://cheeseshop.python.org/pypi/PyCAPTCHA/0.4 with the download here http://cheeseshop.python.org/packages/2.4/P/PyCAPTCHA/PyCAPTCHA-0.4- py2.4.egg#md5=cd6a31191c0dd3afee219886c936fcac regards Ian. On 04/09/2006, at 8:18 PM, Aidas Bendoraitis wrote

Re: Returning images with Django

2006-09-04 Thread Ian Holsman
he web browser. > > Can the HttpResponse returned by a View object contain an image? are > there any examples? > Is this possible and the best way to do it? > > thanks in advance > -- Ian Holsman [EMAIL PROTECTED] http://garden-gossip.com/ -- what's in your garden?

Re: How about a Django apps public repository?

2006-09-06 Thread Ian Holsman
I started thinking of writing one, and have got the basic data model and how I think it would operate worked out. it's just a matter of getting enthused enough to actually sit down and write it. regards Ian On 07/09/2006, at 2:50 PM, Sean Schertell wrote: > > I wonder how man

Re: Shared Hosting suggestion

2006-09-07 Thread Ian Holsman
o root required. (It also uses mod-python) regards Ian > > -- Ian Holsman [EMAIL PROTECTED] http://car-chatter.com/ where car fanatics meet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: to login or not to login, that is the question

2006-09-10 Thread Ian Holsman
experience... use the standard auth app, and possibly use some add on's like http://svn.zyons.python-hosting.com/trunk/zilbo/common/ accounts/ to help manage the students lost passwords etc. regards Ian > That > means that they would technically anonymous users, but with with a &

Re: How about a Django apps public repository?

2006-09-10 Thread Ian Holsman
I've nearly got something together now. I just need to add some basic templates for it. Give me a day or two to get it up ;-) regards Ian On 11/09/2006, at 12:52 PM, Sean Schertell wrote: > > Okay then, let's do it :-) > > I can get started in October putting this to

Re: How about a Django apps public repository?

2006-09-11 Thread Ian Holsman
the list of projects, so they can find what they need. regards Ian. > regards > > charles. > > - Original Message > From: Marc Fargas <[EMAIL PROTECTED]> > To: django-users@googlegroups.com > Sent: Monday, September 11, 2006 1:26:25 PM > Subject: Re: How abou

Re: Core dump- how to diagnose?

2006-09-13 Thread Ian Holsman
g a different version of expat than what apache was... and the backtrace helped as was segfaulting in a XML area. regards Ian On 14/09/2006, at 1:42 AM, Richard Phelps wrote: > Michael , > Some obscure (to me anyhow) tests failed for django. A fresh build > (with the compiler used

Re: Has anyone run Django on a cpanel box (w/root access)

2006-09-14 Thread Ian Holsman
why not build mod-proxy into the apache13 ? that would be the simplest option. regards Ian On 15/09/2006, at 2:50 PM, [EMAIL PROTECTED] wrote: > > Hi guys, > > I need to install a django app onto a client's cpanel box. I have root > access and can install whatever's n

Re: Trackback spam in Blogs

2006-09-16 Thread Ian Holsman
n (3) after 24 hours or so (so that > they have to keep an attacking page up longer). in my experience, this isn't needed. most splogs just use rel=nofollow on the link. > > Cheers, > Malcolm > regards Ian -- Ian Holsman [EMAIL PROTECTED] <http://car-chatter.com/> where car

Re: meta.OneToOneField() problemo

2005-09-19 Thread Ian Maurer
o\core\meta\__init__.py", line 1181, in _throw_bad_kwarg_error #raise TypeError, "got unexpected keyword argument '%s'" % kwarg #TypeError: got unexpected keyword argument 'place__exact' Originally, I was going to ditch the use of OneToOne because I thought I was simply using it incorrectly in my design... but after seeing Mark's post and whipping up this example, I believe there is a bug. I also hope my post clarifies not confuses Mark's post... because I believe they are related issues. regards, -ian

Re: meta.OneToOneField() problemo

2005-09-19 Thread Ian Maurer
'one_to_one' module: API test raised an exception ========= Code: 'w' Line: 42 Exception: File "C:\www\downloads\trunk\tests\doctest.py", line 1243, in __run compileflags, 1) in test.globs File "", line 1, in ? w Nam

Re: meta.OneToOneField() problemo

2005-09-23 Thread Ian Maurer
... And I watching this ticket... http://code.djangoproject.com/ticket/527 thanks! Ian

Re: How to extend Model ?

2005-09-23 Thread Ian Maurer
Checkout: http://www.djangoproject.com/documentation/django_admin/ You want the 'sqlclear' option which gives you the SQL needed. I just copy and paste it into my mysql session or you could dump it into a file and run that. good luck! ian On 9/23/05, [EMAIL PROTECTED] <[EM

Oct 3rd: Django Presentation (CLEPY)

2005-09-25 Thread Ian Maurer
website: http://clepy.org/ For meeting details, including a link to directions: http://www.clepy.org/meetings/2005_10_06_mtg_details regards, Ian Maurer

Re: Oct 3rd: Django Presentation (CLEPY)

2005-10-05 Thread Ian Maurer
The presentation and the zipfile containing my project can be found at my site: http://itmaurer.com/blog/?p=1 Thanks to all who attended! Ian On 9/25/05, Ian Maurer <[EMAIL PROTECTED]> wrote: > I am going to be doing a presentation on Django at the Cleveland Area > Python In

newbieQ: having different databases for apps, and referencing tables from other applications

2005-10-07 Thread Ian Holsman
nd the other related question i have is it possible for 2 different apps to share a 'reference' table. for exampel a product table which is used for editorial reviews in one app, as well as a app which uses it to hold the latest prices from multiple shops in another. regards (and thanks fo

Django Unit Testing

2005-10-09 Thread Ian Maurer
I have created a simple write-up on how I am preparing my Django unit tests to leverage sqlite's in-memory database: http://itmaurer.com/blog/?p=2 Comments and suggestions welcome... ian

Manipulators that span a relationships?

2005-10-13 Thread Ian Maurer
and form processing features of Django across multiple objects until this ticket is finished? thanks... ian

Re: Manipulators that span a relationships?

2005-10-13 Thread Ian Maurer
That's a pretty slick implementation, I'd like to try it out... some questions: Is it in a usable format? Are there any directions for pulling this branch down to my local environment? What happens if the main branch gets updated? thanks... ian On 10/13/05, Robert Wittams <[EM

Re: Manipulators that span a relationships?

2005-10-13 Thread Ian Maurer
Easy enough. I will let you know if I run into any problems... thanks again, ian On 10/13/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > > Ian Maurer wrote: > > That's a pretty slick implementation, I'd like to try it out... some > > questions: > > >

Re: Manipulators that span a relationships?

2005-10-14 Thread Ian Maurer
I didn't get very far with the new branch. My template is failing to render right off the bat... I haven't had a chance to investigate this, but my templates were/are working just fine under the main branch. Below is the end of my traceback... any thoughts? -ian return render_t

Re: Manipulators that span a relationships?

2005-10-16 Thread Ian Maurer
That fixed that bug. Thanks. Now I can move forward and test the rest. I will provide more info the next time I run into a problem... -ian On 10/15/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > > Ian Maurer wrote: > > I didn't get very far with the new branch. My

specifying the name of a many-to-many table

2005-10-16 Thread Ian Holsman
is it possible? or should I just 'explode' it out into sepearte classes (2 one to many links to a seperate table) regards Ian. -- [EMAIL PROTECTED] -- ++61-3-9877-0909 If everything seems under control, you're not going fast enough. - Mario Andretti

difference between command line and a web-page

2005-10-16 Thread Ian Holsman
hi. I have a many to many table in django, which I'm having troubles updating. class Keyword( meta.Model ): URL = meta.URLField(core=True) pagetype = meta.ForeignKey( PageType, verbose_name="the type of page") regex = meta.CharField(maxlength=250) to_match = meta.BooleanField()

Re: difference between command line and a web-page

2005-10-17 Thread Ian Holsman
the many to many has a custom update method which I am calling in _post_save and not in the actual field's manipulator.. Is this correct? is it as simple as just moving the code into tags manipulator??? regards Ian. On 10/17/05, Ian Holsman <[EMAIL PROTECTED]> wrote: > hi. > >

Re: global names undefined in _pre_save() and _post_save()

2005-10-18 Thread Ian Holsman
Hi Qiangning it has something to do with how django creates it's model classes. if you look closer at the excpetion, you might be able to add the import statements into the framework class itself. personally I like boring.. boring doesn't call you in the middle of the night ;-) r

Re: meta.OneToOneField() problemo

2005-10-27 Thread Ian Maurer
nit__.py is probably a good place ;). thanks- Ian On 9/19/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 9/19/05, Ian Maurer <[EMAIL PROTECTED]> wrote: > > But, I have a multitude of problems that I don't believe I had before > > the recent model overha

Re: 'Site administration' heading in django admin interface

2005-10-27 Thread Ian Holsman
Have you tried modifying/copying the file $SRC//django/contrib/admin/templates/admin/base.html if you modifiy your project settings file you can override this by simply placing a file called admin/base.html into your own template directory (before the standard one) Cheers Ian On 10/28/05

Re: Django presentation slides in Spanish

2005-10-28 Thread Ian Maurer
The original english version is here: http://itmaurer.com/clepy/htdocs/media/presentation/presentation.html I am going to try and update it for the new settings stuff this weekend. If anyone notices any other inaccuracies please send me an email at [EMAIL PROTECTED] thanks- ian On 10/28/05

I want to start a django project for a forum

2005-10-31 Thread Ian Holsman
is anyone else interested in joining? I was thinking of similar to what phpBB does. If so I propose we open up a sourceforge project, or perhaps we could even host it on code.djangoproject.com if they let us ;-) any volunteers? regards Ian -- [EMAIL PROTECTED] -- ++61-3-9877-0909 If

Re: I want to start a django project for a forum

2005-10-31 Thread Ian Holsman
m? ;) What can we offer by > using Python/Django that the PHP-based boards don't have? Stuff like > that :) > > Regards, > Jeff > > On Oct 31, 2005, at 7:16 PM, Ian Holsman wrote: > > > > > is anyone else interested in joining? I was thinking of similar to

Re: I want to start a django project for a forum

2005-11-02 Thread Ian Holsman
for this would be for me to write applications like mp3.com and tv.com. On 11/1/05, Luke Plant <[EMAIL PROTECTED]> wrote: > > On Tue, 1 Nov 2005 11:16:14 +1100 Ian Holsman wrote: > > > > > is anyone else interested in joining? I was thinking of similar to > > what

Re: I want to start a django project for a forum

2005-11-03 Thread Ian Maurer
I would like to volunteer to help wherever I can. -ian On 11/3/05, Waylan Limberg <[EMAIL PROTECTED]> wrote: > > On 11/3/05, Ian Holsman <[EMAIL PROTECTED]> wrote: > > > > Hi Luke. > > > > my aim is not to do a drop-in replacement for a phpBB. but more

Re: Generic Views - CRUD

2005-11-04 Thread Ian Holsman
/18/django-custommanipulators where it adds a custom field to the manipulator to populate another relationship. this might help. regards Ian On 11/5/05, sarahwithanx <[EMAIL PROTECTED]> wrote: > > The generic views seem very limiting. Is there a way to include > multiple objects i

Re: enforce login on generic views

2005-11-12 Thread Ian Holsman
Hi Adrian. would it be too hard to just stick the 'user login' views in the main codebase? regards ian On 11/13/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 11/12/05, Bryan Murdock <[EMAIL PROTECTED]> wrote: > > How do I limit access to a generic view

Re: Trouble with Apache 1.3 and FCGI on Mac OS X

2005-11-16 Thread Ian Holsman
Hi Colin. as a point of reference I use Apache2 + mod-python on my OS/X box and it works like a charm. I would recommned people investigate this option as well. regards Ian. On 11/16/05, Colin Howlett <[EMAIL PROTECTED]> wrote: > > Georg, > > I wasn't really complain

Sites, how do I use them

2005-11-16 Thread Ian Holsman
'site' is taken into account? regards Ian. -- [EMAIL PROTECTED] -- ++61-3-9877-0909 If everything seems under control, you're not going fast enough. - Mario Andretti

Re: Access request object in model's hooks and display methods

2005-11-17 Thread Ian Holsman
couldn't we do something similar to get_active_site() call on the sites table? that way people who need the 'request' object could just call it and it wouldn't impact the api of anything else? On 11/18/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 11/17/05, plisk <[EMAIL PROTECTED]> wrot

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Ian Maurer
> Full information is here: > > http://snakesandrubies.com/event/ Is the site written in Django or Rails? Just curious :P

Re: 20 minute wiki, sortof.

2005-11-20 Thread Ian Holsman
hi David. do you have a SVN url? I'd love to replace moinmoin with a django wiki (i don't need much from a wiki, so even a 20 minute one might be ok ;-) regards Ian On 11/18/05, David Ascher <[EMAIL PROTECTED]> wrote: > After watching the TurboGears 20 minute wiki screenca

Re: 2nd database for a specific app

2005-11-22 Thread Ian Holsman
Hi Patrick. At the moment Django can not talk to 2 different databases. If you need this, you might be able to get the data out of the 2nd database via custom functions which handle the db calls directly, or possibly futz with django/core/db regards Ian but I would wait 12-24 hours until the

Re: problem marketing django to php folk

2005-11-25 Thread Ian Holsman
gery prevention compoent here: http://lukeplant.me.uk/resources/csrfmiddleware/ regards Ian. On 11/26/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > hi, > have been talking to some php folk about switching to django, but > they have raised a serious concern: Django website

Re: Contrib markup app not to be installed?

2005-12-03 Thread Ian Holsman
shouldn't a warning/informational message be generated in this case. something like $ django-admin install markup INFO: no models found to install.. skipping markup ? On 12/3/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Dec 3, 2005, at 5:13 AM, James Bennett wrote: > > While setting

Re: ANN: Django site on washingtonpost.com

2005-12-06 Thread Ian Maurer
Ha! Congressional voting by astrological sign! The app overall is great ... nice work! ian On 12/6/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/5/05, Tom Tobin <[EMAIL PROTECTED]> wrote: > > BTW, is there any particular reason the Recent Votes feed is in

Re: Which user posted the blog entry.

2005-12-12 Thread Ian Holsman
from my understanding there is only way to get at it in the presave, and that is to either set the field in middleware, or in the custom manipulator before the object gets 'saved' I blogged about it here http://feh.holsman.net/articles/2005/12/07/some-basic-audit-functionality and provided some c

Re: is Django too powerful?

2005-12-13 Thread Ian Holsman
personally I'm all for ease of use, and multiple versions of things, and I'm REALLY happy if it is easy for someone to go and write their own blog software. for example.. I've been slowly getting a phpBB-like forum software up and running for my own uses. and was planning to 'announce/release' ne

Re: is Django too powerful?

2005-12-13 Thread Ian Holsman
infrastructure bit - distributed login via a OpenID system. The point I was trying to make it that django framework should concentrate on building the common components that apps use, and then concentrate on the full fledged applicaitons after that. regards Ian On 12/14/05, Jeroen Ruigrok van

Re: Caching partial templates

2005-12-15 Thread Ian Holsman
wouldn't you also need a cache-key as a parameter? regards Ian On 12/15/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/13/05, oron <[EMAIL PROTECTED]> wrote: > > coming from ROR where it's easy to cache partials (parts of templates) > > I could

Re: How to design urls like record1.domain.com

2005-12-19 Thread Ian Holsman
If you mean user as a regular user in the users table in the DB I would hack up a mod_python handler to look at the hostname, and adjust the session cookie accordingly. see http://svn.zilbo.com/svn/django/snippets/modpython_apacheauth.py for an idea on how to approach this. if you are talking abo

Re: additional data for generic views

2005-12-21 Thread Ian Holsman
if your view uses DjangoContext (which the generic views do I belive) than the user is just {{ user }} so something like {% for group in user.get_group_list %} {{ group }} {% endfor %} should work. regards Ian On 12/22/05, patrick k <[EMAIL PROTECTED]> wrote: > > while trying to

Re: Django for eCommerce?

2005-12-21 Thread Ian Holsman
you to build a eCommerce site are available.. you just need to build the app. regards Ian. On 12/22/05, Michael Hipp <[EMAIL PROTECTED]> wrote: > > Jacob Kaplan-Moss wrote: > > > > On Dec 21, 2005, at 10:24 AM, Michael Hipp wrote: > > > >> How suitable i

Re: Additional User Data?

2006-01-02 Thread Ian Holsman
hmm.. have you 'init'ed your database ? ( $ django-admin.py init) also.. check out http://www.djangoproject.com/documentation/authentication/ and more specifically the get_profile() call. regards Ian On 12/31/05, Andreas Neumeier <[EMAIL PROTECTED]> wrote: > > Hello Djan

Re: django_website setup

2006-01-04 Thread Ian Holsman
hi Roy. you should probably be trying the 4 tutorials and create the 'polls' application first. the django_website is not really designed for newbies, but more as a reference on how to do things. regards Ian. On 1/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > an

Re: ownership concept?

2006-01-05 Thread Ian Holsman
you can implement this with custom views. just put a where clause when you retreive the object list, and check the user-id when you retrieve it and error out if it isn't the owner. (or you haven't got the 'admin' flag set on your user) regards Ian. On 1/6/06, [EMAI

Re: Adding errors into the form?

2006-01-05 Thread Ian Holsman
Hi Feiyu. the problem is the captcha validation is the manipulator out of scope when the the validation is run. there are 2 choices. 1. the captcha view should throw a validation error (not a 404).. thats my bug, and I will fix it shortly. This will mean you will get the error message on your

Re: Debugging a production app

2006-01-07 Thread Ian Holsman
s from a pager is not fun. c) admins to dislike you even more than they would normally ;-) regards Ian On 1/8/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > > On Saturday 07 January 2006 02:17, WSobczuk wrote: > > I'm not saying I wnat to send information to users, I'm

Re: Apache Authentication

2006-01-07 Thread Ian Holsman
he, and creates the user in django if it doesn't exist. HTH Ian On 1/8/06, Brian Ray <[EMAIL PROTECTED]> wrote: > > Anouther issues with Authenticating this way, the Django user is still > Anonymous although the REMOTE_USER is not: > > path:/Login/, > GET:, > P

Re: Adding errors into the form?

2006-01-08 Thread Ian Holsman
On 1/6/06, FX <[EMAIL PROTECTED]> wrote: > > Hi Ian, > Thanks for the prompt reply. (which time zone are you in?) I live in Melbourne Australia. > > I made some modifications to your Django Captcha that might be useful, > so I'm attaching the patch (generated by svn

Re: RoR Ajax helpers port to Django tags?

2006-01-25 Thread Ian Holsman
That sounds like a great idea (working together), and personally I'm not too hung up about which AJAX library I use, as long as it can do the job (which most seem too for my simple things) I like the idea of having one way of doing this across frameworks, it makes them all simpler to learn and in

Re: scale of auth system

2006-02-07 Thread Ian Holsman
Hi Jason. Your scenario only covers a very basic scenario, where 1 user can do anything to a particular record. It kind of falls down when you need to assign rights to actions. ie..group/user X can add a new invoice, but only 'group/user Y' can modify an existing invoice. So while a constrained

Re: Upcoming project... 0.91 or svn or magic-removal?

2006-02-08 Thread Ian Holsman
If you are not really familiar with django, I would suggest you use the trunk. it is better documented, and more people can help you out. It is also painful debugging your code, only to find out it is a bug in the framework which happened since the last SVN checkout.. On 2/9/06, ToddG <[EMAIL P

Re: How to pass a variable as parameter to a tag

2006-02-14 Thread Ian Holsman
doesn't something like: class TopTagsNodeUser(template.Node): """ what is the root of this application """ def render(self, context): user = context.get('user', None) if user.is_anonymous(): return "" return "User Prefs"+str(user)+" " work? On 2/15/06,

Re: Request for ideas

2006-02-15 Thread Ian Holsman
Pick a application which is done nicely in some other language, and try implementing it in django. you could always help out with the django-forum project or possibly a CRM like vtiger or sugarcrm would be nice as well. regards Ian On 2/16/06, oggie rob <[EMAIL PROTECTED]> wrote: > &g

Re: Django captcha problems

2006-03-01 Thread Ian Holsman
f you could email me your template (privately if you wish) I can try to reproduce it on my setup. Regards Ian. On 3/2/06, syhpoon <[EMAIL PROTECTED]> wrote: > > Hi, > I've tried django captcha > (http://feh.holsman.net/articles/2005/12/15/django-captcha-app) but got > str

Re: kicking off a scheduler

2006-03-05 Thread Ian Holsman
there is no 'functionality' inside of django which does scheduling automatically, or helps you with scheduling. what people are doing is just writing python scripts and then scheduling them via cron. you could possibly also use the event scheduler in mysql 5.1 as well if you like. r

Re: Apache vs. Django ?

2006-03-14 Thread Ian Holsman
your setting file looks a bit funny. > SetEnv DJANGO_SETTINGS_MODULE > .home.Projects.django.myproject.settings it should probably look like > SetEnv DJANGO_SETTINGS_MODULE myproject.settings regards Ian. On 3/15/06, Frank Miles <[EMAIL PROTE

Re: Caching partial templates

2006-03-22 Thread Ian Maurer
et(cache_id) if not value: value = self.nodelist.render(context) cache.set(cache_id, value, float(self.expire_time)) return value Obviously you need to have cache enabled for this to work: http://www.djangoproject.com/documentation/cache/ -- Ian Maurer -

Accessing a model from its fields

2006-04-02 Thread Ian Clelland
l from the field that I'm just missing? Or is this this really the easiest way to do this? Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Admin in mr

2006-04-02 Thread Ian Clelland
t; line if there's nothing else in the class. That should be enough to get model into the admin screens. Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Admin in mr

2006-04-03 Thread Ian Clelland
the admin index uses the verbose_name_plural attribute, rather than verbose_name. Bryan's right, you don't generally have to specify verbose_name, if it's the same as your class name, but until version 2593, you had to specify verbose_name_plural. Update your local copy of m-r, and it should w

Re: ImageField upload_to

2006-04-04 Thread Ian Clelland
last week for both ways of doing this: http://groups.google.com/group/django-users/browse_thread/thread/93c024f1523f5323/6bea5b407797e597 Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: querying for an empty set in m-r?

2006-04-15 Thread Ian Clelland
in Python 2.4: >>> g = (x**2 for x in range(10)) >>> g >>> g.next() 0 >>> g.next() 1 >>> g.next() 4 Check out http://www.python.org/dev/peps/pep-0289/ (Generator Expressions) -- Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~--

Re: Ecommerce & Django

2006-04-15 Thread Ian Maurer
eral purpose library that has no Django dependencies. Maybe we can model (or at least learn from) the Perl OnlinePayment library that is here: http://420.am/business-onlinepayment/ I have also collected a few other links here: http://del.icio.us/imaurer/creditcards -ian --~--~-~--~~-

Re: collapse fields in admin [magic-removal]

2006-04-15 Thread Ian Clelland
that and it should work. Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ 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.

Re: template problem

2006-04-16 Thread Ian Clelland
you have constructed yourself would be to have a template loader which searched some sort of dictionary of previously-build template objects, but I don't think that's available in django right now. I'd love to be proven wrong, however. That would come

Re: OpenID?

2006-04-16 Thread Ian Clelland
ld save other implementers some time. Well, this thread likely won't stay active on the mailing list for very long; you should look at creating a node on the Django cookbook (at http://code.djangoproject.com/wiki/CookBook) with some sample code. Reg

Re: Custom Manipulator

2006-04-18 Thread Ian Clelland
r is just to pass. The save method has to take the fields from the new_data dictionary, assign them to fields in the original object, and call original.save(). Alternately, I think you could subclass yourmodel.ChangeManipulator, and override the methods in there that you need to change, but I'v

Re: Custom Manipulator

2006-04-19 Thread Ian Clelland
ect_key) original = manipulator.original if request.POST: # code here exactly like for AddManipulator else: errors = {} new_data = original.__dict__ # generate and present form just like AddManipulator Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~--

Re: 'Automatic tabulation' in table

2006-04-25 Thread Ian Holsman
Hi. I did something similar to this a while back I did it via a template tag. you can read about it here: http://feh.holsman.net/articles/2006/03/08/cross-tab-tag regards Ian. On 4/25/06, Sam Tran <[EMAIL PROTECTED]> wrote: > > On 4/24/06, Malcolm Tredinnick <[EMAIL PR

Re: django 1.1: nonexistent URLs display 500.html instead of 404.html

2012-02-21 Thread Ian Clelland
to the handling of the 500 error template, or possibly indicates another error in your application settings. Ian On Tue, Feb 21, 2012 at 10:36 AM, rabousha wrote: > I am using django 1.1, with DEBUG = False, and > TEMPLATE_CONTEXT_PROCESSORS is missing commas, all nonexistent URLs > dis

Re: django 1.1: nonexistent URLs display 500.html instead of 404.html

2012-02-22 Thread Ian Clelland
to upgrade. Django 1.3 is almost a year old, and is still the current version -- if you can wait a couple of weeks, you'll see 1.4 released as well. > With the commas missing, all requests to nonexistent URLs returned a > 500 error. > > > On Feb 22, 12:31 am, Ian Clelland wrote:

Re: internationalization makemessage don't work

2012-02-26 Thread Ian Clelland
django-admin.py, rather than manage.py? manage.py knows how to fund your settings files, and import all of your apps and check all of your template dirs. Try first running "manage.py makemessages -l fr" (since I suspect that your site is already in French, you won't have to actually do

Re: Using query set in views.py

2012-02-26 Thread Ian Clelland
name attribute. That is why you are getting None when you try to retrieve it from the POST dictionary -- the browser never sent it to the server. I'm certain that you have additional issues with your view function, but this is the reason for the error that you are seeing right now. Ian > *

Re: internationalization makemessage don't work

2012-02-27 Thread Ian Clelland
our INSTALLED_APPS setting contain the apps that should be translated? -- Regards, Ian Clelland -- 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

Re: Storing many to many fields

2012-03-18 Thread Ian Lewis
; 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. -- Ian http://www.ianlewis.org/

Re: Questions about UnicodeDecodeError

2012-04-03 Thread Ian Clelland
oerce it into the ASCII range before you put it in the database. As long as you remember to encode the data on save, and decode it (once!) before displaying it, you should be able to get it to work. Ian > I may be forced into doing that it seems > to make django even work. I tried t

Re: HttpResponse_is_string is removed Django 1.4

2012-04-06 Thread Ian Clelland
jangoproject.com/ticket/16494, and you can see the changes that were made for 1.4 here: https://code.djangoproject.com/changeset/16829) -- Regards, Ian Clelland -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: HELP with unicode!!!!!

2012-05-01 Thread Ian Clelland
t handle Unicode well. In fact, it's one of the first things mentioned in the docs: http://docs.python.org/library/csv.html Further down that page, though, is a snippet of code that you should be able to use (search the page for "unicode_csv_reader") If that doesn't work,

<    1   2   3   4   5   6   7   >