Re: Performance / Memory/CPU Usage of A Django App with 10,000+ Models in a High Traffic Site

2008-01-14 Thread Frankie Robertson
On 14/01/2008, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > Perhaps you want to look at Amazon's SimpleDB: > > > http://www.amazon.com/b/ref=sc_fe_l_2?ie=UTF8&node=342335011&no=3435361&me=A36L942TSJ2AJA Or couchdb: http://couchdb.org/ > > -- http://grimboy.co.uk --~--~-~--~~-

Re: Flatpages with images

2007-04-07 Thread Frankie Robertson
On 07/04/07, Alessandro Ronchi <[EMAIL PROTECTED]> wrote: > > Is it possible to add images to flatpages with a wysiwyg editor, > uploading them to a folder and using them into the page? There's a rather dated, but probably still working (until newforms-admin at least, which'll probably make it a

Re: get_or_create isn't atomic?

2007-03-29 Thread Frankie Robertson
On 29/03/07, John Penix <[EMAIL PROTECTED]> wrote: > > I think I saw a get_or_create race condition today from concurrent > runs of our data uploader that uses the model API. Ouch. The docs > have several references to the api calls being atomic - now I'm > thinking get_or_create is an exception

Re: development version

2007-03-28 Thread Frankie Robertson
On 28/03/07, Mary <[EMAIL PROTECTED]> wrote: > > I would like to use the development version in creating life websites > So if i make svn update does this affect my projects > > and if so shall i use the stable version instead?? > My recommendation would be to use the development version. No majo

Re: newforms - outputting dates in the same format as input

2007-03-07 Thread Frankie Robertson
On 07/03/07, orestis <[EMAIL PROTECTED]> wrote: > > As it stands, the when using a newforms.DateField with specified input > formats, it gets parsed alright, but when rendering the form there is > no way to specify the output format, it gets printed as -MM-DD. > > This not only is a bad locali

Re: User model extension

2007-03-06 Thread Frankie Robertson
On 06/03/07, Adam Rutkowski <[EMAIL PROTECTED]> wrote: > > First of all I'd like to say hi - I'm completely new to Django & Python, > however very excited about it; great framework, great language. > While reading Django docs I came across a problem, that I wasn't be able > to find exact solution

Re: Debugging Django: print statements?

2007-03-06 Thread Frankie Robertson
On 27/01/07, Julian Romero <[EMAIL PROTECTED]> wrote: > On 1/27/07, Don Arbow <[EMAIL PROTECTED]> wrote: > > > > > Using print statements to debug a program is like figuring out what > > is wrong with your car by listening for weird noises. Using a > > debugger is like opening the hood and tweakin

Re: a few questions about django

2006-11-07 Thread Frankie Robertson
On 07/11/06, Florian Apolloner <[EMAIL PROTECTED]> wrote: > > I have a few questions about django, where I didn't found the answer in > the docu. > > Here they are: > > 1.) In the admin-area you can use filters ( list_filter = ('is_staff', > 'is_superuser') ), which show by default all entries. No

Re: How would you do this on Django?

2006-11-06 Thread Frankie Robertson
On 06/11/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > > Hello people, I have a question for you. > > I've been developing (in my head) a multilang, multisite, multiuser > blog application, that -at least for me- sounds like a very cool idea. > On to the details: > > The project is actually a grou

Re: Nesh Thumbnail - Installation problem

2006-11-06 Thread Frankie Robertson
On 06/11/06, Gabriel Puliatti <[EMAIL PROTECTED]> wrote: > On Mon, 2006-11-06 at 10:07 +, Frankie Robertson wrote: > > I think the "class Foo(models.Meta):" in the example is a probably > > typo or something. I've used ImageWithThumbnailField in in a normal

Re: Nesh Thumbnail - Installation problem

2006-11-06 Thread Frankie Robertson
On 06/11/06, Mark Jarecki <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm new to Django and Python - been at it for 4 days now - and have > found it quite straightforward. However, I've come into difficulty > trying to install Nesh Thumbnail according to the instructions at: > http://trac.studioqua

Re: Is there any way to render rtf (rich text format) documents with Django?

2006-11-02 Thread Frankie Robertson
On 02/11/06, carlwenrich <[EMAIL PROTECTED]> wrote: > > I'd like to allow a user (or at least an administrator) to edit an rtf > document, and then render it within an html document the way php > scripts are now doing. http://sourceforge.net/projects/pyrtflib/ (only one release and looks stagnant

Re: Index of an item in a QuerySet

2006-11-02 Thread Frankie Robertson
On 01/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > Frankie Robertson wrote: > > On 01/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > >> samuel wrote: > >>>>> I'm probably just not seeing it, but how do I go about getting the > &

Re: Index of an item in a QuerySet

2006-11-01 Thread Frankie Robertson
On 01/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > samuel wrote: > >>> I'm probably just not seeing it, but how do I go about getting the > >>> index of an item in a query set? I.E., this article is the Xth article > >>> in this queryset of articles sorted by date. > >> If you're looping th

Re: is there any guide for creating custom Models Field?

2006-10-31 Thread Frankie Robertson
On 31/10/06, Enoch <[EMAIL PROTECTED]> wrote: > > Hi > > I have used Django for 2 months, and I really enjoy the rich features > of django framework. Now I have a question and hope I can get help > here. > > I'd like to write my own Models Field which likes EmailField, FileField > integrated with

Re: SelectMultipleField without multiple fields in POST

2006-10-31 Thread Frankie Robertson
On 31/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > > in the last time i use django to create a gui for the internet. and it > works fine. > I have a lot of m2m relations. and they really work great. > But there are one problem: > > In a custom manipulator: > > class AddRelation

Re: admin returning 404 when user is clicked

2006-10-30 Thread Frankie Robertson
On 30/10/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > > I have a blog application, and when I click on a user in the admin, so > it tries to go to: > > http://myblog.example.com/admin/auth/user/1/ > > I get a 404. I have no idea what's going on. I have another checkout > of this project using

Re: "first_name" -> "First Name"

2006-10-30 Thread Frankie Robertson
On 30/10/06, Rares Vernica <[EMAIL PROTECTED]> wrote: > > Actually I mean this transformation: > "first_name" -> "First name". > I don't know where it is and if it is actually an indivdual function that can be performed on strings (it may be). The admin code is a bit messy anyway. I would suggest

Re: getting max and min

2006-10-20 Thread Frankie Robertson
On 20/10/06, DavidA <[EMAIL PROTECTED]> wrote: > > > Russell Keith-Magee wrote: > > On 10/19/06, zenx <[EMAIL PROTECTED]> wrote: > > > > > > I want to get the maximum and the minimum values of various numbers. Is > > > the following method the best way to do it? > > > > The most efficient way woul

Re: Django color picker -- ColorField?

2006-10-20 Thread Frankie Robertson
On 15/10/06, inquis <[EMAIL PROTECTED]> wrote: > > Is there any interest in a Django field type that will accept and > validate a set of RGB color values? It could be represented in the > Django admin using a Javascript color picker. I'm interested in it as it might be something I'd use in a pla

Re: When to

2006-10-15 Thread Frankie Robertson
On 13/10/06, MerMer <[EMAIL PROTECTED]> wrote: > > I can see that I could use inclusion tags or template tags. I've read > the documentation however, I'm still unclear when you would use one > over the other. > > What would be the appropriate use case for a template tag versus an > inclusion tag

Re: When to

2006-10-12 Thread Frankie Robertson
On 12/10/06, MerMer <[EMAIL PROTECTED]> wrote: > > As a follow on. Can I:- > > Combine all three templates by using inheritance between the templates. > > Unfortunately, I haven't been able to test this yet - because I can't > get the "extend tag" to work (see other post).I am assuming that i

Re: how do you name the 'main' app?

2006-09-20 Thread Frankie Robertson
I generally call applications that are primarly database backed by the most important table's name unless another name is immediately more obvious. So if the site is a webcomic then call the app comics. If it is a song lyric website call it lyrics. Otherwise there shouldn't be a particular problem

Re: Portlet like features

2006-09-19 Thread Frankie Robertson
On 19/09/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: > > On 9/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Well - yes but most MVC type applications have a dispatcher like > > architecture where the request is caught by a single resource which > > then locates the controller to ha

InlineObjectCollection only has 3 FormFieldCollection

2006-09-19 Thread Frankie Robertson
Here's some interpreter session to give my upcoming question a bit of context. In [1]: from site.app.models import * In [2]: manipulator = Container.AddManipulator() In [3]: form = forms.FormWrapper(manipulator, {}, {}) In [4]: form['contained'] Out[4]: In [5]: form['contained'].fill() In [

Re: installing django an an alien server

2006-09-14 Thread Frankie Robertson
On 14/09/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 14-Sep-06, at 2:56 PM, [EMAIL PROTECTED] wrote: > > > As i'm still rather new to this django stuff, here is my simple > > question: > > Is it possible to install django on an alien server? > > as long as you have shell access you c

Re: Django and Oracle, again

2006-07-06 Thread Frankie Robertson
I think the plan is that if anyone offers to maintain it then it'll happen, otherwise it probably won't. On 06/07/06, BP <[EMAIL PROTECTED]> wrote: > > I've just run the 3278 revision of Django trunk against 10g XE and it's > far from working. Any comment on its status and planned inclusion in >

Re: Using a Django project in a python script.

2006-07-06 Thread Frankie Robertson
I think it's possible to use the db api on its own, you still have to declare models, but then it can be fairly independent of the rest of djnago. AFAIK you still need to make an application for the models file, but you can just ignore the views if you want to use this independently. On 06/07/06,

Re: Conceptual difference between a project and an application

2006-07-04 Thread Frankie Robertson
On 04/07/06, Spider <[EMAIL PROTECTED]> wrote: > > Can someone explan to me the underlying concept behind the distinction > between django "projects" and "applications"? > > I know that an application is part of a project, and it's many-to-many, > so an app can be part of more than one project, an

Re: Hola

2006-07-04 Thread Frankie Robertson
No, I would like to see a unified effort, if you look at the comments for a lot of the documentation you'll find links to translations into the commenters native tounge. It would be nice to see what the core team had to say about this. On 03/07/06, Douglas Campos <[EMAIL PROTECTED]> wrote: > Is t

Re: web-server

2006-07-03 Thread Frankie Robertson
*Skipped why this is a really bad idea* This: python manage.py runserver 0.0.0.0:80 should do it, however if port 80 on that machine is open to the Internet then prepare to be horribly cracked/inefficient. On 03/07/06, Luigi Pantano <[EMAIL PROTECTED]> wrote: > > how to use django like web-sever

Re: Problem upgrading from 0.95 build 3085 to 3233

2006-06-30 Thread Frankie Robertson
Svn tries do patch your project with loads of diffs at once, this usually work, but can sometimes fail horribly. Try deleting the django_src directory then checking it out from scratch. Frankie On 29/06/06, olive <[EMAIL PROTECTED]> wrote: > > Hi, > > there is no problem using the database in pl

Re: Secret Password + validating two passwords

2006-06-30 Thread Frankie Robertson
Making passwords masked is as simple as changing this in the html: to this: What do you mean about validatating two passwords? Try and be more specific. On 30/06/06, MissLibra <[EMAIL PROTECTED]> wrote: > > Hello, I am trying to make the password appearing as stars, in other > words a secret p

Re: Having many of one application.

2006-06-24 Thread Frankie Robertson
On 24/06/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-06-23 at 17:58 +0100, Frankie Robertson wrote: > > Please, is there any way of doing this? I've dumped the last approach, > > I'm planning on using inclusion tags to query the database,

Re: Having many of one application.

2006-06-23 Thread Frankie Robertson
he blog_slug is, as it is I'm not replacing the generic views with my own, not very DRY, but hey. To be honest I feel this is a bit of failing in django and may file a bug, not sure how it would be corrected to be honest though. Frankie. On 21/06/06, Frankie Robertson <[EMAIL PROTECTED]&g

Re: Which IDE to debug django app? (Was "Using Pyscripter with Django")

2006-06-23 Thread Frankie Robertson
On 22/06/06, Filipe <[EMAIL PROTECTED]> wrote: > > Hi, > > That's definitely a better way to inspect values than modifying the > view's template every time I need to debug something. I found out today > that I can also print to the output console (yes, I'm that much of a > newbie :) which also hel

Re: Problem with DRY and feeding parent's template block

2006-06-22 Thread Frankie Robertson
On 22/06/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Thu, 2006-06-22 at 10:01 +, Jaroslaw Zabiello wrote: > > Django uses Python modules instead of classes. The problem is how to > > avoid duplication of the code in controllers when I want to put some > > data to parent templates?

Re: Which IDE to debug django app? (Was "Using Pyscripter with Django")

2006-06-21 Thread Frankie Robertson
On 20/06/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > > Hi, > > I really found I don't need a debugger for Django. If I have a > problem, I set some random variable to the data I am interested > in and raise a non-existing exception, like: > > bla = user.__dict__ > raise Bla > > Then I dea

Re: multiple templates on a single page

2006-06-21 Thread Frankie Robertson
Yes, I've found the code reuse to be a difficult sometimes because of the naive thinking one view becomes one template. There needs to be a way to flick a switch and render_to_response no longer return a HttpResponse, but instead a dictionary of the context. Unless you make all your views take a b

Re: Having many of one application.

2006-06-21 Thread Frankie Robertson
On 21/06/06, djx <[EMAIL PROTECTED]> wrote: *snip* Okay, so my original post was a bit vague, but I'll have another stab at explaining. -- Start example code --- /blogs/models.py ... class Blog(Model): title = CharField(maxlength=60, core=True, unique=True) tagline = CharField(maxle

Having many of one application.

2006-06-18 Thread Frankie Robertson
The following is used mainly as an example for something I've been wondering about. Say I'm a blog host and want to use django. I need all my views to know which blog (so as to know what information to get) they're using. I also need all my templates to have access to the blog object (so they can

Re: Is there a cms like Ellinton?

2006-06-18 Thread Frankie Robertson
A quick look around reveals http://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/CmsProject. It's nowhere as good as Ellington but Ellington is a for rich media companies. If you're a rich media company, buy it, otherwise you probably don't need anything near the functionality it uses. (by

Re: Using Pyscripter with Django

2006-06-18 Thread Frankie Robertson
On 16/06/06, Filipe <[EMAIL PROTECTED]> wrote: *snip* > What IDEs are Django developers using out there? Embarrassingly, I'm using Bluefish. Bluefish is a syntax editor with broken highlighting. I use it mainly because I've never found the need for anything more complicated. In general I find it

Re: "tuple' object has no attribute 'get'"

2006-06-18 Thread Frankie Robertson
On 16/06/06, Don Arbow <[EMAIL PROTECTED]> wrote: > > On Jun 16, 2006, at 2:02 PM, Tyson Tate wrote: > > > > > Starting with the latest SVN, a fresh DB, and the following Model: > > > > http://django.pastebin.com/713796 > > > > I get a "tuple' object has no attribute 'get'" error whenever I try >

Re: London/UK Django developer wanted

2006-06-14 Thread Frankie Robertson
Just to let you know, http://code.djangoproject.com/wiki/DevelopersForHire is the correct place for posting this and scouting for available developers. On 14/06/06, Gonzalo <[EMAIL PROTECTED]> wrote: > > Hello we're a small independent design studio based in London looking > for a Django/Python d

Re: howto Django + lighttpd + Windows?

2006-06-13 Thread Frankie Robertson
On 10/06/06, mamcxyz <[EMAIL PROTECTED]> wrote: > > I'm triying to use lighttpd for Windows, so I can test stuff localy and > then upload to linux. > What's wrong with the included django development server? --~--~-~--~~~---~--~~ You received this message because

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

2006-06-09 Thread Frankie Robertson
*snip* > Yay! I can answer a question And I can boringly explain why it's done this way. It's so that in a production environment you serve static files using a different, more lightweight server (without mod_python installed) so as to become a world more efficient. > > > http://www.djangopr

Re: Help with multiple object added on a single form with addManipulator.

2006-06-07 Thread Frankie Robertson
n 06/06/06, Frankie Robertson <[EMAIL PROTECTED]> wrote: > Oops, I just accidently hit send to early there. > > Anyway, when messing around with the manipulators in the shell and > generate them as shown at > http://code.djangoproject.com/wiki/NewAdminChanges I get a dictionar

Re: Nose about future

2006-06-06 Thread Frankie Robertson
On 06/06/06, Nagy Károly <[EMAIL PROTECTED]> wrote: > *snip* > 2. arrival time of 1.0 I believe "When it's ready" is the staple answer. > I do not try to play a sure game (wish i can do), just estimating amount > of troubles. > > Thanks, > Charlie. > > -- > "...s minden mestert kinevettem, ki nem

Re: Help with multiple object added on a single form with addManipulator.

2006-06-06 Thread Frankie Robertson
templates. I've hacked around this for the moment but I would like to know the Right Way(TM) of doing this. Thanks, Frankie On 06/06/06, Frankie Robertson <[EMAIL PROTECTED]> wrote: > Thanks but that's not what I was looking for. I wasn't interested in > the

Re: Help with multiple object added on a single form with addManipulator.

2006-06-06 Thread Frankie Robertson
Thanks but that's not what I was looking for. I wasn't interested in the admin. I was interested in manipulators (http://www.djangoproject.com/documentation/forms/), which allow you access to bits of the admin's framework. I was having trouble writing a form to submit both an object and several re

Re: Wiki or Blogs done with django

2006-05-31 Thread Frankie Robertson
On 31/05/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > > On 01/06/2006, at 3:30 AM, Bryan Murdock wrote: > > > > > Just an aside in response to the request that the blog writers all get > > together and not waste resources, take a look at the code they are > > writing. Actually, take a look at t

Help with multiple object added on a single form with addManipulator.

2006-05-31 Thread Frankie Robertson
I was talking about this on IRC the other day. I want to have a form to add a recipe and several ingredients at once, the edit_inline arguement seemed to be the solution (a outlined at http://code.djangoproject.com/wiki/NewAdminChanges). However, this seems to be removed post M-R. Is there any alt

Re: Can anyone recommend a good graphic artist/ui person?

2006-05-31 Thread Frankie Robertson
On 31/05/06, vinjvinj <[EMAIL PROTECTED]> wrote: > > My website and app needs a new face. Can anyone recomend a good > ui/graphic designer who can help me? This would be paid work. > > VJ > > > > > This isn't really the place, but here are some links to get you started: http://www.getafreelancer

Re: Unhappy, reinventing

2006-05-25 Thread Frankie Robertson
On 25/05/06, Paul Smith <[EMAIL PROTECTED]> wrote: > > > On May 24, 2006, at 9:33 PM, Elver Loho wrote: > > > > > I used to code stuff with TurboGears, which started sucking rather > > fast. I still liked their templating engine, Kid. Sort of. I've also > > tried Zope 3's and Django's, a couple of

Re: Admin gives an error. Even in a new project.

2006-05-22 Thread Frankie Robertson
On 22/05/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: > > Have you installed the admin app? > > Specificaly, did you add : > 'django.contrib.admin', > to INSTALLED_APPS in your settings file? I've done that. What I've ended up doing is unistalling and reinstalling several python related pack

Admin gives an error. Even in a new project.

2006-05-22 Thread Frankie Robertson
I've already asked this in IRC and nobody knew the answer. It is an error occurs even when I start a new project with fairly minimal stuff for just the admin application. (http://django.pastebin.com/731267). This suggests to me that I've somehow messed it up. But I'm using svn and linking the dire