Re: Django memory leak -- or caching?

2006-06-16 Thread Ian Holsman
Hi. are you running in 'debug' or 'production' mode? debug caches alot of informatin about SQL quierues On 17/06/2006, at 2:52 PM, [EMAIL PROTECTED] wrote: > > Hi all, > > I've been writing some code that populates our mysql db's through > django. I have about 55 MB of pickled data (translating

Re: reuse of contrib.admin code for normal users

2006-06-17 Thread Ian Holsman
on each poll add something like user = models.ForeignKey(User, null=True, blank=True) in the update/create views add something like if request.user.is_anonymous(): return redirect_to_login(request.path) try: poll = Poll.objects.get( id= id ) except Compa

Re: "Normalizing/cleaning" text of bad/unclosed tags?

2006-06-20 Thread Ian Holsman
I avoid this issue by using a 'live preview' and let them use bbcode/ markup/textile only and stripping out ALL html. On 21/06/2006, at 9:28 AM, Jay Parlar wrote: > > On 6/20/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > >> LiveJournal as a well-evolved HTML filter, but it's in perl. >> http:/

Re: Can a custom field have two database columns?

2006-06-23 Thread Ian Holsman
Hi Arthur. I do something similar to this. I chose to implement it in middleware http://svn.zyons.python-hosting.com/trunk/zilbo/common/text/ middleware/Markup.py in a nutshell, if the 'description' field exists it will create the description_html field in the post, which would get applied by

BETA Announce: Gypsy Jobs - helping developers and companies find each other in DjangoLand

2006-06-25 Thread Ian Holsman
ments and feedback are most welcome. either on the list, email or here: http://gypsyjobs.com/forum/the- site-itself/ regards Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Time Tracking Tool

2006-06-27 Thread Ian Holsman
; Don't use the built-in USER? Where should the Rate be stored? What > other var's would you want to have tracked (keeping in mind this is > trying to be a small simple app)? features ? for me multi-currency and PDF invoice generation. but you may just want to use SQL-ledger of O

Re: Checking For Existing Rows

2006-06-27 Thread Ian Holsman
http://www.djangoproject.com/documentation/models/get_or_create/ ? but yeah.. besides from using get_or_create, the exception route is probably the easiest route. On 27/06/2006, at 4:58 PM, Tyson Tate wrote: > > In one of my apps, I need to check and see if a row already exists > based on a u

Re: Global template tags

2006-06-28 Thread Ian Holsman
Hi Poromenos. you can set up a context processor to do this. check out http://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/ context_processors.py for 2 simple ones and http://svn.zyons.python-hosting.com/trunk/zilbo/settings.py.tmpl (the very bottom) on how to configure it regards Ian

mailing list management

2006-06-28 Thread Ian Holsman
anyone in django land integrated mailing lists with django ? regards Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegro

Re: mailing list management

2006-06-29 Thread Ian Holsman
On 29/06/2006, at 7:12 PM, Malcolm Tredinnick wrote: > > On Thu, 2006-06-29 at 13:45 +1000, Ian Holsman wrote: >> anyone in django land integrated mailing lists with django ? > > I'm tempted to ask (quietly, and just to myself) "how hard could it > be?&quo

Re: Automatic redirecting after login

2006-07-02 Thread Ian Holsman
try /accounts/login/?next=/foobar ? On 03/07/2006, at 5:03 AM, bsdlogical wrote: > > Luigi Pantano wrote: > >> try this >> >> from django.http import HttpResponseRedirect >> >> ... ... >> >> def login(request): >>''' some code to put here ''' >>return HttpResponseRedirect("index.htm") >

Re: converting time to user's local timezone

2006-07-03 Thread Ian Holsman
hi Joe. you'll need to do 2 things (as far as I can tell) 1. store your local user's timezone 2. write a custom filter which does the work then use {{ object.create_date|convert_tz user.local_timezone }} or something like that. On 04/07/2006, at 8:04 AM, Joseph Heck wrote: > > Is there a way

Re: Managing database privileges

2006-07-05 Thread Ian Holsman
ld set up 2 separate settings files and make the updates go to a separate host with more access controls on it. but for the apps I'm writing now that isn't applicable. regards Ian > > Nate > > > --~--~-~--~~~---~--~~ You received this

Re: Generic views and dates in the future

2006-07-06 Thread Ian Holsman
I created a mix between the date-based generic view and the object- list view which I call 'history_view' (http://svn.zyons.python- hosting.com/trunk/zilbo/common/utils/views/filter.py ) it allows you show things starting from/ending on a specific date. an example of this is http://economy-cha

Re: where to put template tags post mr

2006-07-06 Thread Ian Holsman
app/templatetags/ ? On 07/07/2006, at 1:11 PM, Kenneth Gonsalves wrote: > > hi, > in pre MR, custom templatetags directory was placed in the same level > as the views.py file and it used to work. In post MR, django cannot > find these tags. Where do i put them. Putting them in the django/ > temp

Re: PostgreSQL vs. MySQL

2006-07-06 Thread Ian Holsman
I've been using mysql with Django for about a 8 months and have never had any issues with it. I chose mysql as I am more familiar with it. others are more familiar with postgreSQL. choose the one you are more comfortable with. regards ian. On 07/07/2006, at 4:17 PM, Thomas Ashelford

Re: PostgreSQL vs. MySQL

2006-07-07 Thread Ian Holsman
guys... this is turning into a religious debate. I think the question has been answered. both are excellent choices. and in the hands of an expert can be made to shine. On 08/07/2006, at 8:18 AM, Geert Vanderkelen wrote: > > Don Arbow wrote: >> On Jul 7, 2006, at 3:35 AM, Kenneth Gonsalves wro

Re: Deploying and set up on shared hosting?

2006-07-08 Thread Ian Holsman
On 08/07/2006, at 12:32 PM, Iain Duncan wrote: > > > > Jay Parlar wrote: >> Probably WebFaction (formerly python-hosting.com) would be your best >> bet: http://www.webfaction.com/shared_hosting > > That looks sweet. Anyone else have any feedback on these guys? Remi (the owner of webfaction) act

Re: mod_python autoreload acts unpredictable

2006-07-08 Thread Ian Holsman
while I don't advocate developer's hitting production .. it happens, and can make life easier may I suggest you just set up a sudo command to bounce the server? I would also make it so you have 2 code-bases and the command would switch to the 'fresh' one. ie the script would do something li

Re: Archlinux now running django!

2006-07-08 Thread Ian Holsman
congrats Sandro. it looks great. I'd be interested to hear what you (and others) think were the biggest obstacles you had and how you overcame them. regards Ian On 09/07/2006, at 2:25 AM, Sandro wrote: > > http://www.archlinux.org has just redesigned their site which is now &

Re: Deploying and set up on shared hosting?

2006-07-08 Thread Ian Holsman
my experiences have been vastly different to yours James. I found the attitudes of the admins to be very blasé. with a 'what do you expect for a shared host' type response. I would recommend going with someone who actually wants the business and knows how to support django. On 09/07/2006, at 9:

Re: Don't make me wait!

2006-07-09 Thread Ian Holsman
I actually started writing a queueing system a while back (and lost it during a hard drive crash) I recommend you look at hugo's stuff.jobcontrol package https:// simon.bofh.ms/django-projects/stuff/trunk/jobcontrol/ as a base. regards Ian On 09/07/2006, at 6:07 PM, wiz wrote: >

Announce: Django Performance Monitoring

2006-07-09 Thread Ian Holsman
Perform is a tool to help you diagnose your performance and QA issues within your Django application.you can find out more about it here: http://zilbo.com/@perfmonI've decided to charge $20 for it. People using it for debugging open source projects can get it for free. regardsIan --~--~-~--

Re: Announce: Django Performance Monitoring

2006-07-09 Thread Ian Holsman
Thanks Jeremy. I'll add that feature shortly. On 10/07/2006, at 6:06 AM, Jeremy Dunck wrote: > > On 7/9/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> you can find out more about it here: http://zilbo.com/@perfmon > > On the log detail screen, and if the response

Re: Problem with middleware

2006-07-09 Thread Ian Holsman
Hi Gullermo.I've done the same thing here:http://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/middleware/lastseen.pyby the looks of it you are forgetting to actually store it.ie      request.session['sysvortex_last_visit'] =  datetime.datetime.now() cheersIan.On 09/07/2006, at 11:56 PM, Gu

Re: [Newbie] Django & Cookies

2006-07-10 Thread Ian Holsman
request.COOKIE.get('foo',None) should do the trick On 10/07/2006, at 6:05 PM, Tom Davis wrote: > > Okay, this is a pretty simple question with probably a "duh" answer, > but I read the docs page on sessions and it doesn't specify, so here > goes: > > Say I have some php (or whatever) page that

Re: Announce: Django Performance Monitoring

2006-07-10 Thread Ian Holsman
Hi Favo, It's free if you work on a OSS project. regards Ian On 11/07/2006, at 12:21 AM, favo wrote: > > Ask very carefully, Do you want to make it OS? > If you feel not happy with the question, just ignore it please. > > > > --~--~-~--~~~---

IBM Article on TurboGears (w / Django Comparison)

2006-07-11 Thread Ian Maurer
will benefit from this additional exposure. Thanks to everyone who has helped create these great projects and continue working on them. Special thanks to Kevin and Adrian for offering feedback. If you catch any issues with this article, please send me an email and I will get a fix in. regards, Ian

Re: Atomic value increment

2006-07-12 Thread Ian Holsman
why not use a GUID ? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/163604 On 13/07/2006, at 8:08 AM, Jay Parlar wrote: > > On 7/12/06, Don Arbow <[EMAIL PROTECTED]> wrote: >> >> On Jul 12, 2006, at 8:56 AM, Jay Parlar wrote: >>> >>> Is there a better way to do this? More specifically,

Re: Set up problems ( webfaction )

2006-07-13 Thread Ian Holsman
Hi Iain. in your apache config do something similar to http://svn.zyons.python-hosting.com/trunk/zilbo/conf/zyons.conf.tmpl and that will let the apache handle the 'images' area of your site instead of django. On 14/07/2006, at 12:02 PM, Iain Duncan wrote: > > I'm setting up a sight on webfa

Re: Django vs. Rails vs. Symfony: Django is fastest

2006-07-14 Thread Ian Maurer
On 7/14/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Jul 14, 2006, at 1:18 PM, Adrian Holovaty wrote: > > Some folks benchmarked Symfony, Ruby on Rails and Django. Django was > > the fastest. > > By over 30% -- hell yeah! > That's awesom

Re: Perspective on building a community blog in a short timeframe

2006-07-15 Thread Ian Holsman
maybe http://zyons.com will do what you need (or provide a base for it at least) On 15/07/2006, at 4:06 AM, Joe Murphy wrote: > > Yup, I caught that earlier today, it's a good start. I think the > details that matter here are the timeline, ease-of-use by a > non-technical audience, and hacking

Re: Django vs. Rails vs. Symfony: Django is fastest

2006-07-16 Thread Ian Holsman
is this a test of django vs pylons or a test of mod_python vs wsgi ? a pre-test showing a serving a simple static page through both of them (also 15k) would highlight if django's templating engine is indeed faster than pylons. (and it might convince the pylons team to use mod-python instead of

Re: How to get django to show me the sql it executed recently?

2006-07-17 Thread Ian Holsman
http://zilbo.com/@perfmon captures this kind of information on a per- request basis. On 18/07/2006, at 12:06 PM, Malcolm Tredinnick wrote: > > On Mon, 2006-07-17 at 18:44 -0700, Scott Chapman wrote: > [...] >> p.s. Any chance this could be added to the Admin interface. It's the >> intuitive

Re: how to email a password

2006-07-18 Thread Ian Holsman
I do something similar to Kenneth.the other approach is to use something like OpenID, and make it somebody else's problem.On 19/07/2006, at 3:16 PM, Kenneth Gonsalves wrote:On 18-Jul-06, at 9:20 PM, va:patrick.kranzlmueller wrote: next problem with my user registration process:how do I send the pas

Re: Having problems getting started with Zyons

2006-07-19 Thread Ian Holsman
Hi Tony.Thanks for giving Zyons a whirl.'popular_objects' is part of the 'counter' app which tracks what people are viewing.you don't need it installed for the rest of the app to run.that being said.he SQL you are showing me doesn't seem to contain the 'group by' command which looks like it is pres

Re: Having problems getting started with Zyons

2006-07-19 Thread Ian Holsman
didn't 'diss' it at all.bugs happen.have you tried running the SQL directly from the mysql command prompt?it doesn't cause an error on mysql 5.0.16 or 5.1.11;(maybe the trackback will help.On 19/07/2006, at 7:56 PM, tonemcd wrote:Sorry Ian, I didn't mean to dis

Re: Having problems getting started with Zyons

2006-07-19 Thread Ian Holsman
hmm..the SQL shouldn't be that complex.. it's pretty standardcan you try running it without the date ?or perhaps changethe with content_type_id in (30) to content_type_id = 30On 19/07/2006, at 8:10 PM, tonemcd wrote:Ian,I think that's it - it definitely causes an SQL error on MySQL4.1.18-standard.D

Re: Having problems getting started with Zyons

2006-07-19 Thread Ian Holsman
try order by 3 descOn 19/07/2006, at 8:40 PM, tonemcd wrote:I dug around a little, href=""http://archives.neohapsis.com/archives/mysql/2005-q2/1966.html">http://archives.neohapsis.com/archives/mysql/2005-q2/1966.html">thishelped a lot - and I found that this works (4.1.18-standard);mysql> select co

Re: Caching in Django admin

2006-07-20 Thread Ian Holsman
is there a similar decorator to cache the output of a tag?regardsIanOn 20/07/2006, at 6:28 PM, Axel Steiner wrote:Hi, It looks like the right way to deal with this is to implement per pagecaching, but that doesn't look too simple to me. I hope that someonewill prove me wrong by posting some simple

Re: shared apps accross multiple sites/projects

2006-07-20 Thread Ian Holsman
cific folder in my template path which overrides any project-specific ones.that way if site #4 wants to do something crazy it goes in site_4_templates/.regardsIan --Ian Holsman[EMAIL PROTECTED]http://economychat.com discussion on the economy and economics in general --~--~-~--~~---

Re: Is Django the framework I've been looking for?

2006-07-20 Thread Ian Holsman
27;s the main reason I chose to develop my first app in Django, instead of Rails, and from then I've been hooked. --Ian Holsman[EMAIL PROTECTED]http://economychat.com discussion on the economy and economics in general --~--~-~--~~~---~--~~ You received this message b

Re: ContentTypes usage

2006-07-20 Thread Ian Holsman
n learn about ContentTypes fromhttp://www.djangoproject.com/documentation/models/generic_relations/and also from the code of django.contrib.comments Thank you very much for this one! I'll try to figure it out.regards,Uros --Ian Holsman[EMAIL PROTECTED]http://

Re: How to debug ajax transfer

2006-07-21 Thread Ian Holsman
ow how to get the errors at this case? Is there an easy way tooutput the debug to somewhere manually? --Ian Holsman[EMAIL PROTECTED]join http://gyspsyjobs.com the marketplace for django developers  --~--~-~--~~~---~--~~ You received this message because you are

Re: request for applications

2006-07-21 Thread Ian Holsman
OSS classified application in another language that hasmost of the features you like, and see how it works if you are looking for the business logic.There are several OSS applications in django land if you want to see how models/views/urls interact.regardsIanTim --Ian Holsman[EMAIL PROTECTED]

Re: Syndication and authentication question

2006-07-22 Thread Ian Holsman
arnham wrote:I am messing with feeds for the first time with Django and waswondering if there is anyway to do authentication (i.e. grab thesession) from inside the my Feed class? I followed the high levelframework example from the documentation page if that helps inunderstanding how I implemen

Re: Search Engine for Python and Django

2006-07-23 Thread Ian Holsman
SolR  http://incubator.apache.org/projects/solrmight be worth a look.. I think there is a python interface for it.regardsIan.On 24/07/2006, at 1:08 PM, Vizcayno wrote:Hi:Do your have news about the promising MerQuery?I was looking for some good open software Search Engine API (index andsearch) for

Re: TEMPLATE_CONTEXT_PROCESSORS

2006-07-24 Thread Ian Clelland
ur own views, then you may be using plain Context objects, and your context processors won't be executed at all. -- Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: Generic views and dates in the future

2006-07-27 Thread Ian Holsman
On 08/07/2006, at 12:12 AM, Jan Claeys wrote:On do, 2006-07-06 at 17:03 -0400, Jay Parlar wrote: On 7/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: If I were to write a backwards compatable patch, is it something you'dbe willing to put in? I'm thinking along the lines of a keywordargument 'allow

Re: Loading an url takes 60 sec.

2006-07-28 Thread Ian Holsman
Hz, 256 MB, postgresql-8.1.4 or postgresql-8.0., fresh svndjango.Every url takes 60 or more seconds to load.For comparison, Zope takes 2-3 sec.How speed up it? --Ian Holsman[EMAIL PROTECTED]http://VC-chat.com It's what the VC's talk about --~--~-~--~~~---~-

Re: Loading an url takes 60 sec.

2006-07-28 Thread Ian Holsman
pen source.. other people don't have this restriction.regardsIanOn 28/07/2006, at 6:28 PM, and_ltsk wrote:hi Ian, you have to give us a bit more >information. what does your app actually do in that 60 >seconds? personally it sounds like your database >isn't tuned... but I'

Re: Loading an url takes 60 sec.

2006-07-28 Thread Ian Holsman
could it be that you only have 256M on the machine? --Ian Holsman[EMAIL PROTECTED]http://economy-chat.com It's what the economists talk about --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: use data model and database api along

2006-07-29 Thread Ian Clelland
isting database (not that I've actually tried this). Basically, you can use the admin tool to create the models.py file from an existing database, rather than doing it the other way around. Check out the documentation at http://www.djangoproject.com/documentation/legacy_databases/ for a star

Re: Scandinavian characters in .po files and timezones

2006-07-30 Thread Ian Clelland
e in vim, when you are using it interactively. It is not required in a .vimrc file. -- Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: non date-based detail pages: previous/next?

2006-07-30 Thread Ian Holsman
you might want to do this 'work' when the user actually requests the page in question, not when you generate the one he is looking at.for example have 2 views defined in urls.pygetnext/(object-id)/getprev/(object-id)/and have these 2 views do the calculation on what is 'next' and issue the 301 redi

Re: Tracking views or clicks

2006-07-31 Thread Ian Holsman
have a look at http://svn.zyons.python-hosting.com/trunk/zilbo/common/counter/and the blog entries I wrote about this yesterday: http://zyons.com/blog/status/a-better-stat-page/ and http://zyons.com/blog/status/where-have-you-been/it is a more general approach than what you propose, as it tracks mu

Re: Django source editing offtopic

2006-08-01 Thread Ian Holsman
vim.mainly because it works on nearly any platform I need to go into.and my fingers are trained after years of using it.On 02/08/2006, at 9:29 AM, Joseph Heck wrote:On the Mac, I used TextWrangler (http://www.barebones.com/products/textwrangler/ also free, from Bare Bones Software) and liked it sig

Re: Django source editing offtopic

2006-08-01 Thread Ian Clelland
On 8/1/06, toth anna <[EMAIL PROTECTED]> wrote: > What are you using for editing sources? If you're a native vim speaker, I have a version compiled for OSX, using the native Aqua interface, off of my homepage here: http://ian.casa.cavewallarts.com/vim.html Ian Clelland <

Re: customize admin

2006-08-01 Thread Ian Holsman
Hi Gen-Nan.you can override the template that the admin app uses to generate the listing page if that helps.so for example in my performance monitoring app, I created a template admin/perf/log/change_list.htmland put that file in my template directory.now when i click on the 'perf/log' model in the

Re: Project when using multiple sites

2006-08-01 Thread Ian Holsman
Hi Jay.I have a similar issue.I have stuff in http://zyons.com, which is open source, and another set of apps which build on top of it which run on multiple hosts. (http://gyspsyjobs.com & http://car-chatter.com for example)the way I set it up is:project/ common/ app1/ templates app2/ templat

Re: Project when using multiple sites

2006-08-02 Thread Ian Holsman
On 02/08/2006, at 10:29 PM, Jay Parlar wrote:On 8/2/06, Ian Holsman <[EMAIL PROTECTED]> wrote: and obviously not all the sites are identical (they have different hostnamesand possibly different things enabled for that site) .. they go in thesite_NN directory.I usually have a group of '

Re: Is AJAX Alone Reason to Use TG?`

2006-08-03 Thread Ian Holsman
I just came across this presentation: http://domscripting.com/presentations/xtech2006/which describes a new layer/methodolgy on how ajax should be implemented.I personally would think implementing something like this would be a step forwardand we could then argue about if mochikit or dojo or yui or

Re: translating app-name

2006-08-03 Thread Ian Clelland
y use for models and fields? 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.com

Re: accessing was_published_today in a template

2006-08-03 Thread Ian Clelland
{% else %} Not today's poll {% endif %} On a list page, you are probably already iterating over the "object_list" variable -- you should be able to access the was_published_today method in a similar manner, for each element of that set. Ian Clelland <[EMAIL PROTECTED]> --

Re: Creating 2 linked models from one page

2006-08-03 Thread Ian Clelland
an instance of A -- although you could certainly make it do that. 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 ema

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Ian Holsman
I'm just glad we'vefinally fixed the "Add user" thing.Adrian-- Adrian Holovatyholovaty.com | djangoproject.com --Ian Holsman[EMAIL PROTECTED]join http://gyspsyjobs.com the marketplace for django developers  --~--~-~--~~~---~--~~ You received this mess

Re: Rejoice! No more editing hashes when creating users

2006-08-03 Thread Ian Holsman
On 04/08/2006, at 3:37 PM, Malcolm Tredinnick wrote:On Fri, 2006-08-04 at 15:13 +1000, Ian Holsman wrote:[...] I like the idea of a change password view, could I twist your arm a bit and make it a  'generate random passwordand email it to the user view' instead of 'set password'

Public Domain ( was Re: Full Text Search w/ MySQL)

2006-08-04 Thread Ian Holsman
t-Away” license provides no protection for anyone if the donated software causes  harm.ie.. even if you didn't mean it, if I used a piece of public domain code in a app I write and it fails,i can still go after the person who wrote it and sue them.thanks.. that makes my chest feel much lighter.

Re: Off Topic: Mac software for database design?

2006-08-04 Thread Ian Holsman
sourceforge.net/CocoaMySQL was abandoned a while back ;-(.another developer started updating it, and called it CocoaMySQL SBG http://www.theonline.org/cocoamysql/I recommend using that version instead of the original.. regardsIaj-joh --Ian Holsman[EMAIL PROTECTED]http://zyons.com/ build a

Re: How can I use variables in included URLConf's before they are sent to views?

2006-08-06 Thread Ian Holsman
ariables that were collected in the main URLconfand use them to build my queryset? --Ian Holsman[EMAIL PROTECTED]http://VC-chat.com It's what the VC's talk about --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: usage of GenericForeignKey ?

2006-08-07 Thread Ian Holsman
object_id = models.IntegerField(_('object ID'), db_index=True)???Django version from SVN-trunk 3534.Regards,Dirk--  --Ian Holsman[EMAIL PROTECTED]http://peopleintopoker.com/ -- where the poker people go --~--~-~--~~~---~--~~ You received this message because yo

Re: Using custom forms with generic views

2006-08-08 Thread Ian Holsman
the code.regardsIanOn 08/08/2006, at 2:45 AM, jeffmikels wrote:Thanks for your help. I ended up creating a view to do the work. If thedata is simple enough and just plain text, is there a compelling reasonto use AddManipulator or other manipulators instead of justobject.save()? --Ian Holsman[EMAIL P

Re: Google-like API keys

2006-08-10 Thread Ian Holsman
personally I would DES encrypt their email address.that way you have a contact if something goes wrong.On 11/08/2006, at 3:01 AM, Jyrki Pulliainen wrote:On 8/10/06, Felix Ingram <[EMAIL PROTECTED]> wrote: On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: Nowadays(is that a word?) a lot of fancy web s

Re: stripogram as middleware or templatetag

2006-08-11 Thread Ian Holsman
Hi Dirktryhttp://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/middleware/SafePost.py(it uses stripogram)It doesn't remove all the exploits to be sure, but it raises the bar a bit.regardsIan.On 12/08/2006, at 8:06 AM, Bryan Chow wrote:What exactly are you trying to achieve with Strip-o-Gram

Re: what features do you like to see in a rss reader

2006-08-13 Thread Ian Holsman
sIan-- Renéhttp://www.applinet.nl --Ian Holsman[EMAIL PROTECTED]http://med-chatter.com/ it's about the medicine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: subdomains in django

2006-08-14 Thread Ian Holsman
te without having to resort to trickery in django.otherwise you could write some middleware to do the same thing as well I think.On 15/08/2006, at 10:47 AM, a wrote:can you point out how to do this in django and in pythonthanks a bunch --Ian Holsman[EMAIL PROTECTED]http://car-chatte

Re: Django neophyte question.

2006-08-14 Thread Ian Holsman
rks in cherryPy and PythonPaste from behind the firewall, so Iknow it's not a port issue.I'm sure I'm missing something simple. Please let me know what urlparameter to set to access my page from a remote machine.Thank you,Gloria --Ian Holsman[EMAIL PROTECTED]join http://gypsyj

Re: Directory structure & common functions

2006-08-15 Thread Ian Clelland
import app1.views. Error was: No module > named utils.strings If you want to be able to import files like this, you will need a file in the utils directory called __init__.py. You can leave the file empty, but it has to be there for python to recognise the directory as a package. Reg

Re: subdomains in django

2006-08-15 Thread Ian Holsman
write without having to resort totrickery in django.otherwise you could write some middleware to do the same thing aswell I think.On 15/08/2006, at 10:47 AM, a wrote: can you point out how to do this in django and in pythonthanks a bunch --Ian Holsman[EMAIL PROTECTED]http://car-chatter.com/ where ca

Re: Question and a problem about FileField

2006-08-15 Thread Ian Clelland
ith a patch to address this problem ( http://code.djangoproject.com/ticket/2534 ). If this patch is applied to the django source, then your models will work as you expect them to. -- Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received th

Re: upload error | deleting object after it has been uploaded...

2006-08-15 Thread Ian Clelland
at Apache is running under (www-data on my Debian systems, for example). Double-check the directory ownerships and permissions, and see if you can get it to work with a FileField in a simple model. Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~

Re: question about huge websites

2006-08-15 Thread Ian Holsman
;low level socket stuff" I've seen is about setting timeouts and doing Async IO.regardsIan --Ian Holsman[EMAIL PROTECTED]join http://gypsyjobs.com the marketplace for django developers  --~--~-~--~~~---~--~~ You received this message because you are subscribed

geographic targeting with django

2006-08-15 Thread Ian Holsman
Hi.does anyone know of a python module/interface to allow me to determine what state a given IP# is in?(Open source preferably) --Ian Holsman[EMAIL PROTECTED]http://VC-chat.com It's what the VC's talk about --~--~-~--~~~---~--~~ You received this messa

Re: How do I store project in subversion?

2006-08-15 Thread Ian Holsman
.pyc files in subversion. also how do you guyshandle different settings.py files amongest developers.--Ian Holsman[EMAIL PROTECTED]http://med-chatter.com/ it's about the medicine --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: Locking problem with mod_python

2006-08-15 Thread Ian Holsman
aren't semaphores inter-process (not cross process)?try using a file handle instead..regardsIan.On 16/08/2006, at 11:49 AM, Daniel Poelzleithner wrote:Hi,I have a function that generates a tile for a google map overlay andwrites it to disc so later requests can simply use the file. Due thenature of

Re: Custom file handling

2006-08-15 Thread Ian Clelland
ally, our PhotoField class also supports thumbnail generation, although we generate them dynamically, rather than saving them at upload time. Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Accessing db_table in _pre_save()

2006-08-15 Thread Ian Holsman
t hard-coding the name. > > Is it possible to access the table name of a model from one of it's > methods? > > Thanks. > > > (I'm using Django 0.95, btw) > -- Ian Holsman [EMAIL PROTECTED] join http://gypsyjobs.com the marketplace for django developers --~

Re: Re: how to redirect to a new page,but keep the browser's url unchanged

2006-08-16 Thread Ian Clelland
re probably better off leaving them in a media directory, and letting Apache handle them, and just live with the URL bar showing the real location. Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: showing future events only?

2006-08-16 Thread Ian Clelland
its fields, and the exact structure of your urls.py file. -- 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

Re: showing future events only?

2006-08-16 Thread Ian Holsman
would this actually work? I thought this would have been evaluated when you start up the process, and the show_dict is first called. not on every request (which is what they want I'm guessing) regards Ian. On 17/08/2006, at 5:30 AM, [EMAIL PROTECTED] wrote: > > Do I need to impo

Re: Custom db fields / creation.py

2006-08-17 Thread Ian Clelland
oid having to tinker with the backend source, is to override the get_internal_type method of my custom fields. By default, it returns the name of the class it is called from, but you can override that to return the string "ImageField" and the database table will be created correctly.

Re: notification when an object is deleted

2006-08-17 Thread Ian Clelland
d when the user is deleted, you could alter the ticket table in your database. Just make sure that the user_id column explicitly says "on delete cascade", and the database will take care of deleting tickets automatically. Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~

Re: check for yourself (((;

2006-08-17 Thread Ian Holsman
*hope* that web developers know this, and know how to > do this already... > > -- > "May the forces of evil become confused on the way to your house." > -- George Carlin > > > -- Ian Holsman [EMAIL PROTECTED] http://zyons.com/ build a Community with Django

Re: check for yourself (((;

2006-08-17 Thread Ian Holsman
evurandom.org/ > Web Developer, Naples News http://www.naplesnews.com/ > Samba Team http:// > www.samba.org/ > -- Ian Holsman [EMAIL PROTECTED] http://VC-chat.com It's what the VC's talk about --~--~-~--~~~---

Re: How to create my own Field Types ?

2006-08-17 Thread Ian Clelland
the value is stored in the database. (Override the get_internal_type method to return "IntegerField" at the very least) Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: check for yourself (((;

2006-08-17 Thread Ian Clelland
On 8/17/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > this is how various worms spread in the past. they did a google > search for a specific 'feature' > and then with a known vulnerability in hand, they would attack that > site, put their worm on it, and repeat. Ian

Re: check for yourself (((;

2006-08-17 Thread Ian Holsman
On 18/08/2006, at 4:39 PM, Ian Clelland wrote: > > On 8/17/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> this is how various worms spread in the past. they did a google >> search for a specific 'feature' >> and then with a known vulnerability in hand, t

Re: notification when an object is deleted

2006-08-19 Thread Ian Clelland
nt, like assign the tickets to another user, you will have to write a custom view (and possibly a custom manipulator) to do this. In that case, you would not want to delete users using the built-in admin interface at all, but use your custom view instead. Regards, Ian Clelland <[EMAIL PROTECTED]

Re: real-world Django examples

2006-08-19 Thread Ian Holsman
On 20/08/2006, at 8:13 AM, Jay Parlar wrote: > > Ian Holsman makes the source of zyons.com available. this powers a couple of different websites: - http://gypsyjobs.com and - http://garden-gossip.com being 2 examples. regards Ian > > As well, Jeff Croft makes the source for lost-

Re: Login not working: Site matching query does not exist.

2006-08-21 Thread Ian Holsman
te: > > I'm still having this problem (neglected it for a while, but now is > the > time I MUST solve it). Has anybody here a suggestion in which > direction > to search? > > > > -- Ian Holsman [EMAIL PROTECTED] http://garden-gossip.com/ -- what's in you

<    1   2   3   4   5   6   7   >