Re: apache authentication using Django on windows

2008-11-05 Thread Steven Armstrong
Matt wrote on 11/05/08 16:26: > Hi, > > I have Django running on Apache 2.2 on windows. I am attempting to > use django authentification to secure an apache folder using this > configuration: > > > > AuthType Basic > AuthName "mysite.com" > AuthUserFile /dev/null >

Re: ldapauth and TLS

2008-10-16 Thread Steven Armstrong
Daniele Procida wrote on 10/16/08 20:43: > On Thu, Oct 16, 2008, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > >> LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True' >> should be >> LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} > > Sdly, that immediately crashes the server: > > Traceback (most recent call

Re: Highlight current active page

2008-09-30 Thread Steven Armstrong
Alex Rades wrote on 09/30/08 09:03: > Hi, > what kind of pattern do you use to add a class attribute to the > current page being viewed? > I mean the usual: > > > Home > Products > FAQ > contact us > > > I have this snipped of html defined in the base template and all pages > inherit from it.

Re: memcache not used?

2008-07-01 Thread Steven Armstrong
Oscar Carlsson wrote on 07/01/08 23:32: > ...you were very correct - I didn't have CacheMiddleware loaded, and when I > loaded it... > Everything worked. > > Thanks for all your help! :-) > > Oscar > (I feel a bit stupid, tho) Hacking for to long without a break, ey? Guess we've all been

Re: memcache not used?

2008-07-01 Thread Steven Armstrong
Oscar Carlsson wrote on 07/01/08 19:02: > Heh, ops! > > That was a typo, but even after fixing it, nothing changed :( > (still no change in memory usage, that is) > Looking at your dpaste entry again it seems you haven't configured the cache middleware. > Here is the ZeroDivisionError, btw:

Re: memcache not used?

2008-07-01 Thread Steven Armstrong
Oscar Carlsson wrote on 07/01/08 21:48: > I've checked the following logs, but nothing turned up: > /var/log/nginx* > /var/log/httpd* (apache) > > Previously, when something went wrong with the app, all error messages > appeared in /var/log/httpd-error.log, but this time - nothing. > > This is

Re: memcache not used?

2008-07-01 Thread Steven Armstrong
Oscar Carlsson wrote on 07/01/08 19:02: > Heh, ops! > > That was a typo, but even after fixing it, nothing changed :( > (still no change in memory usage, that is) > > Here is the ZeroDivisionError, btw: > http://dpaste.com/60185/ > > Oscar > The python-memcached client fails silently if it

Re: how to avoid uploading .py source files to shared hosting server

2008-05-16 Thread Steven Armstrong
James Bennett wrote on 05/16/08 20:11: > On Fri, May 16, 2008 at 11:52 AM, ydjango <[EMAIL PROTECTED]> wrote: >> I do not want to make it easy for some one who breaks in , either a >> outsider or may be an rougue hosting provider employee or contractor, >> to easily get access to all the

Re: Django and Linux distros

2008-05-16 Thread Steven Armstrong
JonSidnell wrote on 05/16/08 12:24: > Hi everyone > > I'm suddenly struck by the notion that I would like to be dev'ing > Django on Linux of some flavour rather than Windows. > > It's been a wee while since I stuck my toes in the Linux waters, so I > was wondering if anyone here has any

Re: Need some slightly advanced routing help

2008-05-04 Thread Steven Armstrong
Chris Hartjes wrote on 05/05/08 02:53: > I've been trying to do something that I *think* should be simple, > but apparently is not. Or, the more likely answer is that I am missing > something pretty obvious. I spent some time googling around for the answer > but didn't find what I was looking

Re: FTP upload of files threw django

2008-04-24 Thread Steven Armstrong
[EMAIL PROTECTED] wrote on 04/23/08 13:40: > Hello All, > > I've been working on a quality control portal that uses some features > of django. The application is now completely running but the upload of > large data files is quit slow. I've been looking around how to speed > things up and the

Re: django runserver freeze after 10-15 min

2008-02-15 Thread Steven Armstrong
diadya_vova wrote on 02/15/08 11:55: > Thank you for quick response! > > Dev. server not crashes. It's stop to respond on browsers requests. > Yeah, Apache is better choice for this. > But I need this application to be portable. Without instalation. > Because this I use "Instant Django" and

Re: The best practice for a registration and then getting user to fill up extra information

2008-02-10 Thread Steven Armstrong
Ramdas S wrote on 02/09/08 16:37: > Hi, > > I am using Django-registration. It works like a charm as far as registering > new users and validating them from potential bots. However, what is the best > practice as far as getting users to feed in more information. > > Currently in apps I have

Re: Template tag arguments

2008-02-04 Thread Steven Armstrong
Aaron Fay wrote on 02/04/08 21:21: > Hi list, > > I have a custom template tag that is supposed to take an argument from > the template kinda like this: {% profile_user_id object_id %}, problem > is 'object_id' is literally showing up as 'object_id' and not 5 or > whatever it's supposed to

Re: form for display, not edit

2008-02-01 Thread Steven Armstrong
Carl Karsten wrote on 02/01/08 01:34: > newforms is great for creating forms. I need something similar to generate a > display form from a model. > > I looked at subclassing form, but what I would need to override is in the > widgets. which is probably why my hope isn't a good one. but for

Re: *Idea-Share* How to secure auth

2008-02-01 Thread Steven Armstrong
Ravi Kumar wrote on 01/31/08 12:07: > On Jan 31, 2008 2:49 PM, Steven Armstrong <[EMAIL PROTECTED]> wrote: > >> Maybe something like this in your apache config? >> >> RedirectMatch permanent /(login|securepage) https://www.example.com/$1/ >> >> >

Re: *Idea-Share* How to secure auth

2008-01-31 Thread Steven Armstrong
Ravi Kumar wrote on 01/31/08 06:45: > Hi, > I have developed a Django project with 3 apps. Now, I have to implement > authentication for 2 apps, while one app will be public without any > authentication. > But I don't want to run two virtual servers with HTTP and HTTPS differently. > The

Re: django for non-web apps

2008-01-21 Thread Steven Armstrong
dlc wrote on 01/22/08 00:40: > How does authentication work? > > I want to build apps with both web and CLI interfaces, with nearly > 100% overlap in functionality between the two interfaces. I'm a CLI > snob but I also need GUI to "sell" my projects to the rest of the > team. We use

Re: considering django for The Freesound Project, some (de)constructive critisism

2008-01-21 Thread Steven Armstrong
James Bennett wrote on 01/21/08 18:26: > On Jan 21, 2008 10:22 AM, Bram - Smartelectronix > <[EMAIL PROTECTED]> wrote: [...] > >> 3. finegrained permissions. "I only want my friends to be able to edit >> my tags." Again people seem to be working on this, but nothing seems to >> be making it into

Re: django for non-web apps

2008-01-21 Thread Steven Armstrong
Derek Anderson wrote on 01/21/08 09:12: > hey all, > > i'm prob. not the first to do this, but i don't know of anyone else who > has so i thought i'd mention it. > > i've used django's database and ORM layers as the backend to a new pygtk > app. (all over a sqlite db) it has worked wonders

Re: django for non-web apps

2008-01-21 Thread Steven Armstrong
Jeff Anderson wrote on 01/21/08 09:30: > Derek Anderson wrote: >> hey all, >> >> i'm prob. not the first to do this, but i don't know of anyone else >> who has so i thought i'd mention it. >> >> i've used django's database and ORM layers as the backend to a new >> pygtk app. (all over a sqlite

Re: Dynamic OR queries

2007-08-25 Thread Steven Armstrong
Chris Hoeppner wrote on 08/25/07 18:40: > Hi there! > > I was just wondering how to dynamically "or" together an indetermined > quantity of Q objects. They're constructed from a string like q=a+b+c, > which would get stiched together as "(Q(field=a) | Q(field=b) | > Q(field=c))". Any clue on how

Re: Open Linux Router

2007-07-27 Thread Steven Armstrong
westymatt wrote on 07/27/07 06:41: > Yeah its the webserver for olr not the public site. The django server > seems like a good start, just add ssl and logging ect, and lots of > security enhancements Maybe the standalone WSGI server of CherryPie already does what you need?

Re: django authorization of apache

2007-06-28 Thread Steven Armstrong
Robin Becker wrote on 06/28/07 19:44: > Steven Armstrong wrote: >> Robin Becker wrote on 06/28/07 16:13: >>> I see from this documentation >>> >>> http://www.djangoproject.com/documentation/apache_auth/#configuring-apache >>> >>> that it is c

Re: django authorization of apache

2007-06-28 Thread Steven Armstrong
Robin Becker wrote on 06/28/07 16:13: > I see from this documentation > > http://www.djangoproject.com/documentation/apache_auth/#configuring-apache > > that it is conceptually possible to configure apache authorization using > django. > > However, we have recently decided to de-couple django

Re: ImportError: No module named mysite.settings

2007-05-14 Thread Steven Armstrong
Mark Phillips wrote on 05/14/07 11:07: > Decided to try a clean slate. Set up Django on SME Server 7.1, which > is based on Centos 4. > Compiled and installed mod_python > Amended httpd.conf as follows: > > LoadModule python_module modules/mod_python.so > > and later on in the file... > >

Re: Creating extensible views ?

2007-05-07 Thread Steven Armstrong
kahless wrote on 05/07/07 23:02: > Hi, > I've found documentation on how to make applications to work together > smoothly .. but is there also some documentation on how i could make > an application (or views of an application) extensible.. > > For example like in eclipse having "extension

Re: Authentication of static files without mod_python?

2007-05-07 Thread Steven Armstrong
AndyB wrote on 05/07/07 18:17: > I've read the docs on linking Apache authentication with Django's > (http://www.djangoproject.com/documentation/apache_auth/) and also > found a snippet on Django Snippets (http://www.djangosnippets.org/ > snippets/62/). > > The first method definitely requires

Re: how to save a dictionary in database

2007-04-07 Thread Steven Armstrong
Paul Rauch wrote on 04/07/07 12:28: > Hello, > >> test = bla(rights={'bla':'blupp'}) >> test.save() >> Traceback (most recent call last): >> File "", line 1, in >> File "/usr/lib64/python2.5/site-packages/django/db/models/base.py", >> line 242, in save >>','.join(placeholders)),

Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread Steven Armstrong
Graham Dumpleton wrote on 03/30/07 12:27: > On Mar 30, 6:31 pm, Steven Armstrong <[EMAIL PROTECTED]> wrote: >> My understanding is that every apache child pulls in all modules >> (mod_python, mod_perl, mod_php, mod_your_favorite_mod_here) which all >> consume memor

Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread Steven Armstrong
[EMAIL PROTECTED] wrote on 03/29/07 20:15: > I'm running a production Django application on two loadbalanced > webservers and a single, dedicated Postgres server handling around > 500k requests/day. I'm using memcached, and my database server > performance has been fantastic. > > Lately, I've

Re: Nested Sets for trees - any models been made before?

2007-03-27 Thread Steven Armstrong
Nathan Harmston wrote on 03/27/07 14:10: > HI, > > Currently I am trying to store a "tree" in a database and want to use Nested > Sets in order to do this. I was wondering if this exists within Django atm > or if there are plans to add it in the future or has someone developed it on > the side?

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread Steven Armstrong
Aidas Bendoraitis wrote: > I'm not sure about IE7, but all the previous versions of IE certainly > didn't support hover for other html tags than . So it is > not Django issue at all. [...] > If you need some browser specific special > effects, use javascript for IE. > [...] This might help

Re: Generating object documentation from its instance

2007-02-28 Thread Steven Armstrong
[EMAIL PROTECTED] wrote: > Hi, > > (This is not directly related to Django, but would help me in that domain) > > I was wondering if there exists some kind of automated documentation generator > (html, pdf, text, whatever readable format) for instanciated objects. > > Basic use for me would be

Re: django & eclipse step-by-step (python 2.5) ?

2007-01-31 Thread Steven Armstrong
Bram - Smartelectronix wrote: > hey everyone, > > > ( I hope you saw the question mark at the end of the subject ;-) ) > > working in eclipse, it would be so wonderful to get auto completion and > all those other goodies working. Auto completion works just fine for > everything django (i.e.

Re: django embedded web server

2006-10-18 Thread Steven Armstrong
On 10/18/06 19:57, Steve M wrote: > I've been following this and related threads with some interest. I > think it would be nice to have a pure python (requiring no setup of, > e.g., Apache) webserver included with Django that was more capable than > the current Django development server. I

Re: print_r

2006-10-16 Thread Steven Armstrong
On 10/16/06 21:11, Rob Hudson wrote: > On Oct 16, 11:17 am, Steven Armstrong <[EMAIL PROTECTED]> wrote: >> A djangofied version of this [1] would be cool. >> >> [1]http://pythonpaste.org/screencasts/evalerror-screencast.html > > I agree. That would

Re: print_r

2006-10-16 Thread Steven Armstrong
On 10/16/06 17:43, Rob Hudson wrote: > [EMAIL PROTECTED] wrote: >> I quite often plug in a nonsense command e.g. "fudge" just to raise the >> debug page, maybe with a few > > I do the same. It would be awesome if there were a "debugger" app > (contrib app anyone?) that we could load in the

Re: print_r

2006-10-14 Thread Steven Armstrong
On 10/14/06 20:11, code enquest wrote: > Steven Armstrong schreef: >> On 10/14/06 19:46, code enquest wrote: >> >>> in PhP i used to print_r(array) to see what if got in my array that I >>> want to bring on the screen. Smarty even had a popup screen to

Re: Auto-archive lists

2006-10-05 Thread Steven Armstrong
On 10/05/06 17:34, seemant wrote: > Hi All, > > So, on the right column of http://www.djangoproject.com/weblog/ that > page, we see an index of archived posts, going back 12 months or so. > > And so I thought I'd check out the template: >

Re: Localizing dynamic content through the admin interface

2006-10-03 Thread Steven Armstrong
On 10/03/06 19:14, Dirk Eschler wrote: > Hello, > > please let me first point out that i'm new to Django. I have experience with > gettext, but only in non-webapp environments. > > I've read through the i18n doc and am quite impressed about the gettext > support. I just wonder how you usually

Re: How about a Django apps public repository?

2006-09-30 Thread Steven Armstrong
On 09/30/06 17:35, Lucas Vogelsang wrote: > Hi, > Is this project/thread dead or is someone working on it? > > I'd like to use this repository, however I am fully tied up with my > other projects and can't help pushing it forward. > > regards, > lucas > looks like all the others have the

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Steven Armstrong
On 09/27/06 23:49, Tom Smith wrote: > Thanks, it all seems to work except for when I store a list of > objects in the database and try to get it out I get a string (that > looks like a list of objects) > > >>> products = Product.objects.filter(title__contains='Dog')[:10] > >>> sub =

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Steven Armstrong
On 09/27/06 16:45, Tom Smith wrote: > Hello > > currently I am storing a list of python instances in the > request.session but would like to make a persistent copy of this list > and store it permanently... > > I don't want to just make the timeout of the session a long time in > the

Re: Importing models from each other.

2006-09-27 Thread Steven Armstrong
On 09/27/06 16:03, Gacha wrote: > I have two model files, the first is: > --- > from proj.base.models import Choice > > class User(meta.Model): > ... > param = model.ForeignKey(Choice) > >

Re: Trackback spam in Blogs

2006-09-11 Thread Steven Armstrong
On 09/09/06 09:45, [EMAIL PROTECTED] wrote: > Hi. > > My two sites, trogger.de and trogger.info , were recently subjected to > a large trackback-spam attack. We're talking in the area of ten > thousand trackbacks within two or three days. Plus a couple hundred > spam somments in the same period.

Re: MySQL Django Wildcard bug...

2006-09-08 Thread Steven Armstrong
On 09/08/06 22:56, tom smith wrote: > So... > > Because there aren't quite enough examples that show how to build > pythonic model queries... I'm using the pump-raw-sql at django... > > The only problem is that when my sql contains > > wordsql = wordsql + " AND (title not like ' %" + word

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Steven Armstrong
On 09/08/06 16:33, Jay Parlar wrote: > On 9/8/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: >> I just tried the following in a test project; >> >> testproject/mytest/models.py: >> from django.db import models >> >> class Image(models.Model): >> name =

Re: A few questions about queryset's.

2006-08-31 Thread Steven Armstrong
On 08/31/06 17:22, Anders Aagaard wrote: > Hi > > I've been learning to love django lately, but I can't quite wrap my > head around more advanced querysets. I've listed my classes and their > sql tables on the bottom, as all problems are linked to those tables. > > First problem: > I have a

Re: group traffic

2006-08-30 Thread Steven Armstrong
On 08/30/06 07:10, Frank Stüss wrote: > Hi folks, > since this list is getting bigger day by day.. > Eam.. what about splitting this group up in say two or three lists? > > django.newbies (like me :-) > django.apps > django.views > > Looking for better names/categories. > > As all of you

Re: symlink mess

2006-08-26 Thread Steven Armstrong
On 08/26/06 21:47, george webzary wrote: > Hi > > > I know this is unrelated to Django. But I guess I mucked up my django sym > links, by linking it number of times. > > How do I remove the multiple level of sym links. This is a Linux newbie > question. But has me stumped. > > When I run

OT: got api

2006-08-19 Thread Steven Armstrong
Just found something I thought might also be useful for some of you folks :) http://gotapi.com/ No python api yet, but lot's of other stuff useful stuff for web developers. cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: javascript options

2006-08-15 Thread Steven Armstrong
> > guys i m trying to figure out which javascript toolkit to use > > i m now trying to figure out which to use between > The major contenders are: > Dojo + lot's of features + great for writing widgets - documentation sucks - large - complex > Mochikit + excellent docs + awesome API for

Re: EnvironmentError?

2006-08-14 Thread Steven Armstrong
On 08/14/06 18:55, Tom Davis wrote: > I am having a problem getting Django to work properly on my server. I > have Apache setup with mod_python using Python 2.4. I put in the > Location stuff in my Apache config, and when I go to the directory I > get this: >

Re: How to support of alternate date formats for DateField

2006-08-10 Thread Steven Armstrong
On 08/10/06 20:25, DavidA wrote: > Steven Armstrong wrote: >> I've had similar problems and solved them like this: >> >> myproject/validators.py >> %<-- >> from django.utils.translation import gettext_lazy as _ >> from dj

Re: Why 404?

2006-08-07 Thread Steven Armstrong
On 08/07/06 22:29, Jarek Zgoda wrote: > I am getting 404 with archive_day date-based generic view. I know that > some objects exist for specified day (they are present in archive_month > view), but I consequently get 404 if I specify a day. > > My urlconf has an entry: > ( >

Re: when is 1 != 1? (according to 'ifequal' in template)

2006-08-07 Thread Steven Armstrong
On 08/07/06 20:15, hotani wrote: > Code: > > {% if request.session.pfilter %} > {% ifequal request.session.pfilter project.id %} > {{ project }} > > both {{ project.id }} and {{ request.session.pfilter }} return "1" > Maybe one value is an int and the other is a string?

Re: accessing was_published_today in a template

2006-08-03 Thread Steven Armstrong
On 08/03/06 21:01, skullvulture wrote: > In the tutorial you create a custom method was_published_today. How > can you access it in the template? I'm using generic views. Do I have > to write my own more complicated view to access it? Thanks. > Something like this should work: {% if

Re: django installation on mac

2006-08-03 Thread Steven Armstrong
On 08/03/06 20:50, [EMAIL PROTECTED] wrote: > Hello Django Users, > > I'm trying to install Django on a mac os x (10.3) but i'm experiencing > some problems i can't solve. > When i run import django in mu interpreter it's working fine but when i > start the server i get the following error

Re: drag & drop for admin-interface

2006-08-03 Thread Steven Armstrong
On 08/03/06 11:23, patrickk wrote: [...] > > Good idea. However, with using the change-list for reordering you > have to load all the dojo-stuff - even if you don´t want to reorder > anything. > Since loading Dojo is quite slow (at least in my experience) I´m not > sure about this. > If

Re: Template widget size

2006-07-29 Thread Steven Armstrong
On 07/28/06 19:20, Nagy Károly wrote: > Steven Armstrong írta: > >>I've extended some of django's built in model and form fields to accept >>an additional kwarg named 'html_attributes'. >> >>It works like this: >> >>class Whatever(models.Model): >&g

Re: Template widget size

2006-07-28 Thread Steven Armstrong
On 07/28/06 19:46, Malcolm Tredinnick wrote: > On Fri, 2006-07-28 at 18:19 +0200, Steven Armstrong wrote: >> On 07/28/06 02:02, Malcolm Tredinnick wrote: >> > On Thu, 2006-07-27 at 16:44 -0700, Malcolm Tredinnick wrote: >> >> On Thu, 2006-07-27 at 17:30 -0600, Jay Kl

Re: Template widget size

2006-07-28 Thread Steven Armstrong
On 07/28/06 02:02, Malcolm Tredinnick wrote: > On Thu, 2006-07-27 at 16:44 -0700, Malcolm Tredinnick wrote: >> On Thu, 2006-07-27 at 17:30 -0600, Jay Klehr wrote: >> > Nagy Károly wrote: >> > > And Jay, (afaik) CSS controls visual size of field, not the number of >> > > characters you can type in

Re: Referring to media files

2006-07-13 Thread Steven Armstrong
> > One more thing, if you don't mind. The documentation, and your > context_processors.py show in the myapp directory. Can that file be in > "mysite", rather than "myapp" so I don't have to repeat it for > application I make? > Yep that'll work. You can put the context_processors.py file

Re: Referring to media files

2006-07-11 Thread Steven Armstrong
On 07/11/06 04:22, keukaman wrote: > Thanks for the help. Will this work if my site is primarly flat pages? > This will work with any django template. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Including a php script in a template

2006-07-11 Thread Steven Armstrong
On 07/11/06 10:59, [EMAIL PROTECTED] wrote: > Hello all! > > Is it somehow possible to include an exisiting php-script which prints > a table and some textual data (after some large calculations) in a > django template? > I rather don't want to port the existing php-script as it makes it job >

Re: Referring to media files

2006-07-08 Thread Steven Armstrong
On 07/08/06 17:13, keukaman wrote: > I'm getting tantalizingly close to being able to put a simple Django > site online. Any help on this ticket will get me a long way toward > getting there: > > I have my media directories located at: > > /home/username/media >

Re: Code exectution and persistent object question

2006-07-04 Thread Steven Armstrong
On 07/05/06 03:34, Iain Duncan wrote: > I stumbled on some behaviour that I'm sure is explained somewhere but > not in the tutorials so I haven't found it. > > I made a global log object for debugging. I noticed instantiating > objects in the view global name space executes before anything else

if >, if >= in templates?

2006-06-25 Thread Steven Armstrong
Hi I've got the following in my template: {% if reference_set.count %} {% for reference in reference_set.all|slice:":5" %} {{ reference.name }} {% endfor %} {% endif %} If there are more then 5 references I'ld like to show a 'more' link that leads to a list of all references. Something

Re: Lost with forms

2006-06-22 Thread Steven Armstrong
On 06/22/06 18:08, mamcxyz wrote: > I do this: > > (I copy this class from the cookbox) > > class Manipulator(forms.Manipulator): > default = {} > done = False > > def getData(self, request): > return request.POST > > def getForm(self, data, errors): > return

Re: Using DB module(s) in another app (twisted)

2006-06-15 Thread Steven Armstrong
On 06/15/06 14:59, Jos Yule wrote: > I haven't plugged any of this into a twisted app yet, so i don't know. I'ld be very interested to here how it's going once you get there. > I suppose i could put the db stuff into one of the threading defereds > to avoid that kind of blocking... > That's

calendar for blog app?

2006-06-10 Thread Steven Armstrong
Hi all Is anybody aware of a template tag or something that renders a calendar for a blogs sidebar? One of those things that shows the month of the blog entry you're currently looking at and the days are links to entries that where made on other days? cheers Steven

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Steven Armstrong
On 06/06/06 17:11, Todd O'Bryan wrote: > On Jun 6, 2006, at 11:03 AM, Adrian Holovaty wrote: > >> >> On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: >>> Here's the problem: How do I get to those in a template? I know >>> there's only one UserInfo object per User object, and ideally I'd >>>

Re: Django Quick Start with Schema Evolution Support

2006-06-04 Thread Steven Armstrong
On 06/04/06 18:11, Ilias Lazaridis wrote: > Jay Parlar wrote: >> Ilias: >> >> I thought you would stop bothering Django people after it was revealed >> on Django-dev that you're a known Internet troll: > [...] > > This starts to become ridiculous. > What do you expect? To be honest I

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

2006-06-03 Thread Steven Armstrong
On 06/03/06 19:21, Vladimir Pouzanov wrote: > On 6/3/06, James Bennett <[EMAIL PROTECTED]> wrote: >> Dojo allows either synchronous or asynchronous calls to a server, >> depending on the parameters passed to dojo.io.bind(). If you're seeing >> something blocking until a server call completes,

Re: How to automatically generate a password input field

2006-05-27 Thread Steven Armstrong
On 05/27/06 13:23, Christian Schneider wrote: > Hi all, > > can I specify that a certain model field should be displayed as type="password" /> in the UI? > > I think I saw once how to do it but can't find it anymore. > > chris > Hi Chris The following works for me: class

Re: Django and twisted

2006-05-23 Thread Steven Armstrong
On 05/23/06 21:20, Christian Schneider wrote: > Hi all, > > has anyone any experiences as to using django from a twisted application? > I'm asking because I had some issues with MySQL as in crashing connections > and too many database handles open. As far as I can tell, which isn't very > far, my

Re: django site doesn't seem to display right under firefox

2006-05-23 Thread Steven Armstrong
On 05/23/06 10:03, Alexandre CONRAD wrote: > Hello, > > I am wondering if you all have the same problem as I am using Firefox > (Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.3) Gecko/20060426 > Firefox/1.5.0.3): > > On the home page: > > - the "django" logo doesn't display at all. >

Re: Install woes: error "python: can't open file 'django-admin.py' "

2006-05-05 Thread Steven Armstrong
On 05/05/06 20:23, jbrewer wrote: > Okay when I am looking at the sitepath I have all my python stuff > coming from here: > > /System/Library/Frameworks/Python.framework/... > > But when I used DarwinPorts of SQLite it installed Python 2.4 here: > > /opt/local/bin - and located here also is

Re: Apache and static files

2006-05-01 Thread Steven Armstrong
On 05/01/06 22:51, tgone wrote: > > Steven Armstrong wrote: >> On 05/01/06 22:36, tgone wrote: >> > Hello, >> > >> > I followed the tutorial on how to serve static files with >> > Apache+mod_python but I'm still having problems. I get a 404 when I

Re: Apache and static files

2006-05-01 Thread Steven Armstrong
On 05/01/06 22:36, tgone wrote: > Hello, > > I followed the tutorial on how to serve static files with > Apache+mod_python but I'm still having problems. I get a 404 when I try > to access an image at http://localhost/project/media/test.png. I know > for sure that mod_python is disabled for the

Re: mod_python, apache, django

2006-04-28 Thread Steven Armstrong
On 04/29/06 01:30, tgone wrote: > Hello, > > I'm getting the following error: > > --- > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File

Re: Different versions of Django - apache virtual hosts

2006-04-28 Thread Steven Armstrong
On 04/28/06 14:05, tomass wrote: > Hi Folks, > > Just wondering how I configure an apache virtual host to use a > different version of Django. I've installed the magic-removal branch > and have added the following to my virtual host config file, but I'm > still getting an error message which

Re: Forking a new process

2006-04-25 Thread Steven Armstrong
On 04/25/06 13:56, tomass wrote: > Hi Folks, > > I'm trying to fork a new process using os.fork(), and everything seems > to be working well, except that I need to then reference django models > from the forked process. This seems to mean I need to reimport all the > relevant modules into the

Re: Various problems porting to Magic Removal

2006-04-22 Thread Steven Armstrong
On 04/23/06 00:15, Richie Hindle wrote: > Hi, > > I'm porting my app from the trunk to Magic Removal. I've carried out all > the steps at http://code.djangoproject.com/wiki/RemovingTheMagic but I'm > having various problems - I imagine they're all linked to some mistake > I've made somewhere

Re: basic extension of users.User

2006-04-11 Thread Steven Armstrong
On 04/11/06 05:53, Norbert wrote: > Hello, > > I'm just starting out in really trying to get a Django app on its > feet, even though I've played with it on and off for a couple weeks. > > Here's where my first cryptic error begins. > I tried extend users.User in the most basic fashion I could

Django, Eclipse, Pydev, Ant (was: Ant and Eclipse (build.xml by Steven Armstrong))

2006-03-16 Thread Steven Armstrong
On 03/16/06 12:53, Todd O'Bryan wrote: > OK. I replaced 'cmd' with 'command' (which, I discovered was an > argument to ps, not its own command) and didn't get the error about > cmd not being found, but the task still died. The whole error message > is below. As you can see, it doesn't really

Re: Eclipse based Django IDE???

2006-03-16 Thread Steven Armstrong
> > Has anyone heard of something along the lines of a 'RadRails' for > Django? > > I google'd around and didn't see anything, other than PyDev. But I was > thinking that a similar product would be a pretty nice feather in > Django's hat. > > I'm a n00b with Python, but I'm trying it and Django

Re: CSS issues

2006-03-09 Thread Steven Armstrong
On 03/09/06 11:47, tomass wrote: > Hi Folks, > > I've copied the admin css to be used for my views, but I've added in > this custom section which is a modified version of the FILTER COLUMN > from changelist.css: > > /* FILTER COLUMN (CUSTOM VERSION) */ > > #changelist-filter-custom

Re: Django Admin

2006-03-01 Thread Steven Armstrong
On 03/01/06 17:26, timster wrote: > I've been using Django mostly just playing around and trying to get the > hang of things before I try anything serious. I'm using Apache and > FCGI, along with the magic-removal branch. > > Last night or the night before, I ran 'svn update' to get the latest >

using django models with twisted?

2006-02-15 Thread Steven Armstrong
Is anybody using django models in twisted (or other async) apps? Any ideas on how to make the two play together nicely? cheers Steven

Re: recommended javascript books/tutorials/howtos?

2006-02-14 Thread Steven Armstrong
On 02/14/06 11:07, Gábor Farkas wrote: hi, i'd like to increase/enhance my javascript knowledge, which right now is rather limited (zero?) :) so, are there are books/websites you can recommend? i'm primarily interested in the application of javascript to the webpages, so DOM

Re: Ellington CMS

2006-01-02 Thread Steven Armstrong
On 01/02/06 15:36, Jaanus wrote: Here and there in the discussions and code there are references to the Ellington CMS built on top of Django, and that Adrian and Simon and guys are selling. I've tried to search for more info, but haven't found any. Please point me to more info about the product

django development with eclipse and pydev

2005-12-27 Thread Steven Armstrong
Hi all I've written an ant file that wrapps the django-admin.py functionality and adds a few goodies. Basically it let's you run django-admin by executing ant targets. Not perfect, but works for me :) Thought that might be usefull for someone. cheers Steven

Re: admin-interface: some questions

2005-12-27 Thread Steven Armstrong
On 12/27/05 18:28, patrick k wrote: On 12/27/05, patrick k <[EMAIL PROTECTED]> wrote: - how do i change the numrows for a textarea-field? You can do this with CSS; create custom admin templates that include some custom CSS code. what i meant was changing the numrows for each textarea-field