Re: Django critter helps us code at the speed of light.

2009-03-17 Thread Eric Walstad
On Mar 16, 10:00 am, Klowner wrote: > That's just awesome. > > Quick and dirty 3D version done in blender > :)http://img.skitch.com/20090316-82bsdnfjm15xarx3t9c1e4a7q9.png > > - Mark Lucinda says: "I really like the 3D version; it's brilliant." -ew

Re: Django critter helps us code at the speed of light.

2009-03-17 Thread Eric Walstad
On Mar 16, 5:29 pm, Scott Lyons wrote: > Based on mrts' drawings, I made two backgrounds. I'm open to > suggestions or requests. > > http://www.flickr.com/photos/damagedgenius/3361587194/ > > and > > http://www.flickr.com/photos/damagedgenius/3361587300/in/photostream/

Re: Django critter helps us code at the speed of light.

2009-03-17 Thread Eric Walstad
On Mar 16, 11:00 am, Klowner wrote: > Quick and dirty 3D version done in blender > :)http://img.skitch.com/20090316-82bsdnfjm15xarx3t9c1e4a7q9.png Oooh, very cool! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Django critter helps us code at the speed of light.

2009-03-12 Thread Eric Walstad
On Mar 12, 1:17 am, Andrew McCloud wrote: > My first time using illustrator. My original goal was to make a nice > wallpaper but couldn't get illustrator to behave. Thanks Andrew, Lucinda thinks your work is "so awesome!" She printed it out and has it taped to the wall next

Django critter helps us code at the speed of light.

2009-03-11 Thread Eric Walstad
It occurred to me that my 9yr old daughter has been listening to me talk about Django for almost half of her life. She sees me reading books and blogs about Django. She sees me wear my green DjangoCon t- shirt. For the last 4 years Django's had some influence on her, too. Last night she was

Re: sql log

2007-03-26 Thread Eric Walstad
Hey Greg, gdonald wrote: > On Mar 13, 5:03 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: >> http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running > > When I try this I get nothing: > >> python manage.py shell > In [1]: from settings import * > >

Re: Pycon Djangonauts

2007-02-24 Thread Eric Walstad
Hey James, James Bennett wrote: > On 2/23/07, Eric Walstad <[EMAIL PROTECTED]> wrote: >> George Song is organizing a(nother) Django show-n-tell for tomorrow >> (Saturday, 2/24/7) at 4:05PM. Tonight he demo'ed a couple apps he's >> worked on recently. Very cool, inno

Re: Pycon Djangonauts

2007-02-23 Thread Eric Walstad
Hey David and any other PyCon Djangonauts... David Cramer wrote: > Anyone else around who's interested in meeting up before Monday? We > are staying in the event hotel and I'm very interested in talking with > other Django or even Python developers who manage high load, or even > smaller

Re: Aggregate stats for recordsets...best practices?

2007-02-15 Thread Eric Walstad
Hey Tim, Tim Chase wrote: > For reporting purposes, we're hoping to summarize a variety of > fields across volumes of data. I know recordsets currently have > a count() method that returns the number of rows. However, I'm > trying to find a good way of obtaining max/min/sum/avg results >

Re: Django bug?

2007-02-15 Thread Eric Walstad
[EMAIL PROTECTED] wrote: > I don't know if I'm just confused or if it's a bug in Django, but > here's a little bit of code I put in a shell: > sunday = datetime.date(2006, 12, 3) saturday = sunday + datetime.timedelta(days=6) next_sunday = sunday + datetime.timedelta(days=7)

Re: Django meetup in San Francisco this Thursday?

2006-12-18 Thread Eric Walstad
Adrian Holovaty wrote: > Hello to any Bay Area Django folks out there -- > > I'll be in San Francisco later this week. Anybody interested in having > a Django meetup Thursday night? > > Adrian > Adrian, You might also consider broadcasting this to the BayPiggies group. There are a Django

Re: Django meetup in San Francisco this Thursday?

2006-12-18 Thread Eric Walstad
Adrian Holovaty wrote: > Hello to any Bay Area Django folks out there -- > > I'll be in San Francisco later this week. Anybody interested in having > a Django meetup Thursday night? > > Adrian Ooh, a meetup would be awesome. Depending on the time of day (I'm booked through the early evening),

Re: search engine

2006-10-17 Thread Eric Walstad
Hi Enquest, Enquest wrote: > How hard is it to set up a search engine with Django? Easy! Just search the model documentation for 'search_fields'. That is, the admin interface has this feature built in, you just need to tell it which fields you want searched. > In PHP I used to explode,

Re: anyone see this problem in psycopg2 i m unable to debug this

2006-09-30 Thread Eric Walstad
On Friday 29 September 2006 07:31 pm, a wrote: > this sounds serious how do we implement rollbacks > i use postgres 8.1 > thanks > Anil --~--~-~--~~~---~--~~ You received this message

Re: anyone see this problem in psycopg2 i m unable to debug this

2006-09-29 Thread Eric Walstad
anil wrote: > psycopg2.ProgrammingError : current transaction is aborted, commands > ignored until end of transaction block Anil, I get these errors when a call to psycopg fails and the transaction in which it failed is not rolled back. All further database actions will fail until you roll

Re: Mac vs. PC for Django work.

2006-09-16 Thread Eric Walstad
Hey Cheng, On Friday 15 September 2006 17:11, Cheng Zhang wrote: > On Sep 13, 2006, at 11:21 PM, Eric Walstad wrote: > > One of the developers on my team works on a Mac, while the other > > two of > > us are on Linux. Our apps are deployed on Linux PC machines. The Mac

Re: Serving multiple projects based on different Django versions

2006-09-15 Thread Eric Walstad
James Bennett wrote: > On 9/15/06, Rob Hudson <[EMAIL PROTECTED]> wrote: >> We have an active project we're coding against 0.95. Fast forward to 6 >> months or so after 1.0 is released and we have a few projects underway >> based on 1.0. We have no time or money to bring the old project up to

Re: Mac vs. PC for Django work.

2006-09-13 Thread Eric Walstad
keukaman wrote: > I am in the market for a notebook computer that I will be doing my web > design work on. Could I get some comments related to which is better > for Django work - P.C. or Mac, as well as some pros & cons of each? > Thanks. One of the developers on my team works on a Mac, while

Re: Django to replace in-house PHP framework [speculative][long]

2006-09-05 Thread Eric Walstad
Django apps that I expect to work and it usually does. Django is transparent in this way. If there's a Python library I need, I can use it. Django is python - import what you like, do what you like. Good luck, have fun, Eric. -- _ Eric Walstad 740 Clementina Street Sa

Re: A bit puzzled on how to create the 'complete' website

2006-09-05 Thread Eric Walstad
Hey Laundro, On Tuesday 05 September 2006 06:56, [EMAIL PROTECTED] wrote: > Do I need to create one big view.py that sends all relevant data to one > large template? (I'd imagine not). Is there a way to 'cascade' > view.py's, so that some sort of website-logic decision script can > decide which

Re: search in django

2006-08-17 Thread Eric Walstad
On Thursday 17 August 2006 16:13, Adrian Holovaty wrote: > On 8/17/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > > http://code.djangoproject.com/ticket/2559 > > > > Implements ^ (istartswith), = (iexact), and @ (search). No prefix > > is icontains (current behavior). > > Sweet! Thanks for the

Re: Where to store large SQL queries code

2006-08-11 Thread Eric Walstad
Another option, if you are using PostgreSQL or other db that supports VIEW's, is to store your queries as db VIEWs and then write Django models that reference those views. Then you still get the yummy goodness of using the django dbapi to access the "objects" returned by your messy

Re: Using Swish-e with django...

2006-07-31 Thread Eric Walstad
On Monday 31 July 2006 14:07, Istvan Albert wrote: > > I am expecting an answer like: "You are crazy: db native searches will > > always be faster" > > You are crazy: swish-e searches will always be faster. > > Swish-e was created for indexing/searching documents. The only issue at > hand is

[ot] Using Swish-e with django...

2006-07-28 Thread Eric Walstad
Hi all, I saw the recent posts about Search Functionality and how some of you, Adrian included, are using it for searching. I'd like your opinion on whether Swish-e would make sense for searching/indexing 12 varchar(<=255) fields in a large table (~10M records). The search is currently

Re: Loading an url takes 60 sec.

2006-07-28 Thread Eric Walstad
On Friday 28 July 2006 06:42, Maciej Bliziński wrote: > So the delay probably comes from the reverse-DNS queries. The machine > asks a question (who is asking me to serve a webpage? 192.168.0.1? who > is 192.168.0.1?) and waits 60s for the answer. This is where I'm putting my money. I vaguely

Re: Importing several thousand records into a database

2006-06-13 Thread Eric Walstad
On Tuesday 13 June 2006 11:44, keukaman wrote: > I'd like to import several thousand records, in CSV format, into an > existing postgres table. Does anyone know a utility that would allow me > to do this? Hey keukaman, I had to struggle with a system of regularly importing around 1.5 million

Re: rss feeds from django handled differently by firefox

2006-06-12 Thread Eric Walstad
On Monday 12 June 2006 15:17, Bryan Murdock wrote: > OK, it's the same with Internet Exploder. Here's two links to click > on and see if it's the same for you: > > Displays nicely: > > http://www.blueskyonmars.com/?feed=rss=19 > > Doesn't: > > http://www.djangoproject.com/rss/weblog/ > > Bryan

Re: FileField problem

2006-05-31 Thread Eric Walstad
On Wednesday 31 May 2006 11:07, mahakala wrote: > Hi, Eric, > it is > > drwxrwxrwx 2 root root 4096 Jun 1 01:10 demo > > and > > drwxrwxrwx 2 root root 4096 Jun 1 01:10 opt > > thks. Does /opt/demo/test.txt already exist? If so, what are the permissions on it? I think what I'd try is: Make

Re: FileField problem

2006-05-31 Thread Eric Walstad
On Wednesday 31 May 2006 09:57, mahakala wrote: > when I use the file > upload, the system says IOError, Permission denied. I have modified the > upload folder to be writable for everyone. Any hints how to solve this? > [Errno 13] Permission denied: '/opt/demo/test.txt' Hi mahakala, What is

Re: use admin info in non-admin page

2006-05-26 Thread Eric Walstad
On Friday 26 May 2006 14:34, tsnyder wrote: > Hi all, > > I'd like to add a "last modified on" bit to one of the pages generated by > django. I have noticed that the admin app keeps track of all the changes > that are made. Is it possible to access that information and display it on > one of my

Re: Problems with stepping with the tutorial

2006-05-26 Thread Eric Walstad
On Friday 26 May 2006 07:26, kender wrote: > /usr/lib/python2.3/site-packages/django/bin/django-admin.py > startproject new $ python Python 2.3.5 (#2, Aug 30 2005, 15:50:26) [GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more

Re: Admin, display related 'last modified' field

2006-05-25 Thread Eric Walstad
On Thursday 25 May 2006 10:34, Joseph Kocherhans wrote: > On 5/25/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > > Yes, I suspect this is more than a one-off issue. I'd also like to see > > the last modified timestamp on the Project's related ProjectFiles. Can > > yo

Re: Admin, display related 'last modified' field

2006-05-25 Thread Eric Walstad
On Thursday 25 May 2006 09:50, Joseph Kocherhans wrote: > On 5/25/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > > My 'Projects' admin form has 'Notes'. Notes have a non-user-editable > > 'note date' DateTimeField. I haven't been able to figure out how to get > > the

Admin, display related 'last modified' field

2006-05-25 Thread Eric Walstad
Hi all, My 'Projects' admin form has 'Notes'. Notes have a non-user-editable 'note date' DateTimeField. I haven't been able to figure out how to get the note date to get displayed in the admin interface in such a way that it's visible but not editable. Any ideas? Thanks in advance. Below

Re: Updating in bulk

2006-05-23 Thread Eric Walstad
supposed to run > 24/7) or do I have to shut it down. > > Thanks, > > chris > > On 5/23/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > > On Tuesday 23 May 2006 12:17, Christian Schneider wrote: > > > Hi all, > > > > > > is it possible to

Re: Updating in bulk

2006-05-23 Thread Eric Walstad
On Tuesday 23 May 2006 12:17, Christian Schneider wrote: > Hi all, > > is it possible to update tables in bulk, that is in SQL "update jobs set > status=2 where worker='X'"? I'm using django from a backend server process > and speed is a bit of an issue here, so I'd like to avoid changing and >

Re: Post data for multi step form

2006-05-19 Thread Eric Walstad
On Friday 19 May 2006 10:07, tomass wrote: > Hi Folks, > > I'm sure there's a better solution for this, just not sure what it > is... > > I have a 4 step form and I'm currently capturing all posted data > between each step and then re-posting it through hidden input fields > and recapturing it at

Re: file upload in 0.91 - form widget connection??

2006-05-12 Thread Eric Walstad
On Friday 12 May 2006 16:56, Frank Miles wrote: > Am I missing something obvious?  I'd appreciate any insights, including any > specific documentation.  So far, pouring over the docs and user-lists > hasn't yielded the insight I still lack. > > TIA! > -frank Hi Frank, I too amd on 0.91.

Re: How to prevent a page from being cached?

2006-05-12 Thread Eric Walstad
On Friday 12 May 2006 11:32, Luke Plant wrote: > On Thursday 11 May 2006 10:13, PythonistL wrote: > > Is there a way how to prevent a page from being cached? > > from django.views.decorators.cache import never_cache > > @never_cache > def myview(request): > # etc > > I'm not sure if it's

Re: Django users meetup in Palo Alto on April 27th

2006-05-10 Thread Eric Walstad
On Wednesday 10 May 2006 02:09, [EMAIL PROTECTED] wrote: > Eric, > > could you be a bit more specific about what kind of "J2EE" the > application was originally written in? > > Was it using Struts, Spring, EJBs (which version), Hibernate, JSF...? > Or Just plain old JSPs+Servlets? > >   S. Hi

Re: instant django

2006-05-06 Thread Eric Walstad
On Saturday 06 May 2006 09:50, [EMAIL PROTECTED] wrote: > Anyone interested in a django project generator I just hacked up? Take > a look at > http://ross.lazarus.googlepages.com/dJingle.py > > It's a python program that loads enough django to create a complete > project - it takes a delimited

Render dictionary keys and values in a template?

2006-05-04 Thread Eric Walstad
Is it possible to iterate over a dictionary in a django template, displaying the dictionary values, without knowing the dictionary's keys beforehand? I want to simply list keys and values of a dictionary passed into a template, but I haven't been able to figure out how. I'd like to do

Re: DB connections never go away?

2006-05-04 Thread Eric Walstad
On Thursday 04 May 2006 12:26, Richie Hindle wrote: > [Greg] > > > I think you're right, Richie. I applied the patch just in case I used > > threads at some point, like maybe if I used Django's database layer in > > some context other than a web server. > > OK, thanks. That's a relief! I

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread Eric Walstad
On Tuesday 02 May 2006 11:46, Eric Walstad wrote: > # svn switch \ > http://code.djangoproject.com/browser/django/tags/notable_moments/pre-magic-removal Oops. Replace /browser/ with /svn/: # svn switch \ http://code.djangoproject.com/svn/django/tags/notable_moments/pre-magic-removal Dr

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread Eric Walstad
For those of us cast off to drift with the floating sargasso of 'pre-magic-removal', this way to the life raft: # cd /path/to/django_src # svn switch \ http://code.djangoproject.com/browser/django/tags/notable_moments/pre-magic-removal [...] # svn info Path: . URL:

Re: Django users meetup in Palo Alto on April 27th

2006-04-28 Thread Eric Walstad
Jacob, Thanks very much for organizing, and paying for, the dinner last night. It was a pleasure meeting you and the other guys that showed up. I enjoyed the lively conversations. At dinner I mentioned the application that we recently rolled out, the California Instant Rebates application

Re: Forking a new process

2006-04-25 Thread Eric Walstad
On Tuesday 25 April 2006 06:52, tomass wrote: > Well, basically I have processes that could take minutes to > execute, and I'd like to background them, serve up a page showing > the status, and then allow users to view the output once they've > completed. > > Thanks, Tom mod_python has/had a

Re: Overthinking urls.py?

2006-03-27 Thread Eric Walstad
On Monday 27 March 2006 13:23, Doug Van Horn wrote: > When drawing a link to that view in HTML from another app I would > 'hard code' that URL as, say, 'href="/foo/bar/99"'. > > Now say I come along and change my foo application, such that the > URL is newly defined as, '^quux/\d+/bar/$'.  

Re: numeric formatting

2006-03-24 Thread Eric Walstad
On Friday 24 March 2006 12:23, Jacob Kaplan-Moss wrote: > > I don't think that python built-in formatting can do this. (Am I > > wrong?) > > Actually, locale.format will do it for you, IIRC. >>> import locale >>> locale.setlocale(locale.LC_ALL, '') 'en_US.UTF-8' >>> locale.format("%d", 1234567,

Re: Advice on developing with django for a team of 10+

2006-03-23 Thread Eric Walstad
On Thursday 23 March 2006 09:23, tonemcd wrote: > Oooh, now that's neat. My own tinkering with svn to ignore .pyc files > hasn't worked out so well... > > % svn proplist > Properties on '.': > svn:ignore > % svn st > M magic/site1/modeltest/models.pyc > > hmmm... > I just make sure I

Re: Advice on using model to bulk/batch load database

2006-03-23 Thread Eric Walstad
DavidA wrote: > I am prepopulating my database with data from a number of flat files. > I've written a small script to do this using my model class. While this > works, there are a couple of kludges I made to get it to work and I was > hoping someone could advise my on a better way to do this.

Re: hi, Plz tell what we use in place of scanf like in C, what is in the case of Python

2006-03-22 Thread Eric Walstad
Kartikeya Sinha wrote: > hi, Django Users > i am Kartik from INDIA > i want to know that what i can use the statment of scanf like in C we > use it to get input from the user. so which statment we can use to take > values from the user in Python... > plz do help me out > > \by $ python

Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Eric Walstad
On Thursday 16 March 2006 13:48, oggie rob wrote: > You also have to consider data - coordinating data changes can be > tricky within a team. You should at least have a policy on data in the > servers (i.e. do developers have to have a "filled" database or can > they work with an "empty" one), as

Re: Advice on developing with django for a team of 10+

2006-03-16 Thread Eric Walstad
On Thursday 16 March 2006 09:22, tonemcd wrote: [...] > 3. People run their own local django installations, and commit changes > to a development server for testing before those changes are sent to > the deployment server. This means each individual user machine has to > have access to the

Re: login page

2006-03-10 Thread Eric Walstad
On Friday 10 March 2006 13:30, layik wrote: > this might be stupid to ask but I dont know what (*args) and (**kwargs) > mean at all! It's not stupid. It's common in the Python world to use * and ** to send multiple arguments and keyword arguments to a function. Hopefully these python

Re: Django in Boo

2006-03-03 Thread Eric Walstad
On Friday 03 March 2006 14:45, wizeman wrote: > If you don't know Boo, here are some of the main features: > > - Python-like syntax > - Power of static typing with the ease-of-use of type inference > - It's compiled, so type mismatches are caught right after changing > something > - It runs on

Re: Can't Get mod_python script running

2006-02-16 Thread Eric Walstad
Hi treelife, On Thursday 16 February 2006 06:27, treelife wrote: > I need to run Django, but can't get past mod_python.  I'm getting and > internal server error when | run the following mod_python script. > Script: > > from mod_python import apache > > def handler(req): >     req.content_type =

Re: Request for ideas

2006-02-15 Thread Eric Walstad
On Tuesday 14 February 2006 19:38, Malcolm Tredinnick wrote: > Having been tooling around with Django for some months now, primarily > on little projects for my own use, I wanted to write up some of the > things I've learnt. I actually like doing documentation, so I want to > do something useful

Re: Class Methods in Model?

2006-02-14 Thread Eric Walstad
On Tuesday 14 February 2006 10:23, Roberto Aguilar wrote: > Hello, > > I have a model called Invitation that I would like to have a method > called make_rsvp_code. In the model I define it as such: > > class Invitation(meta.Model): > [...] > > def make_rsvp_code(self, invitation): >

Re: Deleting ForeignKey Delets my Object!

2006-02-09 Thread Eric Walstad
On Wednesday 08 February 2006 22:00, Jonathan Ellis wrote: > On 2/8/06, Siah <[EMAIL PROTECTED]> wrote: > > I have a model similar to: > > > > class Phone(meta.Model): > > number = meta.CharField(maxlength=50, null=True) > > > > class Contact(meta.Model): > > phone =

Re: multiple inheritance?

2006-01-31 Thread Eric Walstad
Hi Jason, On Tuesday 31 January 2006 09:36, [EMAIL PROTECTED] wrote: > hi, > > I want to do something like this: [...] > class Foo(Taggable, Noteable): > name = meta.CharField(maxlength=255) > > def __repr__(self): > return self.name > > class META: > admin =

Re: FileField :: mx file size

2006-01-30 Thread Eric Walstad
On Sunday 29 January 2006 20:29, arthur debert wrote: > is there a way to check for this BEFORE the file > is uploaded? On Monday 30 January 2006 08:15, Adrian Holovaty wrote: > On 1/30/06, tonemcd <[EMAIL PROTECTED]> wrote: > > So does this happen *before* the file is uploaded - I mean when the

Re: How do I get POST variables in my template

2006-01-26 Thread Eric Walstad
On Thursday 26 January 2006 09:43, tonemcd wrote: > I guess what I was after was functionality like in > Zope, where the entire HTTP Request object is dumped, along with > environment and other variables. GET and POST are all expanded out too. > With the Zope PageTemplate code that Stefan

Re: Admin CSS in mod_python vs. runserver

2006-01-24 Thread Eric Walstad
On Tuesday 24 January 2006 11:10, Darryl Caldwell wrote: > Hi, > > When I connect to the admin system to my app via mod_python I am > not getting the css, images, or javascript. But when I run it using > the development server (python manage.py runserver) id do. > > Why is this? > > -D Hi

Re: get_list not showing up

2006-01-22 Thread Eric Walstad
On Sunday 22 January 2006 20:36, [EMAIL PROTECTED] wrote: > class RateFunction(meta.Model): ... > >>> from django.models.foundation import RateFunction from django.models.foundation import ratefunctions ratefunctions.get_list() Note that the Django magic (case change, pluralization, and much

Re: Admin functionality available on public site

2006-01-19 Thread Eric Walstad
On Thursday 19 January 2006 13:15, [EMAIL PROTECTED] wrote: > I was wondering what would be the > easiest and most portable way to add selected admin functionality to my > public site, i.e. I would like certain apps to be fully editable by > authenticated users without directing them to admin

Re: Preserving data through db updates/changes

2006-01-18 Thread Eric Walstad
Luke Skibinski Holt wrote: ... > I'm just looking for a quick way to update my models in the development > stage while keeping test data. Hey Luke, I keep sample/test data in sql files and have a script that reloads that data into my database. The script: - recreate the app's database

Re: How to setup WingIDE with Django?

2006-01-18 Thread Eric Walstad
On Wednesday 18 January 2006 09:30, den1jay wrote: > Can anyone please provide a solution to my question, thanks in advance. > > Jay. Jay, Have you tried running django-admin.py in interactive debug mode from within WingIDE? Eric.

Re: Unit testing and a "Controller" layer ...

2006-01-15 Thread Eric Walstad
Hey Zeb, On Sunday 15 January 2006 13:54, ZebZiggle wrote: > Hi again, > > I'm messing around with my Model and my views and putting a 'unittest' > jig around what I'm building. Certainly, I don't want to test at the > view layer (passing in HttpRequests and getting back HttpResponses), I looked

Re: Django, mod_python error

2006-01-13 Thread Eric Walstad
On Wednesday 11 January 2006 14:53, [EMAIL PROTECTED] wrote: > ImproperlyConfigured: Error importing middleware > django.middleware.sessions: "No module named resumes" Let's see your settings.py file, particularly the MIDDLEWARE_CLASSES part.

Re: Duplicate object

2006-01-11 Thread Eric Walstad
On Wednesday 11 January 2006 19:00, Mike wrote: > Hi, > > How do I duplicate objects? Save_as style. > > Something like... > a=choices.get_list()[0] > a.poll_id = 2 > a.save() > > Except not to update the previous record > > Thanks, > Mike The following approach ('shallow' copy) has worked well

Re: getting csv output (easily)?

2006-01-09 Thread Eric Walstad
On Monday 09 January 2006 08:31, tonemcd wrote: > Hi all, > I'm trying to graft additional functionality onto an admin site I have > running and decided that CSV was a good start... > > I have a urlconf that does this; > (r'^CSV/$', 'djangomysql.apps.subjcentre.views.change_list'), > > and

Re: Debugging a production app

2006-01-07 Thread Eric Walstad
On Saturday 07 January 2006 02:17, WSobczuk wrote: > I'm not saying I wnat to send information to users, I'm saying I want > it logged (at least to stdout is it *that* hard?). And I'm not keen on > putting down my email server when I publish some broken code and get > 1 error emails. Email

Re: Migrating existing data into Django models

2005-12-06 Thread Eric Walstad
On Tuesday 06 December 2005 12:01 pm, tonemcd wrote: > The primary keys in the > tables vary, but are mostly varchar. [...] > It seems though that Django uses ints for primary keys quite > extensively, and I guess that will cause some problems with (say) > creating new entries using the admin

Re: Uploading a file

2005-12-05 Thread Eric Walstad
On Monday 05 December 2005 10:47 am, PythonistL wrote: > Try reading this. It might help.

Re: Using strftime() in datetime fields

2005-11-11 Thread Eric Walstad
On Friday 11 November 2005 17:46, Pedro Furtado wrote: > > Turn it into a date, datetime or time object first, then format > > it. Like the traceback says, strings don't have strftime > > attributes/methods. > > But it already is a datetime object. Not according to the traceback you posted. -E

Re: serving PDF

2005-09-30 Thread Eric Walstad
I second that emotion. -E

Re: Table-less model as base class?

2005-09-20 Thread Eric Walstad
Hi Alberto, When I tried this, it didn't work. The classes defined in the other module were subclasses of meta.Model. In other words, I want to have my base class define database fields that will be inherited by the derived classes. Can you show an example of how you made it work? Thanks,

Re: Table-less model as base class?

2005-09-19 Thread Eric Walstad
Hi Adrian, Please let me know if you are interested in my previous patch for ticket 419. To summarize, it modifies django/core/meta/__init__.py to: 1. check for a (new) meta attribute "no_table" 2. if no_table is true, keep the model class out of the module's list of "_MODEL"s The result

Re: Table-less model as base class?

2005-09-18 Thread Eric Walstad
Adrian Holovaty wrote: > On 9/18/05, Eric Walstad <[EMAIL PROTECTED]> wrote: [...] > > Is it possible to do what I want, move common fields to a super class, > > without generating a table for that super class? > > It's not currently possible, but that exact functiona