ANNOUNCE: Security bugfix releases

2008-05-13 Thread James Bennett
In accordance with our security policy[1], a set of releases is being issued tonight to fix a security vulnerability reported to the Django project. This message contains a description of the vulnerability, a description of the changes made to fix it, pointers to the the relevant patches for each

symmetrical associations

2008-05-14 Thread James Tauber
two foreign keys but (a) this leads to a superfluous related_name; (b) how do you best query a node for its arcs? If the arc were just a M2M field on the node, one could use symmetrical=True but it isn't clear to me the best way to do this where the arc/association is its own m

Re: IntegerField - SQL type changed?

2008-05-15 Thread James Bennett
On Thu, May 15, 2008 at 5:34 AM, Amit Ramon <[EMAIL PROTECTED]> wrote: > Was there any change in django in the recent months that could explain this? > Namely, could it be that a couple of months ago django would indeed generate > a varchar(20) for this field, and now it generates int(11)? I'll

Uploading files to subdirectories

2008-05-16 Thread James McGill
, file_contents). Adding extra folders to the path (i.e. path = greg/ holiday.rtf) doesn't work - I assume this is a security restriction. I am using the SVN version of Django. Any help would be appreciated. Regards, James --~--~-~--~~~---~--~~ You received

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

2008-05-16 Thread James Bennett
On Fri, May 16, 2008 at 5:02 AM, ydjango <[EMAIL PROTECTED]> wrote: > I have propriety commercial code and some formula/ algo > implementations which I do not want to expose. > Hence I do not want to upload .py source files If your host's setup would allow other users to view this code, you have

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

2008-05-16 Thread James Bennett
On Fri, May 16, 2008 at 9:15 AM, ydjango <[EMAIL PROTECTED]> wrote: > Yes, that was another thing on my mind, how to encrypt password in > settings.py You don't. I think either you misunderstand how shared hosting works, or you have an extremely bad host. -- "Bureaucrat Conrad, you are technic

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

2008-05-16 Thread James Bennett
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 information - data and code. Again: if this is your

Re: symmetrical associations

2008-05-16 Thread James Tauber
On May 14, 2008, at 5:53 PM, Russell Keith-Magee wrote: > Hi James, > > It sounds like you might be looking for ticket #6095 [1]. This lets > you define an intermediate model to use for m2m relations. This allows > you to put attributes on the arc, query over the arc attri

Re: Legacy Databases - custom filter?

2008-05-18 Thread James Bennett
On Sun, May 18, 2008 at 4:10 PM, Dougal <[EMAIL PROTECTED]> wrote: > How would I then do this SQL manually? I know writing SQL is to be > avoided but is there an easy way to execute SQL commands? Writing SQL is *not* to be avoided. Using an ORM is basically a trade-off, where some things are supp

Re: Printing out HTML that doesn't get converted to

2008-05-18 Thread James Bennett
On Mon, May 19, 2008 at 12:51 AM, Tomás Garzón Hervás <[EMAIL PROTECTED]> wrote: > I think, you use the {% autoescape off %} text to escape {% endautoescape %} > Search more information of autoescape en django documentation Turning autoescaping on and off for large sections of a template is a sor

Re: Django experts wanted

2008-05-19 Thread James Bennett
On Mon, May 19, 2008 at 10:56 AM, Jim R. Wilson <[EMAIL PROTECTED]> wrote: > I am compiling a contact list of Django experts who may be interested > in opportunities under the right circumstances. I am not a recruiter > - I'm a regular developer who sometimes gets asked for referrals when > I'm n

Re: "request"object within models.py

2008-05-19 Thread James Bennett
On Mon, May 19, 2008 at 3:24 PM, enri57ar <[EMAIL PROTECTED]> wrote: > How access to request object within models ? Pass it as an argument the same as any other value. Magical hacks to try to make it available otherwise are likely to land you in trouble later on. -- "Bureaucrat Conrad, you are

Re: "request"object within models.py

2008-05-19 Thread James Bennett
On Mon, May 19, 2008 at 3:45 PM, Richard Dahl <[EMAIL PROTECTED]> wrote: > how do you pass the request object to models? Same way you pass any argument to any function or method in Python: write your function/method to accept the argument, and pass it from the code that calls the function/method.

Re: "request"object within models.py

2008-05-19 Thread James Bennett
On Mon, May 19, 2008 at 4:10 PM, Tim Chase <[EMAIL PROTECTED]> wrote: > It's the last bit that can throw folks...many folks seem to use > very nice/helpful bits of the framework that abstract the save() > call so it's never thought-about. Wouldn't adding a parameter to > save() stymie the admin a

Re: user.is_authenticated is always false using default login

2008-05-20 Thread James Bennett
On Tue, May 20, 2008 at 10:32 AM, Andrew English <[EMAIL PROTECTED]> wrote: > Do I need to explicitly call authenticate and login in my own view to > populate the user data? From what I read, it seems that the > django.contrib.auth.views.login does that automatically. There's a difference betwee

Re: Authentication for whole app

2008-05-20 Thread James Bennett
On Tue, May 20, 2008 at 7:14 PM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > If you want to use HTTP Basic authentication, then put everything > under/behind Apache and use Apache to do it. If you want to use form > based authentication with same user database across all applications > gets a bi

Re: Authentication for whole app

2008-05-20 Thread James Bennett
On Tue, May 20, 2008 at 8:57 PM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Let me ask my own question then. If one is running multiple Django > instances, does Django provide anything that would help with single > sign on (SSO) across all the distinct Django application instances? Well, they

Re: Authentication for whole app

2008-05-20 Thread James Bennett
On Tue, May 20, 2008 at 9:11 PM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > But is it true SSO? If they're all on the same domain or subdomains of the same domain, and you do the cookies right, it is. If they're not all on the same domain (or authentication realm for Apache-based auth), there

helpers on managers versus models module top-level?

2008-05-21 Thread James Tauber
self.filter... whereas I just accepted a patch to django-notification that has: def notices_for(user, archived=False): ...code with Notice.objects.filter... Any thoughts on best practices? Heuristics for deciding which to use? I'd like some consistency across all my reusable apps.

Re: Reusable models?

2008-05-21 Thread James Bennett
On Wed, May 21, 2008 at 12:29 PM, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote: > One use case could be, for example, > the Institution model with title and description fields in project A, > then the Institution model with title, description, and address fields > in project B, > and then the Insti

Re: User.get_profile() (was: Re: Reusable models?)

2008-05-21 Thread James Bennett
On Wed, May 21, 2008 at 2:00 PM, Jeremy Bornstein <[EMAIL PROTECTED]> wrote: > This brings up something I don't quite get: Django provides > user.get_profile(), but the ORM makes it just as easy to say > user.userprofile (assuming your profile model is called > "UserProfile"). Is there any reason

Re: New Django Site

2008-05-21 Thread James Bennett
On Wed, May 21, 2008 at 3:27 PM, Bret W <[EMAIL PROTECTED]> wrote: > There are several more complex surveys and sites for this type of > information, but none that are quick and easy. No comment on technical aspects, but do bear in mind that: 1. Many employers forbid employees to disclose this i

Re: Authenticated user from models.py

2008-05-21 Thread James Bennett
On Wed, May 21, 2008 at 7:35 PM, Juanjo Conti <[EMAIL PROTECTED]> wrote: > Ugly. Is this the only way? Sigh. No, "ugly" is magical global variables and things that appear out of thin air. Code that's clean and understandable, where you can clearly see where everything comes from and what it's d

Re: Authenticated user from models.py

2008-05-21 Thread James Bennett
On Wed, May 21, 2008 at 8:23 PM, Patrick J. Anderson <[EMAIL PROTECTED]> wrote: > Passing a Request object should work in application views, but what if > one wants to capture that information on every save() call, including in > the admin? > > What would be an elegant and beautiful approach to so

Hi Welcome - I am Waiting

2008-05-22 Thread james Jithan
-- --- Online Dating Tips - Interesting & Informative http://funlimit.blogspot.com --- Computer Tips,Tricks For Fun And Educational http://systemhelp4u.blogspot.com ---

storing a list of arbitrary generic objects in a db field

2008-05-23 Thread James Tauber
se of multiple objects, something like "auth.user:3| another.model:id|..." Thoughts on this approach? James [1] http://code.google.com/p/django-notification/ -- James Tauber http://jtauber.com/ journeyman of some http://jtauber.com/blog/ --~--~-~--~~-

Re: helpers on managers versus models module top-level?

2008-05-23 Thread James Tauber
On May 22, 2008, at 9:29 AM, Rajesh Dhawan wrote: > On May 21, 3:30 am, James Tauber <[EMAIL PROTECTED]> wrote: >> I find myself being inconsistent in whether I put model helper >> methods >> on a custom manager or just as top-level functions in models.py >&

Re: Help me build my site with answers to my questions from models to newsletters everybody view this at least once

2008-05-23 Thread James Tauber
mized for sending out mass e-mails. Or help work on django-mailer :-) http://code.google.com/p/django-mailer/ James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: setup issues with Django

2008-05-25 Thread James Matthews
It looks nice. I am going to try it out On Sun, May 25, 2008 at 7:01 PM, Joseph <[EMAIL PROTECTED]> wrote: > > There is instant Django: http://www.instantdjango.com/download.html > No install. Just unzip and it works well. then you can update your > copy of Django as well. Works well for me.

Re: Avoiding code duplication with many similar models

2008-05-25 Thread James Bennett
On Sun, May 25, 2008 at 10:13 PM, Trevor Caira <[EMAIL PROTECTED]> wrote: > So while it is possible to do this with model inheritence, at least > the most obvious solution involves a lot of code duplication. A situation like this is often an indicator that you haven't sufficiently abstracted what

Re: How to Implement "Most Viewed"?

2008-05-25 Thread James Bennett
On Sun, May 25, 2008 at 9:08 PM, jonknee <[EMAIL PROTECTED]> wrote: > Unless you cache the view. Just update it once an hour/day. You still have to record the raw number of hits somewhere. Doing this in the database, in real time, is often not possible because it does lead to one write per page v

Re: hanging os.system() when doing pdf generation

2008-05-27 Thread James Bennett
On Tue, May 27, 2008 at 11:05 AM, Milan Andric <[EMAIL PROTECTED]> wrote: > Worked just fine from the interpreter but I noticed some stuff being > returned on stdout (same as on cmd line). So I added the --quiet > option to htmldoc and now it seems fine and returns 0 in the > interpreter. Maybe

Re: may be BUG. SyntaxError: non-keyword arg after keyword arg

2008-05-28 Thread James Bennett
On Wed, May 28, 2008 at 4:32 AM, sector119 <[EMAIL PROTECTED]> wrote: > Is it a bug, or I misunderstood something in filter usage? It looks like you have stray whitespace or line breaks in the middle of things which should be continuous text. This would, naturally, lead to strange behavior. For e

Re: Django and Comma-Formatting Numbers

2008-05-29 Thread James Bennett
On Thu, May 29, 2008 at 1:15 PM, David <[EMAIL PROTECTED]> wrote: > I had need of commas in floating-point numbers, and slightly modified > humanize.py with a floatcomma function: > > def floatcomma(value): >""" >Converts a float to a string containing commas every three digits. >For e

Re: local import or not for django apps?

2008-05-30 Thread James Bennett
On Thu, May 29, 2008 at 4:06 PM, Milan Andric <[EMAIL PROTECTED]> wrote: > Anyone happen to have a strong opinion on this? Should django > applications use local imports or package based imports? Sorry if > this has been mulled over a million times. Applications should expect to live on the Pyt

Re: Method .cache() for QuerySet

2008-06-02 Thread James Bennett
On Mon, Jun 2, 2008 at 11:58 AM, Marinho Brandao <[EMAIL PROTECTED]> wrote: > Meanwhile, I am not sure if it is safe as I need, so, I wish to know > your opinion about it: Review of patches proposed for Django should take place in the Django ticket tracker; djangosnippets is not the appropriate p

Re: How nicely does django play in a distributed environment?

2008-06-02 Thread James Bennett
On Mon, Jun 2, 2008 at 7:06 AM, Phillip B Oldham <[EMAIL PROTECTED]> wrote: > I'm looking at using django to replace our current CMS application > written in PHP. Currently we have two servers behind a load balancer, > and everything's nice and stable. We're getting a consistent month-on- > month

Re: How to import ModelForm Dynamically?

2008-06-02 Thread James Bennett
On Mon, Jun 2, 2008 at 9:06 AM, David.D <[EMAIL PROTECTED]> wrote: > views.py > == > def model_form(request, model_name): >form_class = __import__('products.models.%sForm'%model_name) >form = form_class() >... > > model_name is a string Unless you really grok how __import__() work

Re: "Includes" directory?

2008-06-02 Thread James Bennett
On Mon, Jun 2, 2008 at 1:29 PM, Huuuze <[EMAIL PROTECTED]> wrote: > I'm new to Django, so please be gentle. Basic question: when > developing a web app, I've typically created an "includes" directory > which stores commonly used functions or methods. From a best practice > standpoint, is it reco

Re: "Includes" directory?

2008-06-03 Thread James Matthews
and Welcome to Django! On Tue, Jun 3, 2008 at 9:05 AM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 02-Jun-08, at 11:59 PM, Huuuze wrote: > > > I'm new to Django, so please be gentle. Basic question: when > > developing a web app, I've typically created an "includes" directory > > which

Re: auto admin for production

2008-06-03 Thread James Bennett
On Tue, Jun 3, 2008 at 11:54 AM, pihentagy <[EMAIL PROTECTED]> wrote: >> Currently the admin interface doesn't handle row-level permissions. A >> user can be granted to edit articles, but not restricted to only their >> own. I *believe* this is a feature that will be added in newforms-admin. > > C

Re: why do i have to add this to Apache?

2008-06-03 Thread James Bennett
On Tue, Jun 3, 2008 at 2:17 PM, <[EMAIL PROTECTED]> wrote: > why is this necessary? do i have to do this for every project? > testproject.settings implies i do. You probably want to research how mod_python works in order to understand what the configuration directives are and which ones are nece

Re: django + google appengine?

2008-06-03 Thread James Bennett
On Tue, Jun 3, 2008 at 4:02 PM, <[EMAIL PROTECTED]> wrote: > google appengine seems like a good place to start, then i dont have to > get my own servers and stuff. > > is this easy integrateable? or doesnt google appengine and django work > together? There are a number of articles and tutorials

Re: why so slow?

2008-06-03 Thread James Bennett
On Tue, Jun 3, 2008 at 4:00 PM, <[EMAIL PROTECTED]> wrote: > im running part 2 of the tutorial right now and im inside the admin. > when connecting to localhost it is s slow, why? If you need to have a running dialogue with someone who can help you as you walk through the tutorial, consider

Can Someone Do something about ALL THIS SPAM

2008-06-05 Thread James Matthews
Dear List I hate having to remove the spam emails that come through the Django mailing list! Is there anything we can do it? James -- http://search.goldwatches.com/?Search=Movado+Watches http://www.jewelerslounge.com http://www.goldwatches.com

Re: Can Someone Do something about ALL THIS SPAM

2008-06-05 Thread James Bennett
Guys, this has been covered before, multiple times. But once more, with feeling: * The list is run through Google Groups, so Google's spam filtering is what's applied. * The way to train Google's spam filter is to use their spam-reporting mechanism. * The alternative to this is to start moderatin

Re: Caching question

2008-06-05 Thread James Bennett
On Thu, Jun 5, 2008 at 3:05 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've read the caching documentation several times, but must be missing > some fine points. If I have > CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True > set, does per-view or template fragment caching override that? If you have

Re: Caching question

2008-06-06 Thread James Bennett
On Fri, Jun 6, 2008 at 2:11 PM, Peter Rowell <[EMAIL PROTECTED]> wrote: > I'm a little confused. The docs (http://www.djangoproject.com/ > documentation/middleware/#django-middleware-cache-cachemiddleware) > say, and the code appears to support it, that if > django.middleware.cache.CacheMiddleware

Re: ORM question

2008-06-06 Thread James Bennett
On Fri, Jun 6, 2008 at 6:57 PM, Dan W. <[EMAIL PROTECTED]> wrote: > I'm pretty new to django and so far so good except for one thing. When I > fetch model objects, their related objects are showing up as RelatedManager > and ManyRelatedManager objects intead of the types I created and modified in

Re: django programming project

2008-06-06 Thread James Bennett
On Fri, Jun 6, 2008 at 7:55 PM, david.watson <[EMAIL PROTECTED]> wrote: > I have a relatively simple django project that I need to get done. > I'm an experienced software engineer, but I don't have the cycles to > do this myself. I have, however, carefully thought out the > requirements and desig

Re: I need outsourcing

2008-06-06 Thread James Bennett
Once again: Please route job listings to djangogigs.com. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Django Suitable for this?

2008-06-08 Thread James Bennett
On Sun, Jun 8, 2008 at 1:05 AM, beetlecube <[EMAIL PROTECTED]> wrote: > I read a blog entry somewhere by someone contemplating the ideal type > of web application needs that Django best meets: Since it was > written originally for publishing articles in a newspaper environment, > it's good for b

Re: "more than 1 ForeignKey" error in newforms-admin

2008-06-09 Thread James Bennett
On Mon, Jun 9, 2008 at 2:08 PM, Andre Meyer <[EMAIL PROTECTED]> wrote: > i have a model with a class that has a foreign key and a subclass that has > another. this works well for creating the database, but the admin does not > like it. I believe your problem is that support for hierarchies of sub

Re: Painfully slow... why?

2008-06-10 Thread James Bennett
On Tue, Jun 10, 2008 at 7:42 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > At the risk of talking to myself, I may have found the cause of my > slowdowns: KeepAlive. Setting it OFF has -- so far -- made a HUGE > performance improvement. More than I saw from memcached, or anything > I've done

Re: SQLobject vs SQLAlchemy

2008-06-12 Thread James Bennett
On Fri, Jun 13, 2008 at 1:15 AM, Pepsi330ml <[EMAIL PROTECTED]> wrote: > i shall go read more about SqlObject then. If you're planning to use Django, and if you do not already have a very strong attachment to another ORM, consider just using the one that comes with Django. It will make your life

Re: Django Tutorial Clarification

2008-06-13 Thread James Bennett
On Fri, Jun 13, 2008 at 2:24 AM, wave connexion(BQ) <[EMAIL PROTECTED]> wrote: > Does this mean Django generated API code for you? No. The phrase "no code generation necessary" means precisely what it says: that, unlike some frameworks which require you to run a script which generates files of co

Re: django-registration with my custom user profile

2008-06-13 Thread James Bennett
2008/6/13 Chr1s <[EMAIL PROTECTED]>: > But still I don't know how to implement this, anyone could give me a > simple example? thanks very much This feature is intended for a situation where each of the following is true: 1. You have a custom user-profile model. 2. The user-profile model has been

Re: Roadmap to 1.0 and internationalization in db

2008-06-13 Thread James Bennett
On Fri, Jun 13, 2008 at 5:38 PM, Adrián Ribao <[EMAIL PROTECTED]> wrote: > I think I can make this work in three weeks, If I do, could it be > considered for Django 1.0? Since it appears that it wouldn't introduce any backwards-incompatible changes, I'd be against putting it on a 1.0 timeline; it

Re: Extending User model with model inheritance?

2008-06-13 Thread James Bennett
On Fri, Jun 13, 2008 at 10:54 PM, meppum <[EMAIL PROTECTED]> wrote: > With the query refactoring branch being merged to the trunk I wanted > to finally move some of the data I had put on my user profiles to a > derrived user model. I didn't see this mentioned in the documentation > and I wanted to

Re: Disconnected ORM objects

2008-06-13 Thread James Bennett
On Fri, Jun 13, 2008 at 11:01 PM, Karish <[EMAIL PROTECTED]> wrote: > I want to be able to use my ORM objects (eg, EmailMessage, > EmailAddress) in some cases without a database. For example, I want to > write a function like download_email_messages that will download email > messages and return a

Re: simple python math help.

2008-06-15 Thread James Bennett
On Sun, Jun 15, 2008 at 4:36 AM, Jarred Bishop <[EMAIL PROTECTED]> wrote: > it returns '0'. which isnt much help. how do i get '0.5' or '.5' ? This has a very long history, going all the way back to the C programming language (which the Python interpreter is written in, and which many currently-p

Re: Django HTML Editor

2008-06-15 Thread James Matthews
Thanks for this post! I am now trying Komodo Edit out. On Sun, Jun 15, 2008 at 8:23 AM, Gene Campbell <[EMAIL PROTECTED]> wrote: > > jEdit - I've used it for years; it is good but not great for django. > But, it's just a killer editor, I don't care. > > > On Sun, Jun 15, 2008 at 3:42 AM, mario <[

Re: problem with forms with db access

2008-06-15 Thread James Bennett
On Sun, Jun 15, 2008 at 7:58 AM, ./ed <[EMAIL PROTECTED]> wrote: > the problem is that when i add an entry to the aModel table it does > not update in the form (even with various reload scheme) > it does update when I 'touch' the python file. So my guess is the > problem lies in the 'compilation'

Re: Use new variables on templates

2008-06-15 Thread James Bennett
On Sun, Jun 15, 2008 at 11:29 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > One of the things django does for you is make 'settings' available > everywhere. So if you want to use these constants in a template, you > should be able to do this in a view: Er. No, no it doesn't. If you want access

Lighttpd Vs Apache

2008-06-15 Thread James Matthews
Hi, I am now debating on if i should use Apache with mod_python or Lighttpd with fastcgi. I won't be serving many files (just one webpage for now...) But that page will preform be doing many calculation/database query's. Which one would you guys recommend. Pros and Cons Thanks James

library import issue.

2008-06-16 Thread James Matthews
rary using Swig. Details: Error was: libhdate.so.1: cannot open shared object file: No such file or directory but in python... [machine]$ python -c "from hdate import Hdate" [machine]$ Any help? James -- http://search.goldwatches.com/?Search=Movado+Watches http://www.jew

Re: library import issue.

2008-06-16 Thread James Matthews
ib', '/home/user/opt/lib/python25.zip', '/home/user/opt/lib/python2.5', '/home/user/opt/lib/python2.5/plat-linux2', '/home/user/opt/lib/python2.5/lib-tk', '/home/user/opt/lib/python2.5/lib-dynload', '/home/user/opt/lib/python2.5/site-pac

Re: library import issue.

2008-06-16 Thread James Matthews
Sorry, I am running Django in a shared hosting environment, Apache, Fcgi James On Mon, Jun 16, 2008 at 2:43 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2008 at 6:07 AM, James Matthews <[EMAIL PROTECTED]> > wrote: > >> Hi, >> >> I am tryi

Re: library import issue.

2008-06-16 Thread James Matthews
Karen The library path is in both LD_LIBRARY_PATH and the PYTHONPATH On Mon, Jun 16, 2008 at 3:09 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2008 at 8:48 AM, James Matthews <[EMAIL PROTECTED]> > wrote: > >> Sorry, >> >> I am running

Re: library import issue.

2008-06-17 Thread James Matthews
The server is running suExec therefore Apache executes as the user. So it should be able to read my library. James On Mon, Jun 16, 2008 at 5:08 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2008 at 9:19 AM, James Matthews <[EMAIL PROTECTED]> > wrote: > >&

Re: Freelance Django Developers Urgently Needed

2008-06-17 Thread James Bennett
Hey, there, django-users subscribers! This is your periodic friendly reminder that the place for job listings is http://djangogigs.com/, which exists specifically to serve that purpose. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~---

Re: get_models

2008-06-19 Thread James Bennett
On Thu, Jun 19, 2008 at 7:02 PM, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > Short version: See also long version: http://www.b-list.org/weblog/2007/nov/03/working-models/ If these functions were to change, Django itself would need to undergo not-insignificant refactoring. And since such a

Re: get_models

2008-06-19 Thread James Bennett
On Thu, Jun 19, 2008 at 8:01 PM, Marty Alchin <[EMAIL PROTECTED]> wrote: > In fact, I'm confident enough that they're not going anywhere that I'm > in the process of documenting them on dead trees. I already beat you to it, at least partially (got some uses of get_model() in my book). -- "Bure

Re: get_models

2008-06-19 Thread James Bennett
On Thu, Jun 19, 2008 at 9:11 PM, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > This is just one of those areas that we haven't got around to > documenting yet. It doesn't mean we don't want to document this > feature - it just means other things have taken priority. We're always > open to contr

Re: Django HTML Editor

2008-06-20 Thread James Matthews
Code completion is not about knowing or not knowing a language well. It saves time when you don't have to type in all the method/function/class/variable names. On Thu, Jun 19, 2008 at 9:22 AM, Gene Campbell <[EMAIL PROTECTED]> wrote: > > I just wrote that I use jEdit and although it's not great

Re: Extending the method that is called the first time a model is deployed.

2008-06-22 Thread James Bennett
On Sun, Jun 22, 2008 at 4:41 AM, mwebs <[EMAIL PROTECTED]> wrote: > It seems as if these signals have to be used in management.py, but > what I need is something I can use directly in my model code. > Something like overloading a method. The fact that this should be > happen in the model-class is

Re: site searching

2008-06-24 Thread James Matthews
What are you looking to search? If it's dynamic pages why not search the Database On Tue, Jun 24, 2008 at 10:39 AM, bruno desthuilliers < [EMAIL PROTECTED]> wrote: > > > > On 23 juin, 17:55, "José Moreira" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > yes while seaching the mailing list i found djan

Re: Django - Apache - mod_python setup

2008-06-24 Thread James Matthews
After that you need to setup a view in django and point that to a page (or function) On Tue, Jun 24, 2008 at 5:37 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 23, 2008 at 7:38 PM, Nagu <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> >> I am very new to programming in general. I start to te

Re: psycopg2

2008-06-24 Thread James Bennett
On Tue, Jun 24, 2008 at 11:28 AM, Will <[EMAIL PROTECTED]> wrote: > All I'm asking for is some reason to trust the integrity of psycopg, > and all I'm getting from you is sarcasm. Perhaps you could provide me > with some links? psycopg is used, happily, by everyone from hobbyists to Fortune 500 c

Re: psycopg2

2008-06-24 Thread James Bennett
On Tue, Jun 24, 2008 at 12:20 PM, Will <[EMAIL PROTECTED]> wrote: > I really didn't want to turn this into a fight, and I apologise if my > posts have seemed inflammatory. I'd just like to be able to trust all > my stack. Well, this is the thing: are you going to this level of detail on *every*

Re: Hooking up Users and Profiles

2008-06-24 Thread James Bennett
On Tue, Jun 24, 2008 at 2:53 PM, radioflyer <[EMAIL PROTECTED]> wrote: > I continue to struggle with what I see as some real limitations of the > User/UserProfile paradigm used by Django. Well, it doesn't cover every conceivable thing you might want to do, which is to be expected; out of the box,

Re: django naming conventions ?

2008-06-25 Thread James Bennett
On Wed, Jun 25, 2008 at 5:02 PM, PFL <[EMAIL PROTECTED]> wrote: > I have done some searching but could not find a set of standard naming > conventions that is recommended for Django objects: There's really not much that's Django-specific; as with most Python code, the recommendation is to follow

Re: psycopg2

2008-06-27 Thread James Bennett
On Fri, Jun 27, 2008 at 3:06 AM, Will <[EMAIL PROTECTED]> wrote: > Would I have to write an entire new backend for postgres, just to use > a different driver? You'd need a module that implements the interface of a Django database adapter while using another driver. A few months ago I saw an artic

Re: psycopg2

2008-06-27 Thread James Bennett
On Fri, Jun 27, 2008 at 6:19 AM, Will <[EMAIL PROTECTED]> wrote: > Ah, sorry. Reading the Django book had led me to believe I was stuck > with psycopg: The change which allows user-defined backends to be plugged in happened after the 0.96 release, so the book is accurate for 0.96. -- "Bureaucr

Re: Need help including a queryset in every view

2008-06-27 Thread James Bennett
On Fri, Jun 27, 2008 at 4:27 PM, Brandon Taylor <[EMAIL PROTECTED]> wrote: > What's the best way to go about this? Obviously I don't want to have > to pass the queryset into the context of every action, in every view > across the entire site :) Same way you make anything accessible to lots of dif

Re: help request using python_twitter api with django and errno 25

2008-06-27 Thread James Bennett
On Fri, Jun 27, 2008 at 11:02 PM, Hani <[EMAIL PROTECTED]> wrote: > My questions are: > 1. can anyone explain the error a little better to me? > 2. Is it a bug in the python-twitter api, or in django, or in my code? > 3. Is there a fix that does not involve using the patch? > 4. If I have to use t

Re: template via email

2008-07-01 Thread James Bennett
On Tue, Jul 1, 2008 at 8:37 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Look at the render_to_string() method for converting templates to > strings: > http://www.djangoproject.com/documentation/templates_python/#the-render-to-string-shortcut And if you end up using a template to generate

Re: django+mod_python, caching or something else?

2008-07-02 Thread James Bennett
On Wed, Jul 2, 2008 at 7:09 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Client-side caching. Use the `never_cache` decorator No, that's not it at all. > On Jul 2, 3:43 pm, Mario <[EMAIL PROTECTED]> wrote: >> I look at sql log - django didn't query that, but always query lists, >> for example:

Re: Stability of trunk and 1.0 target: experience, testimonials?

2008-07-02 Thread James Matthews
Great! On Wed, Jul 2, 2008 at 8:43 PM, J Meier <[EMAIL PROTECTED]> wrote: > > Thank you, everyone. That was exactly what I needed. It looks like > we'll be starting a prototype on Django trunk targeting 1.0 this week. > > Jim Meier > > > -- http://search.goldwatches.com/?Search=Movado+Watches

Re: Using SQLite in production

2008-07-03 Thread James Bennett
On Thu, Jul 3, 2008 at 8:28 PM, Alex Slesarev <[EMAIL PROTECTED]> wrote: > One more issue - if you change a model, then you have to drop database > and recreate it using syncdb (sqlite do not allow modifying tables and > columns). It is not so good for production use. This is not quite correct. S

Re: Create field from two others

2008-07-03 Thread James Bennett
On Thu, Jul 3, 2008 at 8:59 PM, lukeqsee <[EMAIL PROTECTED]> wrote: > > Can you take a first_name & a last_name field and then in the same > model make a field that is full_name? ie > first_name = models.CharField(max_length=75) > last_name = models.CharField(max_length=75) > full_name = models.Ch

Re: not allowing me to login to admin site

2008-07-08 Thread James Bennett
On Tue, Jul 8, 2008 at 4:33 AM, allisongardner <[EMAIL PROTECTED]> wrote: > Will look further into problem as it does not accept any of my user > logins that have been created by the admin site, even though I know i > am using the correct username and password. I do have shell access as > I am usi

Re: Where is the source code for Practical Django Projects?

2008-07-09 Thread James Bennett
On Wed, Jul 9, 2008 at 3:33 AM, Evan H. Carmi <[EMAIL PROTECTED]> wrote: > I am reading Practical Django Projects but am unable to find the online > source code. Does anyone know where this is located? I would think that > it would be at http://www.apress.com/book/view/1590599969. However, that >

Re: Advice on on a flatpage menu

2008-07-10 Thread James Punteney
lates/sample_base.html It's a little different than yours as it's a customized version of flatpages and also has site sections, but the general flow/logic is the same. --James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

multiple selection checkboxes in a html table

2008-07-10 Thread James Beard
for the other columns from the model objects? Below is roughly what I want to do, but the template will only let me look up "field.name" rather than the value of field.name. {% for field in form %} {{ field }} | {{ messages[field.name].from }} | ... {% endfor %} Any hints or recipes on

Re: Root Access

2008-07-12 Thread James Matthews
I have used dreamhost and hosted Django. While root is the best Django ran smoothly! On Sat, Jul 12, 2008 at 10:22 PM, Tim Johnson <[EMAIL PROTECTED]> wrote: > > Hi: > Just wanted to thank all of you for the responses. > Good data set! > "Not bad for two fingers" > cheers > tim > > > > --

catalog of django apps?

2007-02-15 Thread James Tauber
trained to apps that follow certain conventions to improve interoperability with one another. One potential name that came to mind is "Hot Club of France" :-) James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: catalog of django apps?

2007-02-15 Thread James Bennett
On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: > Has anyone give much thought to building a "Cheeseshop" for reusable > Django apps? A couple people have tried to start sourceforge-esque sites for hosting Django apps, but so far none of them have taken off. Personally

Re: catalog of django apps?

2007-02-15 Thread James Tauber
On 15/02/2007, at 8:48 PM, James Bennett wrote: > > On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: >> Has anyone give much thought to building a "Cheeseshop" for reusable >> Django apps? > > A couple people have tried to start sourceforge-esque sit

Re: catalog of django apps?

2007-02-15 Thread James Bennett
On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: > That would be great. In fact, it would be nice if many of the > component apps of the site were themselves available on the site for > building other software component catalog sites. Absolutely. I'm a fan of open-sou

<    5   6   7   8   9   10   11   12   13   14   >