Re: Inline Form Error After Upgrade to Django 1.3

2011-04-18 Thread Chris Spencer
Awesome, that was it. My old code now works again. Thanks! Chris On Mon, Apr 18, 2011 at 5:47 PM, akaariai <akaar...@gmail.com> wrote: > On Apr 19, 12:17 am, Chris Spencer <chriss...@gmail.com> wrote: > > Thanks. However, changing the line to: > > > >

Re: Inline Form Error After Upgrade to Django 1.3

2011-04-18 Thread Chris Spencer
Thanks. However, changing the line to: if not self.instance.state.adding: results in essentially the same error: AttributeError: 'MyModel' object has no attribute 'state' On Mon, Apr 18, 2011 at 4:48 PM, akaariai wrote: > On Apr 18, 11:08 pm, Chris

Re: Dumping Large Databases

2009-08-11 Thread Chris Spencer
I guess I should have prefixed that by saying my goal is to migrate from MySQL to PostgreSQL. However, I'm having trouble finding a tool to do this, so I thought I'd try Django's backend neutral dumpdata/loaddata feature. Chris On Mon, Aug 10, 2009 at 9:48 PM, Malcolm

Re: Disabling PRG Pattern

2009-04-27 Thread Chris Spencer
On Sun, Apr 26, 2009 at 11:26 PM, Malcolm Tredinnick wrote: > > On Sun, 2009-04-26 at 19:41 -0700, Chris wrote: >> On Apr 26, 7:40 pm, Alex Gaynor wrote: >> > On Sun, Apr 26, 2009 at 7:39 PM, Chris wrote: >> > >> > > I've

Re: Disabling PRG Pattern

2009-04-26 Thread Chris Spencer
On Sun, Apr 26, 2009 at 10:56 PM, Doug B wrote: > > Maybe the APPEND_SLASH setting is causing it (along with a missing > slash at the end of your url)? I've made sure to append the slash to all my urls. Firebug confirms my ajax requests are using the slash-appended url, and

Re: Problem Installing Fixture: Unbound Prefix

2009-03-12 Thread Chris Spencer
On Thu, Mar 12, 2009 at 6:44 AM, Russell Keith-Magee wrote: > > On Thu, Mar 12, 2009 at 8:54 AM, Chris wrote: >> >> I'm using Django 1.0.2, and I dumped out a sample database as XML >> using dumpdata. When I run my unittests using this XML as a

Re: Inserting Into Cleaned_Data Inside a ModelForm

2009-03-07 Thread Chris Spencer
> Now, I cant remember but I believe that if you add missing key data in > cleaned method, giving the name django would expect, you would be able > to just save the form. You could also just manually access the key > field from the cleaned_data and apply it on the model. Unfortunately, this

Re: Inserting Into Cleaned_Data Inside a ModelForm

2009-03-07 Thread Chris Spencer
On Fri, Mar 6, 2009 at 12:57 PM, rajeesh wrote: > > You may change the save_model() method of corresponding AdminClass for > that: > e.g, to set the attribute 'a' of model 'Book' , write inside > BookAdmin.save_model() something like this: > > obj.a =

Re: Using Admin Datepicker in Other Apps

2009-03-01 Thread Chris Spencer
On Sun, Mar 1, 2009 at 11:44 PM, Chris Spencer <chriss...@gmail.com> wrote: > On Sun, Mar 1, 2009 at 10:29 PM, Alex Gaynor <alex.gay...@gmail.com> wrote: > I had known about the widgets.css file, but it still wasn't working. > However, I tried removing all my custom JS/CSS

Re: Using Admin Datepicker in Other Apps

2009-03-01 Thread Chris Spencer
On Sun, Mar 1, 2009 at 10:29 PM, Alex Gaynor wrote: > > > On Sun, Mar 1, 2009 at 10:25 PM, Chris wrote: >> >> On Feb 21, 10:03 am, Alex Gaynor wrote: >> > On Sat, Feb 21, 2009 at 7:48 AM, Chris wrote: >> >

Re: Using Admin From a Sub-Directory

2008-11-16 Thread Chris Spencer
Ah, thanks. Yeah, I included my baseurl in the admin prefix, and added /myapp/media/admin to my modwsgi config and now admin looks perfect. On Sun, Nov 16, 2008 at 12:18 PM, Jeff FW <[EMAIL PROTECTED]> wrote: > > You need a trailing slash after /myapp/media/admin. The final URL > will then come

Re: Password Change Usage

2008-10-10 Thread Chris Spencer
Thanks. On Fri, Oct 10, 2008 at 11:37 AM, Carl Meyer <[EMAIL PROTECTED]> wrote: > RegistrationForm is a normal Form instance. Most errors will be > attached to specific fields, and thus will be in > form.field_name.errors, as documented. Errors not associated with any > particular field are

Re: Password Change Usage

2008-10-10 Thread Chris Spencer
That might be the problem then. I dislike the default markup, so I'm using my own. How do you find if the form as errors? Using http://docs.djangoproject.com/en/dev/topics/forms/ as a guide, I've tried using form.has_errors, form.errors and form.message.errors, but Registration doesn't seem to

Re: Password Change Usage

2008-10-08 Thread Chris Spencer
Yeah, this has been a big let down. What I'd hoped would be a few minutes setting up a basic site framework has turned into several hours wasted on boilerplate. The lack of docs, templates, and strange bugs like these leads me to think that django-registration isn't fully baked. I'm simply

Re: Django-Registration and NewForms Error

2008-10-08 Thread Chris Spencer
Thanks guys, that fixed the problem. On Wed, Oct 8, 2008 at 6:37 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > > Rishabh Manocha wrote: >> On Wed, Oct 8, 2008 at 5:07 PM, Chris <[EMAIL PROTECTED] >> > wrote: >> >> >> I installed django-registration via easy_install,

Re: How to Create Real Foreign Keys

2008-10-01 Thread Chris Spencer
Yep, that was it. Thanks for the insight. On Wed, Oct 1, 2008 at 10:14 AM, Erik Allik <[EMAIL PROTECTED]> wrote: > > Are you using the MyISAM or InnoDB storage type? MyISAM does not > support integrity constraints, afaik. > > Erik > > On 01.10.2008, at 16:44, Chris wrote: > >> >> I'm running

Re: Persistent Global Imports

2008-09-14 Thread Chris Spencer
One minor question. I'd like to test multiple mod_wsgi Django apps locally, each accessed like localhost/app*. Can I simply use the above directives for each app in httpd.conf without using a VirtualHost for each app? Chris On Sun, Sep 14, 2008 at 11:43 PM, Chris Spencer <[EMAIL PROTEC

Re: Persistent Global Imports

2008-09-14 Thread Chris Spencer
Nevermind. I just found your post on this issue at http://code.google.com/p/modwsgi/wiki/ConfigurationIssues On Sun, Sep 14, 2008 at 11:32 PM, Chris Spencer <[EMAIL PROTECTED]> wrote: > Ok, so this is what I put at the bottom of my httpd.conf: > > WSGIDaemonProcess myapp process

Re: Persistent Global Imports

2008-09-14 Thread Chris Spencer
wrote: > > > > On Sep 12, 10:35 am, "Chris Spencer" <[EMAIL PROTECTED]> wrote: >> On Thu, Sep 11, 2008 at 6:16 AM, Graham Dumpleton >> >> >> >> <[EMAIL PROTECTED]> wrote: >> > Be aware that Apache/mod_wsgi in embedded mode on

Re: Persistent Global Imports

2008-09-11 Thread Chris Spencer
On Thu, Sep 11, 2008 at 6:16 AM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Be aware that Apache/mod_wsgi in embedded mode on UNIX is going to be > multiprocess. Thus where you think it is being loaded on every > request, it is more likely just the result of the various processes > loading the

Re: Persistent Global Imports

2008-09-11 Thread Chris Spencer
On Thu, Sep 11, 2008 at 2:19 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Chris schrieb: >> I have an application that uses some large packages, such as Wordnet, >> and the imports can take awhile. Is there a mechanism in Django to >> persist imported package across requests? I'm running