Re: Django architecture question

2010-06-15 Thread Ian McDowall
utility functions then they can be pulled out into separate modules. Once you realise that the views.py is only a convention then it just becomes a question of structuring a large Python app. Hope this helps, Ian McDowall On Jun 15, 5:55 am, Joel Klabo wrote: > I am working on a simple site right

Re: how to use render_to_response, ajax and javascript variables

2010-06-16 Thread Ian McDowall
another if you wanted. I realise that this doesn't actually solve your problem of combining HTML and JSON in a response and I think one of the other comments addresses this but I wanted to make the point that JSON by itself is easy. Cheers Ian On Jun 16, 1:17 pm, Alex wrote: > Hi, > &

Re: Multiple AJAX sends within a views.py-function

2010-06-16 Thread Ian McDowall
t of extra work and possible bugs so I don't recommend it if there is any alternative. Cheers Ian On Jun 15, 8:45 pm, Christoph Siedentop wrote: > Hi Dmitry, hi Ian, > > thanks for the help. > > I got it to work. Here is what I am doing. > > Django gets a request for &qu

Re: how to use render_to_response, ajax and javascript variables

2010-06-17 Thread Ian McDowall
rst_name":"{{one_member.first_name}}", "last_name":"{{one_member.last_name}}" }, {% endfor %} ]} I choose text/plain deliberately but you might choose text/json (or something else). if you embed HTML in JSON then you will need to be careful that the HTML does not itself

Re: how to use render_to_response, ajax and javascript variables

2010-06-17 Thread Ian McDowall
some point. Cheers Ian On Jun 17, 9:37 am, Matt Hoskins wrote: > I was just copying Ian's choice of mimetype - see Ian's comment above > "I choose text/plain deliberately but you might choose text/json (or > something else)."... Although it's worth po

Re: How to pass a raw ORDER_BY command or function call to a results query object?

2010-06-17 Thread Ian Lewis
In this case you want to use extra(). Assuming jobs is a QuerySet or Manager instance: jobs = jobs.extra(select={greatest_time': 'GREATEST(startTime, queueTime)'}) jobs = jobs.extra(order_by=['-greatest_time']) On Thursday, June 17, 2010, Kyle wrote: > Without any filtering, I can execute the fo

Re: create table

2010-07-19 Thread Ian Lewis
ield > agree_open_info:BooleanField For this you'll need to create a model for your user profile and specify it in the AUTH_PROFILE_MODULE setting. You can then access a user's profile using the get_profile() method on the user. See: http://docs.djangoproject.com/en/dev/topics/auth/#s

Re: Django 1.3

2010-08-16 Thread Ian Lewis
Kenneth, >From my experience, South works well with mysql. However because sqlite doesn't provide support for some schema alterations such as dropping columns, it is as you said, pretty touchy. Ian On Mon, Aug 16, 2010 at 2:52 PM, Kenneth Gonsalves wrote: > On Mon, 2010-08-16 at

Re: How to debug ORM filter stacking?

2010-09-25 Thread Ian Lewis
l 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/ -- You received this message because you are subscribed to the Google Groups "Django users

Re: Separating application media from project media

2010-10-01 Thread Ian Lewis
opies them to a site_media directory so that you can serve them from a web server. It also allows you to manage uploaded media separately from static files. http://pypi.python.org/pypi/django-staticfiles/ -- Ian http://www.ianlewis.org/ -- You received this message because you are subscribed to

Re: Django Registration password reset problem

2010-10-06 Thread Ian Lewis
this list aren't paid to do so, and mostly have >> > full-time jobs. >> >> > So a little patience will make it more likely people will help you. >> >> > regards >> >  Steve >> > -- >> > DjangoCon US 2010 September 7-9http://djan

Re: Django 1.3 alpha 1 released

2010-11-11 Thread Ian Lewis
but, it was my impression that this conversation had been played out and that the API was pretty much decided. -- Ian http://www.ianlewis.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-01 Thread Ian Kelly
;) >>>> cursor.fetchone()[0] > 'Registro guardado con \xe9xito' It's not clear to me which setting you used here. Was this using the .UTF8 NLS_LANG as I requested? If so, then in fact this is also coming back incorrectly, because that is not UTF-8. If not, then we're

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Ian Kelly
On Thu, Dec 2, 2010 at 6:43 AM, Anurag Chourasia wrote: > Hi Ian, > Yes.I set the NLS_LANG in my shell to UTF8 before trying this. > Query using Django model still fails (direct query using cx_Oracle works > fine) > Regards, > Anurag Okay, so it would appear that the clie

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Ian Kelly
On Thu, Dec 2, 2010 at 1:21 PM, Anurag Chourasia wrote: > Hi Ian, > Here is the information requested by you. > $ python > Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14) > [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin > Type "help", "copyr

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Ian Kelly
On Thu, Dec 2, 2010 at 3:23 PM, Ian Kelly wrote: > Weird.  From what I can tell, this seems to have something to do with > Cygwin, or at least I'm able to replicate it in that environment. > Setting NLS_LANG in or out of process and changing the registry key > all have no ef

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Ian Kelly
On Thu, Dec 2, 2010 at 5:34 PM, Anurag Chourasia wrote: > Hi Ian, > I just tried the ctypes solution that you mentioned in your previous email > but it does not work for me. In your transcript, it appears that Django has already been loaded when you call the ctypes code. The en

Re: Django 1.2.3, Oracle with Character Set WE8MSWIN1252 - 'utf8' codec can't decode bytes

2010-12-02 Thread Ian Kelly
On Thu, Dec 2, 2010 at 5:52 PM, Anurag Chourasia wrote: > Hi Ian, > Can't tell you how much this helps :-) > Setting the variable using ctypes before the import of cx_Oracle does the > trick for me. > Appreciate the time you spent in helping resolve this. > Is there any Cy

Re: NoReverseMatch:

2010-01-16 Thread Ian Lewis
Bhaskar, The error means that there is either no defined URL called 'tellfriend' or it requires some kind of argument, like a user id, to generate the URL. Having two separate forms with different actions is no problem. Fixing the URL reversing should clear up your issue. Ian

Re: Set language on per page basis

2010-02-25 Thread Ian Lewis
In process_request you have access to the request object which knows the current path (request.path). You can use that to determine which language to show the page in. Or if you are determining the language based on a url parameter you can look at request.GET Ian On Thu, Feb 25, 2010 at 8:24 AM

Re: Set language on per page basis

2010-02-25 Thread Ian Lewis
BTW: django-cms does something similar to what you are trying to do. You can check out it's implementation here: http://github.com/digi604/django-cms-2.0/blob/master/cms/middleware/multilingual.py 2010/2/25 Ian Lewis : > In process_request you have access to the request object which kno

Re: Serving https with runserver

2010-03-01 Thread Ian Lewis
Ian On Mon, Mar 1, 2010 at 7:43 PM, Gonzalo Delgado wrote: > El 01/03/10 07:07, cool-RR escribió: >> Adnan, I'm really baffled by your response. No, my reasons for using >> SSL here is not because I'm afraid someone will sniff my data, We are >> talking here

Re: Facebook Connect

2010-03-15 Thread Ian Langworth
Try django-socialregistration. I've had success with it. On Mon, Mar 15, 2010 at 12:52, CrabbyPete wrote: > I am trying to integrate pyfacebook into a existing project, and its > driving me nuts. I just want users to be able to sign in with > facebook.  Anyone else try this and any recommendation

Re: Creating sample users for testing

2010-03-23 Thread Ian McDowall
I had the same issue but I also wanted to create additional data for each user. It was straightforward to create a script to add users. I needed to import some bits to set up the Django environment and then I was able to create users with standard Django calls. Here is extracts from my code (with

Re: how to migrate data to django-tagging

2010-04-11 Thread Ian Struble
f forwards(self, orm): # ... replace the del_column tagging_tags and add_column tags w/ # Renaming field 'Tour.tagging_tags' to 'Tour.tags' db.rename_column('tours_tour', 'tagging_tags', 'tags') Best, Ian On Apr 11, 5:06 am,

Re: querying on a field equal to a manytomany object

2010-04-12 Thread Ian Struble
I think you are looking for the 'in' field lookup: http://docs.djangoproject.com/en/dev/ref/models/querysets/#in Item.objects.filter(genre__in=some_video.genre.all()) On Apr 12, 10:03 am, Nick Serra wrote: > Hey everyone, thanks for looking. I couldn't think of a good title for > this one.

Re: Django Newbie seeking for advice

2010-04-12 Thread Ian Lewis
Mr. Yu, On Tue, Apr 13, 2010 at 9:56 AM, Mister Yu wrote: > > 1. can you suggest an up-to-date(django 1.1) book which can guide a > newbie to a higher level? ebook is ok, free is more than ok :) > I think the semi-official Django book is where most people start. It's available online and curre

Re: Override Delete Function

2010-04-12 Thread Ian Lewis
Tom, You could try doing this clear logic in a pre_delete signal. You might have to test out the timing of when the signals get called but it should call pre_delete for all deleted models. In this case it would call pre_delete on model2 before model1 but you should be able to get what you are look

Re: urllib2: post request to a django form

2010-04-13 Thread Ian Lewis
Try running the server locally using the devserver and posting to it. You can invoke python's debugger when the post is recieved on the server side by adding some code like the following: import pdb;pdb.set_trace() On Wed, Apr 14, 2010 at 7:30 AM, bfrederi wrote: > I'm attempting to re-route us

Re: CSRF and Caching

2010-04-13 Thread Ian Lewis
There is the possibility that the token could be cached in html if you are using the cache template tag. Otherwise the token shouldn't be cached. On Wed, Apr 14, 2010 at 3:31 AM, scoopseven wrote: > Is there any possibility that CSRF tokens could be cached by memcache > causing chaos on a django

Re: many to many based upon common field

2010-04-13 Thread Ian Lewis
wizard, Would it make sense to use the intermediate table to hold the field? Using the stack overflow example: class Edi856(models.Model): pass class Order(models.Model): edi = models.ManyToManyField(Edi856, through='PoNum') def in_edi(self): '''Has the edi been processed?''

Re: save_model admin

2010-04-13 Thread Ian Lewis
If you are talking about Django's admin couldn't you implement it by overriding save_model as your subject seems to suggest? http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model

Re: Getting error in Cloudwatch EC2 BOTO

2010-04-14 Thread Ian Lewis
Nitin, You will need to provide more information about the error you are getting and in what circumstances it is occurring if you would like someone to help you. Ian On Thu, Apr 15, 2010 at 2:10 PM, nitin shrimali wrote: > Hello guys > I am having error when performing Cloudwatch in

Re: Music E-zine development in Django

2007-06-06 Thread Ian Lawrence
Hi, Can you post me the svn link too to play around with..i am involved with a Brazilian Free Studio Project called Estudiolivre (http://estudiolivre.org) and it would be great to co-operate. Regards Ian On 6/6/07, temnoregg <[EMAIL PROTECTED]> wrote: > > thanks for response, > &g

Re: django hosting companies

2007-08-14 Thread Ian Lawrence
ola i have said before on this list but these http://www.webfaction.com/ guys are awesome...i have nothing to do with them i just respect their service and support []'s Ian On 8/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I was looking at the django friendly hos

single sign on for integrated django,trac and phpBB site

2007-08-27 Thread Ian Lawrence
Ian -- http://ianlawrence.info --~--~-~--~~~---~--~~ 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 group, sen

Re: About to give up!!!

2008-02-09 Thread Ian Lawrence
Ola what are the permissions on the image file? regards ian -- always code as if the person who ends up maintaining it will be a violent psychopath who knows where you live. http://ianlawrence.info --~--~-~--~~~---~--~~ You received this message because you are

Re: Xcode as Django IDE

2008-02-13 Thread Ian Holsman
Alex Ezell wrote: > Textmate works great for me. I use GetBundle > (http://projects.validcode.net/getbundle) to get the Django bundle > which does syntax completion and highlighting for Django-specific > Python files and Django template HTML. > > Textmate, and a couple of terminal windows for m

TestClient assertFormError method.

2008-02-22 Thread Ian Macdonald
e test works, so it appears that it's the secondary lookup that this assertion cannot handle. Does anyone know if that's correct, and/or if there's a work-around or something I'm doing wrong? I'd rather not take apart the dictionary just for the s

Re: How to do background processing with Django

2008-03-26 Thread Ian Lawrence
ing up xml-rpc is not much more than this...i did this recently at https://help.ubuntu.com/community/UMEGuide/ApplicationDevelopment/GPSEnabledWebApplication and it is pretty simple to do (and really the best way IMO to run background processes) Ian -- http://ianlawrenc

paul bragiel / lefora is a spammer

2008-04-09 Thread Ian Holsman
Writing it here as lefora is written on django, and he or the developer who wrote it for him will see it and be ashamed of themselves. This guy just IM'd me asking me to digg his forum software. I have never met the guy, and am assuming he also spammed other people on the mailing list. and am

Re: Overwriting RSS item links

2008-04-11 Thread Ian Lawrence
l some template to get the variable and pass it back into the view but i have not yet fully thought out the technique...any advice is obviously welcome Ian -- http://ianlawrence.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Overwriting RSS item links

2008-04-11 Thread Ian Lawrence
On Fri, Apr 11, 2008 at 7:40 AM, Ian Lawrence <[EMAIL PROTECTED]> wrote: > Hi > > > Is there any way I can change this behaviour as I need to overwrite the URL > > completely to something like > you could do something like in settings.py: > ROOT_URL = whogotmassiv

code runs in django shell but not apache

2008-05-19 Thread Ian Lawrence
7;) except Theme.DoesNotExist: raise Http404 I *think* this might have something to do with permissions as the user ian runs the django shell but www-data the apache process. i have changed permissions and ownership but still no joy. Any ideas would be great (themegen.py is attached) --

Re: code runs in django shell but not apache

2008-05-19 Thread Ian Lawrence
he web for the words apache/permissions and problems and i found out that i needed to set some executable bits like chmod -R o+r /home/ian/Web/themes find /home/ian/Web/media/themes -type d | xargs chmod o+x > > Also, your themegen.py contains a bunch of catch-all exception > clauses. Th

Re: Development environment

2008-06-26 Thread Ian Lawrence
Hi, >> I'm currently learning django on Ubuntu, but my background is Windows, >> so I'm not a VIM kind of guy. What kind of IDE do you guys use or >> recommend? I use eric4 IDE on ubuntu with the Project Django plugin enabled (sudo apt-get install eric4) Ian

Re: Mobile version of a site

2008-06-27 Thread Ian Lawrence
e site up and running by creating just one or two mobile base templates. Finally in apache's vhost configuration, for the main site you do: SetEnv DJANGO_SETTINGS_MODULE main_site.settings and in the vhost for the mobile site, you do: Se

Re: Rails/Django comparison synopsis

2007-03-29 Thread Ian Holsman
ails developers out there, but on the flip side there are also more open reqs for rails guys as well. - 3rd party add on's. I think django's python background gives it a lead on this, and the framework is structured lends itself to reuse. regards Ian On 12/09/2006, at 9:41 AM,

Re: running into wall doing templates part of tutorial

2007-04-07 Thread Ian Clelland
further than the line above it? That would certainly cause a python syntax error. Regards, Ian Clelland <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: trailing slash added to passed form data

2007-04-13 Thread Ian Clelland
t least one space between the value and the "/" character. Something like this: would be valid XHTML. If you don't care at all about XML conformance, you could also just get rid of the "/" and have which is valid HTML, but not XHTML. Regards, Ian Clelland <[EMAIL P

Re: Need dedicated hosting for Django

2007-04-17 Thread Ian Lawrence
Hi, I use webfaction: www.webfaction.com and their level of service and technical ability is the best I have found. Their web panel makes hosting for 'web developers' very simple. Highly recommended. []'s Ian On 4/17/07, Nik Kantar <[EMAIL PROTECTED]> wrote: > > Hey gu

Re: \d and \w regular expressions?

2007-05-09 Thread Ian Lawrence
Ola, http://www.amk.ca/python/howto/regex/ is a pretty gentle intro []'s Ian On 5/9/07, gsmith <[EMAIL PROTECTED]> wrote: > > Is there any documentation of what these do? I'm assuming that this > is a Python regular expression? > > The reason I ask is becuase I

uploading to a separate directory

2007-09-17 Thread Ian Lawrence
return self.test_name class Admin: list_display = ('test_name',) but in the admin this gives me home/ian/Web/media/tests//fsfuzzer.py when i try to upload files. This is probably very simple to solve but i have looked through the docs and google

Re: uploading to a separate directory

2007-09-18 Thread Ian Lawrence
ola, am i glad that people like you exist!!...you explained things just fine and your code works like a charm regards Ian On 9/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > You can not do what you are trying to do, the way you are doing it ;-) > > The problem is th

forum to mailing list integration

2007-10-02 Thread Ian Lawrence
crucial thx Ian -- http://ianlawrence.info --~--~-~--~~~---~--~~ 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 g

Re: forum to mailing list integration

2007-10-03 Thread Ian Lawrence
Ola I should think this functionality would be a valuable addition to Django so thx for your pointers. abracos Ian On 10/2/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-10-02 at 13:22 -0400, Ian Lawrence wrote: > > Hi > > I have a requirement for al

Re: Setting up your django project outside the document root

2007-10-27 Thread Ian Lawrence
Ola basically you sym link it... I recently did exactly this and wrote up the procedure here: http://ianlawrence.info/random-stuff/set-up-django-apache-and-postgresql-on-ubuntu-feisty hope this helps Ian On 10/27/07, Adam D. <[EMAIL PROTECTED]> wrote: > > I am a newbie. > >

Re: Setting up your django project outside the document root

2007-11-21 Thread Ian Lawrence
.bashrc this opens .bashrc and at the end of the file add this line: export PYTHONPATH=".:$HOME/Web/django_projects" HTH Ian On Oct 27, 2007 3:20 PM, Adam D. <[EMAIL PROTECTED]> wrote: > I see where you are doing the symlinking... > > [EMAIL PROTECTED]:~$ cd /var/www >

Re: _real_get_response: global name '_' is not defined

2007-12-04 Thread Ian Lawrence
ah just read the complete thread with the solution...sorry for the line noise regards Ian On Dec 4, 2007 9:42 AM, vern <[EMAIL PROTECTED]> wrote: > > Hi > i am being bitten by this too...i think it has something to do with > python 2.5 not supporting an underscore at the s

Re: DNS Change when moving site from PHP to Django

2006-09-20 Thread Ian Holsman
ment. > > One area that I am not sure about is how to set up the new site before > changing the DNS settings to point to the new hosting facility. For > instance, I won't be able to use "media.sitename.com" for my media > files in the new Django site until I have move

Preventing Multiple Submits

2006-09-28 Thread Ian Maurer
#x27;t store the pk prior to request 2 goes looking for it). I am beginning to think that I am overthinking this, but I still want to see if anyone else has thought this through... thanks, Ian --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: How about a Django apps public repository?

2006-10-01 Thread Ian Holsman
this thread again was because I have some domain names I'd like to > donate which might be useful to the community. I've been sidetracked on other (non-django) issues.. hence why i've been silent on the list when I can get my head out of the water for a period

Re: settings

2006-10-14 Thread Ian Holsman
hi Devel-Fashion content. I would suggest you start a 2nd apache instance on your machine, and let it run mod-python. you can then have the first apache reverse proxy the request to the mod-python apache. regards Ian. On 15/10/2006, at 8:08 AM, devel - Fashion Content wrote: > > B

Re: advice needed - how to manage 100+ django sites in a scaleable, manageable setup

2006-10-17 Thread Ian Holsman
Hi Tone. I have about 10 sites running the same/similar codebases on 3 different machines. send me some more info offline (or skype me on iholsman) and we can chat about it. regards Ian. On 18/10/2006, at 9:07 AM, tonemcd wrote: > > Hi all, > We're about to put our fir

Re: Django Hosting

2006-10-19 Thread Ian Holsman
I've been using webfaction for a couple of months, and haven't had any issues. their machines stay up, service is prompt and helpful, and the machines themselves appear lightly loaded too. what else can u ask for? --I On 20/10/2006, at 6:41 AM, ian wrote: > > yes, after re

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread Ian Holsman
Hi Nick. can you tell me how this is different that the stuff Chris Long worked on in his branch? It seems very similar. regards Ian. On 20/10/2006, at 6:24 AM, [EMAIL PROTECTED] wrote: > > Note: I have tried to post this two other time, but the thread wasn't > added to

Re: (Third Attempt To Post)Complex Application Security Model

2006-10-19 Thread Ian Holsman
On 20/10/2006, at 9:01 AM, [EMAIL PROTECTED] wrote: > > Hi Ian, > This is very similar to what Chris has done. The issue is that his > code hasn't been merged with Trunk, which puts me in an awkward > position in terms of adopting it for something that is outside t

Re: Django Hosting

2006-10-20 Thread Ian Holsman
NZ it just seems like a very cheap setup with not much thought.. but not anonymous by any means. > > > > > > > -- Ian Holsman [EMAIL PROTECTED] http://zyons.com/ build a Community with Django --~--~-~--~~~---~--~~ You received this message

Re: Tagging things

2006-05-17 Thread Ian Holsman
On 18/05/2006, at 5:56 AM, [EMAIL PROTECTED] wrote: > > Hi list, > > I have a search functionality on my page, which ideally allows people > to write a list of tags, and retrieve the entries that has those > associated. Maybe I'm overlooking the obvious here--I hope I am--but > this has become i

Re: Problem with Django Captcha

2006-05-18 Thread Ian Holsman
Hi. I wrote that app, and it does work (for me at least) some of the main problems I have had in the past with it is the lack of dependant libraries. you need pycaptcha and Imaging and pycrypto (if you want to use the register app in that SVN) If you want, feel free to ping me on irc (my nic

Re: Best way to run dev and production site concurrently on same server?

2006-05-20 Thread Ian Holsman
, and allow you to share common things like user-id's across both. regards Ian On 21/05/2006, at 2:30 AM, Luke Plant wrote: > > On Thursday 18 May 2006 23:20, Rob Hudson wrote: > >> Based on my virtual hosts, can I have the production site list: >> SetEnv DJANGO_SETTIN

Re: Best way to run dev and production site concurrently on same server?

2006-05-20 Thread Ian Holsman
CTED]) Received: from [127.0.0.1] (localhost [127.0.0.1]) by circe.holsman.net (Postfix) with ESMTP id C20B01C5D8C for ; Sun, 21 May 2006 08:50:04 +1000 (EST) Mime-Version: 1.0 Content-Type: text/plain In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Messa

Re: Problem with Django Captcha

2006-05-20 Thread Ian Holsman
just as a followup to this. Scott was using the 'old pre-MR merge' version of this code, when he updated to the up2date version it worked for him regards Ian On 19/05/2006, at 10:15 PM, Scott Anderson wrote: > > Thanks for the reply, Ian. > > I have those libraries in

Re: Apache Localhost Django Admin Look & Feel

2006-05-21 Thread Ian Holsman
try adding alias /media/ c:\django\contrib\admin\media\ in your apache config and see if that helps. On 22/05/2006, at 12:20 PM, keukaman wrote: > > Thank you. I'm a rookie at Django, Python, & Apache. I'm running this > on my XP laptop just to learn this. I have a couple of follow up > questi

Re: Django on Intel mac?

2006-05-22 Thread Ian Holsman
I'm running it fine. I used the following: http://www.python.org/ftp/python/2.4.3/ Universal-MacPython-2.4.3.dmg On 22/05/2006, at 6:14 PM, Oliver Kiessler wrote: > > hi there, > I have been playing around with Django this weekend but I couldn't get > it installed on my Intel Mac running OSX (

Re: Django on Intel mac?

2006-05-22 Thread Ian Holsman
I'm using mysql. if you paste the actual compiler error (either on list or privately) I'll try to help. regards Ian On 22/05/2006, at 8:06 PM, Oliver Kiessler wrote: > > thanks for the hint. I have Django with MacPython-2.4.3 running now. > what database adapter are

Re: I need instructions in best way to use django under IIS shared hosting (Python is installed)

2006-05-23 Thread Ian Holsman
On 24/05/2006, at 8:08 AM, [EMAIL PROTECTED] wrote: > re. > > So, what are the alternatives? (excluding getting a linux box) you can run apache2.2 on windows quite well. if IIS has a proxy type solution you could just run apache2.2 on a separate port and have it handle the django side of thing

Re: I need instructions in best way to use django under IIS shared hosting (Python is installed)

2006-05-23 Thread Ian Holsman
your not understanding reverse proxying. the ':3000' is not visible to the outside. IIS would need to forward the request to the port and then push the response back to you something like this http://www.saltypickle.com/Home/16 is what I am talking about On 24/05/2006, at 8:38 AM, [EMAIL PR

Re: Post data for multi step form

2006-05-24 Thread Ian Holsman
On 25/05/2006, at 3:11 AM, Bill de hÓra wrote: > > tomass wrote: >> > > I actually like that solution (among other things it scales on a > cluster > without hammering a central db or having to distribute sessions). > But if > you want you could store data on the server and pass a form 'sessi

Re: Slicing [-1] on objects.all()

2006-05-25 Thread Ian Maurer
records just to access one row. For more information about the amazing Django QuerySets, check out this link: http://www.djangoproject.com/documentation/db_api/ This section discusses slicing specifically: http://www.djangoproject.com/documentation/db_api/#limiting-querysets Hope that helps, ian

Re: I need instructions in best way to use django under IIS shared hosting (Python is installed)

2006-05-25 Thread Ian Holsman
On 26/05/2006, at 7:15 AM, Jeremy Dunck wrote: Note that if you are stuck on Windows, Apache + mod_python + MySQL + Django works very well. Doesn't pre-forking apache on windows scale badly due to window's high process startup cost?  I guess it'd depend how often you recycle your httpd processes..

Re: Tagging app

2006-05-25 Thread Ian Holsman
just as an aside, I've also written a similar tagging app, which covers about 70% of the same functionality as Luke's personally I'd love a 'standard' tagging app in contrib which combines the best of both worlds, as it seems like this functionality is what most users: a) want b) struggle wit

Re: Tagging app

2006-05-27 Thread Ian Holsman
Hi Luke. what license is this code under? On 27/05/2006, at 12:03 PM, Luke Plant wrote: > > On Friday 26 May 2006 22:37, Jacob Kaplan-Moss wrote: > >> Looking forward to seeing your code, > > OK, you can now get it here: > > http://files.lukeplant.fastmail.fm/public/python/ > lp_tagging_app_0.

Re: Encrypted Admin?

2006-05-27 Thread Ian Holsman
I would also set up the apache instance to limit access to the admin pages 's to certain IP ranges. (say of your ISP) On 28/05/2006, at 1:13 PM, James Bennett wrote: > > On 5/27/06, Jay Parlar <[EMAIL PROTECTED]> wrote: >> I'm just wondering what most people do about encrypting their Admin, >>

Re: Apache, mod_python and Windows - problems inside

2006-05-30 Thread Ian Holsman
I'm guessing it can't find one of the DLL's it requires to load. OR you haven't got the loadmodule line correct. On 31/05/2006, at 6:52 AM, [EMAIL PROTECTED] wrote: > > I've read the documentation on the django site, I've searched google > and I've tried the one solution that I managed to find,

Re: Wiki or Blogs done with django

2006-05-30 Thread Ian Holsman
would it make sense for you 4-5 blog writers to join up together and write up a common blog app? it seems like such a waste of resources for all of you. On 31/05/2006, at 6:40 AM, wam wrote: > > I've recently been updating my site to be entirely django powered. As > others have done, I applied

Re: Advice on meta applications

2006-05-30 Thread Ian Holsman
are you planning on open sourcing this? if so I'd be glad to help as I have a similar app for a client. On 31/05/2006, at 6:53 AM, Scott Finnie wrote: > > Looking for some advice on how to handle my little problem, all help > gratefully appreciated. > > Apologies it's quite long. > > Story thus:

Re: Apache, mod_python and Windows - problems inside

2006-05-30 Thread Ian Holsman
have you tried searching the mod-python archives? http://modpython.org/pipermail/mod_python/ it sounds like a mod-python specific issue, so you are probably get a better response over there. regards Ian On 31/05/2006, at 8:59 AM, [EMAIL PROTECTED] wrote: > > Well the solution I was a

Re: Wiki or Blogs done with django

2006-05-31 Thread Ian Holsman
e a blogging app more as a opportunity to lure more developers into the django community, than a learning exercise for a developer (which of course is also a great reason to build one in itself) regards Ian > > Bryan > > 1. http://www2.jeffcroft.com/2006/may/02/django-non-prog

Re: Ajax support, there is no need for reinventing the wheel

2006-06-03 Thread Ian Holsman
p/libraries into one project. (the same reason i'd like to see a tagging app in the contrib section) note: there is nothing forcing people to use that tookit, it will just make it easier for a newbie coming into django with no specific preference to get started and get his project runnin

Django Article on Developerworks

2006-06-06 Thread Ian Maurer
utors of this great software... I hope this article gains the project some additional exposure. regards, Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Django Article on Developerworks

2006-06-06 Thread Ian Maurer
Thanks guys for the feedback. Hopefully the changes will get incorporated tomorrow. Also, I like the art IBM put together for the front page of the linux section... http://www-128.ibm.com/developerworks/linux/ I hope it meets with the approval of the true fans of both Django's. regards

Re: Django on Intel mac?

2006-06-08 Thread Ian Holsman
I am using the universal distro python and it works well. (with mysql 5.1.9) On 08/06/2006, at 2:19 PM, Greg Harman wrote: > > > Corey Oordt wrote: >> I have MacBook, and although it was a challenge to get everything up >> and running, I ended up using darwinports to install apache 2, mysql >>

Re: Tips for integrate pyLucene in django?

2006-06-08 Thread Ian Holsman
another option you might want to look at is using SolR - http:// incubator.apache.org/projects/solr.html , which is a search server which uses lucene. you could then use a regular HTTP client to communicate with it. On 09/06/2006, at 9:36 AM, mamcxyz wrote: > > I think that complicate a littl

Re: Django Article on Developerworks

2006-06-08 Thread Ian Maurer
#x27;t work too well since there isn't a unit test to run when you are done :( -Ian On 6/8/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > On 6/6/06, Ian Maurer <[EMAIL PROTECTED]> wrote: > > http://www-128.ibm.com/developerworks/linux/library/l-django/ > > > >

Re: Tips for integrate pyLucene in django?

2006-06-09 Thread Ian Holsman
not with python directly (but I plan to) but I've seen it used in companies i work with and it works pretty well. On 09/06/2006, at 8:53 PM, Gábor Farkas wrote: > > Ian Holsman wrote: >> another option you might want to look at is using SolR - http:// >> incubator.apache

Re: Development web server not serving css and admin files?

2006-06-09 Thread Ian Holsman
to help with this kind of thing I have added the following to the end of main urls.py (r'^(?P.*)$', 'django.views.static.serve', {'document_root': '/magik/zilbo/htdocs/' } ), which is telling django if you don't match something, just try and serve a file. in my apache config I force

Re: Running two sites off the same Django installation

2006-06-12 Thread Ian Holsman
Hi Daniel. I'm doing this right now on http://zyons.com and http://economy-chat.com the trick is to use the directive 'pythoninterpreter XYZ' in each virtual host regards ian On 13/06/2006, at 7:49 AM, [EMAIL PROTECTED] wrote: > > Hi. > > I'm planning to run two

Re: Composite or compound primary key support

2006-06-13 Thread Ian Holsman
Hi Sanjay. unfortunately Django doesn't support composite primary keys. what I do in these case is put a auto-incremented key on orderItems and make a unique index on orderID, item#, and that seems to work ok (for me) regards Ian On 13/06/2006, at 8:00 PM, Sanjay wrote: >

Re: unable to do an svn co

2006-06-13 Thread Ian Holsman
hi lawgon. what version of SVN are you using? (I can do a update on my box) someone else was reporting the same error a couple of days ago on irc. On 14/06/2006, at 12:37 PM, lawgon wrote: > > hi, > on a new ubuntu machine i tried to do an svn co and am getting the > following error: > > svn:

<    1   2   3   4   5   6   7   >