ERROR: null value in column "id" violates not-null constraint

2008-11-28 Thread dbee
So django is supposed to be auto incrementing id when i insert a new value. Instead though, I get ... ERROR: null value in column "id" violates not-null constraint INSERT INTO "mobi1_campaigns" ("userProfile_id", "name", "description", "send_date", "create_date", "campaign_hash",

Re: Simple date issue ...

2008-11-14 Thread dbee
DateField and Postgresql Thanks On Nov 13, 6:53 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > dbee wrote: > > I'm having a simple issue here trying to pull dates out of a database. > > I can only pull out double digit months eg. October, November, > > December but no

Simple date issue ...

2008-11-13 Thread dbee
I'm having a simple issue here trying to pull dates out of a database. I can only pull out double digit months eg. October, November, December but not single ... Database: entry_date 2008-10-12 2008-09-12 DB API: month_1_count = all_sign_up.filter(entry_date__month=9).filter

Can't validate a datetime ...

2008-10-21 Thread dbee
Getting an error when i try to validate a datetime ... help ! Table "public.tarait1_teleint" Column | Type | Modifiers -+-- +--

Enter Valid Date/Time ...

2008-10-17 Thread dbee
I keep getting the same stupid error ... "Enter valid date/time". I've done everything I can think of to let django know that the value in question can be blank ... # Store the people who need reminding of things class TeleInt (models.Model): call_back = models.DateTimeField( null=True,

Need help with newforms ...

2008-10-17 Thread dbee
I need the user to be able to check the box on groups that apply to them. This was really easy to do with oldforms ... VIEWS: # Get all that user's groups groups = Groups.objects.filter(userProfile__user__pk=request.user.id) # Create the FormWrapper, template, context, response

1.0 Transactions and Caching ...

2008-10-14 Thread dbee
I'm upgrading my .97 app to 1.0 and I'm trying to figure out transactions and caching ... In my app at present I have ... def event_editor(request): . return # Defeat caching for the event_editor function event_editor = cache_control(no_cache=True)(event_editor) # The

Weird errors when i transfer from production to local ...

2008-10-12 Thread dbee
I'm bringing my django code base from production server to a clean install on development. The environments are different, but I'm getting some very strange errors that I don't seem to be able to figure out ... I was wondering if anyone had experienced the same issues ... Prod Server :

Django isn't working anymore ...

2008-10-11 Thread dbee
Been using django for sometime - never had any serious issues with it as a framework. Now, all of a sudden it won't allow me to login. I'm beginning to wonder if perhaps someone hasn't hacked the server and done some messing about with the backend Environment: Request Method: POST Request

Deleting user cause integrity error ... violates foreign key

2008-09-19 Thread dbee
I'm trying to delete a user from my admin panel. The system tells me that it causes an integrity error by violating a foreign key constraint ... What causes these kinds of errors ? IntegrityError at /admin/auth/user/28/delete/ ERROR: update or delete on "mot1_campaigns" violates foreign key

Re: Error Accessing User objects from Admin

2008-09-09 Thread dbee
Thanks Karen. Got it :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Error Accessing User objects from Admin

2008-09-09 Thread dbee
I seem to get an error everytime i try to access a user object on the admin panel. It's really annoying ... The pastebin is here ... http://pastebin.com/m71119d2d Any help is greatly appreciated, Thanks --~--~-~--~~~---~--~~ You received this message because

Simple path issue ?

2008-07-25 Thread dbee
This path issue is really frustrating me. I've tried everything i can think of. I'm trying to use the fckeditor module for drupal ... INSTALLED_APPS = ( 'django.contrib.auth' 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites',

Simple path issue ?

2008-07-25 Thread dbee
This path issue is really frustrating me. I've tried everything i can think of. I'm trying to use the fckeditor module for drupal ... INSTALLED_APPS = ( 'django.contrib.auth' 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites',

Simple path issue ?

2008-07-25 Thread dbee
This path issue is really frustrating me. I've tried everything i can think of. I'm trying to use the fckeditor module for drupal ... INSTALLED_APPS = ( 'django.contrib.auth' 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites',

Re: Upload forms with OldForms ...

2008-02-23 Thread dbee
Sorry guys. Brain Freeze. I'm not trying to upload a form, i'm trying to upload a FILE ... oops. On Feb 23, 12:31 pm, dbee <[EMAIL PROTECTED]> wrote: > So I'm trying to upload a form with oldforms, which in itself seems > tricky enough. But I've also got the added 'benefit' of us

Upload forms with OldForms ...

2008-02-23 Thread dbee
So I'm trying to upload a form with oldforms, which in itself seems tricky enough. But I've also got the added 'benefit' of using multiple models ... MODEL: # Store the people who need reminding of things class TeleInt (models.Model): # Which client does this correspond to ?

ProgrammingError at /admin/auth/user/1/

2007-10-21 Thread dbee
I've created a new application with ... django-admin.py startproject mysite Then I've copied over my files from oldapp into the mysite directory and continued to edit and add to my new application from there. I've obviously gone through mysite and changed any database settings, views and

Re: Programming Error: Can't find table from another application ...

2007-10-20 Thread dbee
panel. On Oct 20, 5:56 pm, dbee <[EMAIL PROTECTED]> wrote: > Can anyone explain this behaviour to me ? > > When I try to work with the admin panel on 'Myapp', i get this error > telling me that it can't find an entry in the 'Otherapp' table ? > > Myapp and Otherapp are

Programming Error: Can't find table from another application ...

2007-10-20 Thread dbee
Can anyone explain this behaviour to me ? When I try to work with the admin panel on 'Myapp', i get this error telling me that it can't find an entry in the 'Otherapp' table ? Myapp and Otherapp are two completely different applications. I used some of the same code for both of them though -

Programming Error: Can't find table from another application ...

2007-10-20 Thread dbee
Can anyone explain this behaviour to me ? When I try to work with the admin panel on 'Myapp', i get this error telling me that it can't find an entry in the 'Otherapp' table ? Myapp and Otherapp are two completely different applications. I used some of the same code for both of them though -

Programming Error: Can't find table from another application ...

2007-10-20 Thread dbee
Can anyone explain this behaviour to me ? When I try to work with the admin panel on 'Myapp', i get this error telling me that it can't find an entry in the 'Otherapp' table ? Myapp and Otherapp are two completely different applications. I used some of the same code for both of them though -

Programming Error: Can't find table from another application ...

2007-10-20 Thread dbee
Can anyone explain this behaviour to me ? When I try to work with the admin panel on 'Myapp', i get this error telling me that it can't find an entry in the 'Otherapp' table ? Myapp and Otherapp are two completely different applications. I used some of the same code for both of them though -

Re: Uploading and then accessing files ... ?

2007-10-19 Thread dbee
OK got it thanks - a redirect works fine :-) On Oct 19, 3:14 pm, dbee <[EMAIL PROTECTED]> wrote: > I'm using the Django alias site_media redirect to access static files > on my server. I have an aspect to my django application whereby the > user can upload his own files and th

Uploading and then accessing files ... ?

2007-10-19 Thread dbee
I'm using the Django alias site_media redirect to access static files on my server. I have an aspect to my django application whereby the user can upload his own files and then access those files to include them in newsletters etc... The problem of course is that the user will upload files to

Uploading and then accessing files ... ?

2007-10-19 Thread dbee
I'm using the Django alias site_media redirect to access static files on my server. I have an aspect to my django application whereby the user can upload his own files and then access those files to include them in newsletters etc... The problem of course is that the user will upload files to

Re: Getting contents of a Http Response Object

2007-10-19 Thread dbee
Aha, thanks dude :-) On Oct 19, 12:55 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-10-19 at 04:32 -0700, dbee wrote: > > I'm creating a pdf document dynamically, I need to include barchart > > data in the document. The bar chart data is als

Re: Getting contents of a Http Response Object

2007-10-19 Thread dbee
wrote: > On Fri, 2007-10-19 at 04:32 -0700, dbee wrote: > > I'm creating a pdf document dynamically, I need to include barchart > > data in the document. The bar chart data is also created dynamically > > with report lab. I can get the barchart data at my url ... > >

Getting contents of a Http Response Object

2007-10-19 Thread dbee
I'm creating a pdf document dynamically, I need to include barchart data in the document. The bar chart data is also created dynamically with report lab. I can get the barchart data at my url ... def barchart_interests(request): . #get a GIF (or PNG, JPG, or whatever)

Multi-table lookup ... Pt.2

2007-09-11 Thread dbee
I posted this here before a few days ago but I couldn't get a conclusive answer, so I thought I'd try again. I'm pretty much stuck on this one and I'm getting a weird error that I don't really understand. When the reminders_list in the 'if' statement below gets assigned, there doesn't seem to be

Re: Multi-table lookup ... ?

2007-09-10 Thread dbee
wrote: > dbee wrote: > >Hmm, I'm not entirely sure where you got the campaign.groups_set > >construction there James. There is no campaign.groups_set afaik ... > > Probably from here > :http://djangoproject.com/documentation/db-api/#related-objects > > Did you t

Re: Multi-table lookup ... ?

2007-09-10 Thread dbee
wrote: > On 9/8/07, dbee <[EMAIL PROTECTED]> wrote: > > > If I have a campaign object that has 3 groups in it. And I want to > > find all the reminder objects that are in those groups ... unless of > > course it's a campaign with no groups in it - in which case I'd like &g

Multi-table lookup ... ?

2007-09-08 Thread dbee
# People who need to be reminded class Reminders (models.Model): userProfile = models.ForeignKey(UserProfile) groups = models.ManyToManyField(Groups, blank=True, null=True) campaigns = models.ManyToManyField(Campaigns, blank=True, null=True) # Campaign that needs to be sent out to

Multi-table lookup ... ?

2007-09-08 Thread dbee
# People who need to be reminded class Reminders (models.Model): userProfile = models.ForeignKey(UserProfile) groups = models.ManyToManyField(Groups, blank=True, null=True) campaigns = models.ManyToManyField(Campaigns, blank=True, null=True) # Campaign that needs to be sent out to

Preselected drop-down menu value with oldforms...

2007-05-02 Thread dbee
Guys, I'm trying to preselect a value for a drop down menu by passing that menu a value. Problem is though, that the value comes out preselected AND it also comes out as an ***error beside the drop down menu. I'm entering the value with new_data NOT with errors... It looks something like this

Re: IEPngFix Hack for Django ?

2007-05-02 Thread dbee
Lot's of people turn off javascript ... Anyone with the FF No-script extension will have it off by default Regardless though, the js method doesn't work for css embedded images, so I'm back to square one :-( On 2 May, 13:10, Gerry Steele <[EMAIL PROTECTED]> wrote: > > The only problem

Re: IEPngFix Hack for Django ?

2007-05-02 Thread dbee
Hi RajeshD, Yeah, thanks. The javascript solution is certainly easy to work with. The only problem though, is what about user's without javascript enabled ? The htc file solution is a b**ls to get working. But it's certainly a more robust solution ... I can't seem to get it to work though,

Email error ...

2007-04-30 Thread dbee
So basically I'm sending off an email like this ... send_mail(email_title, email_text, new_data.get('email'), '[EMAIL PROTECTED]') It seems to think that the myaddress email is a list, and it breaks it up and sends letter at a time. So that any reply is addressed to [EMAIL PROTECTED], [EMAIL

IEPngFix Hack for Django ?

2007-04-27 Thread dbee
I can't get the IEPngFix hack to work with django. Basically the hack adds an alpha channel to all pngs on a page so that you can have transparency in your PNG images in IE6. Ordinarily I wouldn't ask a django mailing list this kind of question. But I've tried everything I can think of, and I'm

ERROR: current transaction is aborted, commands ignored until end of transaction block SET TIME ZONE 'America/Chicago'

2007-03-22 Thread dbee
Yes, I've read the transaction docs and the other user group queries on Django users. I'm trying to search for the query list so I can roll it back and see what the problem is. Thing is though, I can't seem to access that list. My app worked fine on the dev server, now on the prod server I've

Mod_python + MySQLdb won't install ...

2007-03-20 Thread dbee
System: Linux 2.6.9-34.0.1.EL #1 Wed May 24 07:40:56 CDT 2006 i686 athlon i386 GNU/Linux OS: CentOS Python: 2.3.4 Mysql: 5.0 I'm having lots of issues trying to get my django server up. It seems that mod_python won't work on my system. When I yum install mysql-python, the package installs fine,

Re: Outputting a default value for my TextField custom form manipulator html input ...

2007-03-16 Thread dbee
Thanks Benedict. I just figured out a way to do what I wanted, and I thought I'd update this thread for completion. If you pass a dict to the form wrapper with the form field results, the FormWrapper will parse the results in as default values ... new_data = {

Outputting a default value for my TextField custom form manipulator html input ...

2007-03-16 Thread dbee
I'm trying to output an account form, with the user's values already in place. So that if they wish to change any value, they can just change the http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---

Re: Malformed Mysql request ...

2007-03-13 Thread dbee
Can someone please help me with this ? I can't get it to work, and I'm just staring at the screen ... On Mar 13, 3:39 pm, "dbee" <[EMAIL PROTECTED]> wrote: > I have a Customers model that I'd trying to add values to from an > oldform custom form manipulator. Howev