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",
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
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
Getting an error when i try to validate a datetime ... help !
Table "public.tarait1_teleint"
Column | Type |
Modifiers
-+--
+--
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,
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
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
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 :
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
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
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
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
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',
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',
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',
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
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 ?
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
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
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 -
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 -
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 -
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 -
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
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
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
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
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 ...
>
>
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)
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
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
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
# 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
# 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
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
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
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,
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
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
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
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,
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 = {
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
-~--~~~~--~~--~--~---
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
44 matches
Mail list logo