Re: Django's User authentication

2007-07-18 Thread Jason F. McBrayer
the use of your user object in your views and templates. -- +-----------+ | Jason F. McBrayer[EMAIL PROTECTED] | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one

Re: --+++Does anybody have instructions to make a photo app+++--

2007-07-06 Thread Jason F. McBrayer
t, but it is basically a minimalistic photogallery app that is intended to integrate into any django-based site. -- +-------+ | Jason F. McBrayer[EMAIL PROTECTED] | | If someone conquers a thousand times a thousand others i

Re: Redirecting within custom template tags

2007-07-06 Thread Jason F. McBrayer
in the template tags. It is probably best for you to just let the article page handle form submissions, so it can handle the errors as well. -- +-------+ | Jason F. McBrayer[EMAIL PROTECTED] | | If someone conquers a thousa

Re: syncdb without shell access

2006-08-16 Thread Jason F. McBrayer
yncdb: just modify your local settings.py to point to your database on your provider, and run syncdb there. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | | A flower falls, even though we love it; and a weed grows, | | even though we do not love it.-- Dogen| --~--~

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
as simple as possible and do more complex things on the application side. In this case, it's not too bad; I'll just have to document it adequately. Thanks again. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | |

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
IA_ROOT, but on the other hand, I'd like to be as webserver-agnostic as possible. -- +-----------+ | Jason F. McBrayer[EMAIL PROTECTED] | | A flower falls, even though we love it; and a weed grows, | | even thoug

FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
write my own field class for the purpose? Move the file someplace else in the model's save() method? Use the normal setup, but lock down that subdirectory of MEDIA_ROOT in the webserver's configuration? Something else? -- +------

Re: Model Inheritance

2006-05-06 Thread Jason F. McBrayer
ibly third-party) apps to use it instead of django auth. Let me know when and how I can help on the new-auth branch. -- ++ | Jason F. McBrayer [EMAIL PROTECTED] | | "If y

Re: Model Inheritance

2006-05-05 Thread Jason F. McBrayer
n the Floating Sargasso branch, or to take one of those desperate measures? -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus | --~--~-~-

Re: session auto-logout

2006-03-21 Thread Jason F. McBrayer
required and redirect them. Also, if they already had an old session, it will have the default long expiry time. You may wish to flush the core_sessions table and see if it's working for you afterwards. -- +--------+ | Jason F. McBraye

Re: Multi-page forms

2006-02-24 Thread Jason F. McBrayer
ced by the second page. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus | --~--~-~--~~-

Re: Multi-page forms

2006-02-23 Thread Jason F. McBrayer
ou probably want to do validation of a field on the page where the user actually entered it. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't g

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Jason F. McBrayer
that does what you want, rather than trying to use client-side code to generate stuff to be sent to an existing view. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy

Re: using the devel-webserver for production?

2006-02-21 Thread Jason F. McBrayer
gabor <[EMAIL PROTECTED]> writes: > i'll set up something "serious" then there. i think i'll go with the > lighttpd+fcgi approach. You can also build mod_fastcgi for Apache 1.3. -- +-----

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Jason F. McBrayer
en form that they legitimately want to submit. I know you know that you can't rely on client-side validation, but I just want to say, you _really_ can't rely on client-side validation. -- +--------+ | Jason F. McBrayer

Re: truncate html filter?

2006-02-09 Thread Jason F. McBrayer
thon interface to HTML Tidy: Beautiful Soup (http://www.crummy.com/software/BeautifulSoup/) might also be something to look at for this. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wi

Re: login via url

2006-02-08 Thread Jason F. McBrayer
p quite a few new ways to steal credentials (think about referrers, and about httpd logs). -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him mor

Re: memory usage

2006-02-08 Thread Jason F. McBrayer
es memory usage. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: Do I use @login_required to extend authentication?

2006-02-03 Thread Jason F. McBrayer
m here, but it would probably be more work for me to sanitize out the local-interest-only stuff from the general code than it would be for you to write your own version -- it's really just a dozen or so lines of code. -- +-------

Re: Do I use @login_required to extend authentication?

2006-02-02 Thread Jason F. McBrayer
, or periodically by a grim record reaper but I haven't found that necessary yet. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more

Re: Adding ManyToMany relationships

2005-12-08 Thread Jason F. McBrayer
little slow, at least partly because the whole list must be fetched and updated before set_FOOs() gets called. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don

Re: ANN: Django site on washingtonpost.com

2005-12-06 Thread Jason F. McBrayer
No in the entry afaict. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: E-Commerce / Credit Card Processing

2005-12-01 Thread Jason F. McBrayer
or taking some other approach? -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: redirecting subdomain requests

2005-10-16 Thread Jason F. McBrayer
edirect. But learning just enough about mod_rewrite to do the job would probably be less work. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: django in a production environment

2005-09-13 Thread Jason F. McBrayer
according to the documentation, which rules it out for me. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: django in a production environment

2005-09-12 Thread Jason F. McBrayer
Also on shared hosting, it is probably a bit less common than mod_fastcgi (not sure). If the server is dedicated to your django website, then neither of these is probably a problem. -- +--------+ | Jason F. McBrayer [

Re: Packaging django apps

2005-09-09 Thread Jason F. McBrayer
On Thu, 2005-09-08 at 19:21 -0700, Jason Huggins wrote: > Jason F. McBrayer wrote: > > Hi. I've more-or-less finished a django app that might be useful to > > other people > > > I'd like to package this for other people in a way that is as convenient &

Dealing with long operations in views

2005-09-08 Thread Jason F. McBrayer
after sleeping a little or via a temporary page, even though you don't know for sure that the job is done? Is it even safe to use a thread or forked process to do the work? -- +----+ | Jason F. McBrayer [EMAIL

Packaging django apps

2005-09-08 Thread Jason F. McBrayer
people expect from a third-party django app by way of packaging? Just a tarball of the app and templates directory? Install scripts? README, COPYING, and INSTALL documents? -- +--------+ | Jason F. McBrayer [EMAIL

Re: internal_error.html?

2005-09-06 Thread Jason F. McBrayer
ts the stalls, at least for browsers that support gzip encoding! I am not, at this time, sure where the problem lies; whether it is in django's WSGI interface, in flup's fcgi-wsgi adapter, or in Apache's mod_fcgi. -- +--------+

Re: initial data

2005-09-01 Thread Jason F. McBrayer
models, instantiates objects, and saves them. Or, of course, you could use the admin interface, but that would quickly get tedious. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythoc

Re: Storing models in sessions

2005-08-31 Thread Jason F. McBrayer
pt database space which you can reclaim when it's convenient. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: User Authentication - What's the best way?

2005-08-30 Thread Jason F. McBrayer
o (as I'm using python 2.3): def view(req): blah blah blah... view = util.login_required(blah) > Anyone point me in the right direction? Or even a breif explanation of > how django's admin authentcation works might get me going. I arrived at this solution by looking at th

Re: Basic file upload (not model file object)

2005-08-30 Thread Jason F. McBrayer
The "enctype" on the form was "multipart/form_data" rather than "multipart/form-data". Too much typing python, I guess ;) Thanks, all, for the response. As I said, I knew it had to be something stupid. -- +--------

Re: Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
eUploadField), but somewhere else, either in my template or my view, but I am unable to find the problem (so far). Thanks for the input. -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to m

Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
g, and obviously it shouldn't be. So what's going wrong here? It's surely something that should be completely obvious, but somehow I'm just managing to miss it. -- ++ | Jason F. McBrayer [EMAI

Re: IMPORTANT: Django model syntax is changing

2005-08-26 Thread Jason F. McBrayer
On Fri, 2005-08-26 at 13:33 -0500, Adrian Holovaty wrote: > On 8/26/05, Jason F. McBrayer <[EMAIL PROTECTED]> wrote: > > > In [1]: from django.models.engulf import feeds, users, articles, categorys > > > In [2]: c = categorys.get_list(user_id__exact=1) >

Re: IMPORTANT: Django model syntax is changing

2005-08-26 Thread Jason F. McBrayer
; TypeError: got unexpected keyword argument 'user_id__exact' > I've tried a few variations on the keyword argument, and can't seem to find what it is now looking for. I regenerated the database from the model (sqlreset) and populated it a bit, just to make sure that wasn'

Re: Existing Database?

2005-08-19 Thread Jason F. McBrayer
t are no > SQL databases.) I am interested in this as well. I've seen some examples of adding non- database methods to a model, but nothing that is entirely dissociated from an SQL database. -- +--------+ | Jason F. McBrayer

Re: Problems with User Auth stuff

2005-08-08 Thread Jason F. McBrayer
o? Or should this kind of thing be on the devel list? -- +--------+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |