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 > AuthBasicAu

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: 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: 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: 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: 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? http://www.cherrypy.o

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: 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: 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 a

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
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 LDAP/Kerbe

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 condition

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/ >> >> > O

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 w

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 be.

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 writt

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 SQLit

Re: datetime 8 hours off

2008-04-02 Thread Steven Armstrong
Simon Oberhammer wrote on 04/01/08 10:46: > hey group, > I have an inconsistant time problem, which goes away when I restart > apache, but then creeps up again after some time. When writing > comments in my custom app the time is 8hours behind (i'm CEST) *for > some users*. When I login with other

Re: FTP upload of files threw django

2008-04-23 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 onl

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 fo

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 recommen

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 informati

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 en

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 a

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 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 there

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: 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 htt

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? I

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 bee

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 memory.

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)), db_values)

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 mo

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 points

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: 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: 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 futu

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 = Subscr

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 same

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: 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: > http://code.djangoproject.com/browser/djangoproject.com/d

Re: print_r

2006-10-14 Thread Steven Armstrong
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 show this. > > How can I see in Django what I got in the view? So that working in the > template goes a tat faster? Wha

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 sh

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 templ

Re: Need an advice: simple Online Store project (long)

2006-10-16 Thread Steven Armstrong
On 10/16/06 22:24, Serg Kovrov wrote: > Hello. I'd like to try to build a simple (I believe) project with > Django - an Online Store. That is, browseble and manageable catalog of > arbitrary goods. > > > Here is the draft data models for my project. > > * Item. Representation of actual goods. B

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 be very

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 recentl

Re: Pickled Objects or Tuples?

2006-11-28 Thread Steven Armstrong
> > Hi! > > Voltron the Django newbie here! Django IS a breath of fresh air and > I´m happy to be programming again in Python after so many years. That > being said; > > 1. How should one go about marshalling objects for storage in Django? > 2. How should one go about storing tuples in Django? Wou

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. d

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 sql

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: 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: 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 PasswordField(mode

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, most

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 actually

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 >>> lik

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: url path in django template

2006-06-13 Thread Steven Armstrong
On 06/14/06 05:45, damacy wrote: > hi, there. > > is there any built-in function which retrieves the current url in a > django template? > > for instance, if my current url is > > http://www.lalala.com/hoho?index=0 > > and i'd like to get the exactly same url as above within a template > (incl

Re: Root URI in templates

2006-06-14 Thread Steven Armstrong
On 06/14/06 10:07, limodou wrote: >> > One method: >> > >> > set a "base" tag in template, so this tag will point the root uri of >> > this page, and other uris can be related with this uri. >> > >> > Two method: >> > >> > Define some template variables used for root uri, and using them in >> > ur

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

2006-06-15 Thread Steven Armstrong
On 06/15/06 04:01, Jos Yule wrote: > Ok, here is what i had to do to get it to work: > > In a 'test.py' file: > > -- > from django.conf import settings > import settings as mysettings > > settings.configure(mysettings) > > from django import db > >

Re: why django has no api reference?

2006-06-15 Thread Steven Armstrong
On 06/15/06 13:53, Roger Sun wrote: > Just like ruby's > http://api.rubyonrails.org/ > > currently, i don't know where can i refer to these api, > i hope the author can do this for us. ^_^ > > roger > There's an unofficial api reference under [1] [1] http://djangoapi.quamquam.org/trunk/ --~-

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 ex

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 fo

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 lik

Re: if >, if >= in templates?

2006-06-26 Thread Steven Armstrong
On 06/26/06 07:26, Ivan Sagalaev wrote: > Don Arbow wrote: >> Not sure if it works, but off the top of my head, what I would try is this: >> >> {% if reference_set.all|slice:"5:" %} > > Not exactly this. Here a DB (Postgres at least) will complain that it > can't set OFFSET without LIMIT. This

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 i

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: 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 > we

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 users"

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 whereve

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: 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-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(m

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 y

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 messag

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 object.

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: 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: > ( > r'^(?P\d{

Re: Why 404?

2006-08-08 Thread Steven Armstrong
On 08/08/06 13:45, Jarek Zgoda wrote: > Steven Armstrong wrote: > >> Don't know if this is related to your problem, but if you're using >> sqlite the patch at [1] may help. >> >> If this does solve your problem, and you have a moment, you could add >&

Re: Using Django in a Cron Job

2006-08-09 Thread Steven Armstrong
On 08/09/06 17:56, Joe wrote: > I would like to set up a python script that runs every night to send > out an email subscription. I would like to access a Django model that > has the user's email addresses, as well as use the Django sendmail > function. Can someone help me understand what import

Re: Multiple Websites using the same project and apps

2006-08-09 Thread Steven Armstrong
On 08/09/06 16:50, plungerman wrote: > greetings, > > what would be the best way to manage the settings files for multiple > websites that use the same django project? we have a django project > with 3 applications that we want to use for various clients. through > apache, we set up the virtual

Re: syncdb without shell access

2006-08-09 Thread Steven Armstrong
On 08/09/06 21:13, Robin Gruyters wrote: > Hi ya, > > My hosting provider doesn't give shell access, so I can't execute like > "syncdb", "startapp", "startproject", etc. > > Is there another way to do this? (e.g. by creating a runsync.py script?! (or > something?)) > > Regards, > > Robin > H

Re: How to support of alternate date formats for DateField

2006-08-09 Thread Steven Armstrong
On 08/09/06 22:15, DavidA wrote: > I'm sure I'm just misunderstanding how manipulators and validators > work, but I can't see the right way to do this: I want to support more > formats for a DateField then just '-MM-DD' (which is checked in > DateField by isValidANSIDate). > > It seems like I

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 _ >> fr

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: 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 creati

Re: Django, mod_python and 403 error

2006-08-16 Thread Steven Armstrong
On 08/16/06 23:30, Fabien Schwob wrote: > Nobody have an idea on how to solve this problem ? > > On 8/10/06, Fabien Schwob <[EMAIL PROTECTED]> wrote: >> Hello, >> >> The development of my Django site is on the way. And in order to try >> it online, I've decided to install it under Apache + mod_py

Re: Django, mod_python and 403 error

2006-08-17 Thread Steven Armstrong
On 08/17/06 18:38, Fabien Schwob wrote: >> It'd be a great help if you pasted the errors from Apache's error log. >> Also, what kind of 403 errors do you get -- could you include a link >> to a screenshot? > > In the error log I get : > [Thu Aug 17 18:31:01 2006] [error] [client 86.73.128.192] > (

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: 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 setup

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 answe

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 cla

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 = models.CharField(maxleng

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: 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: 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

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: 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

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 manipulation

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

  1   2   >