Drop down list not seeing newly added record

2009-01-07 Thread jeffhg58
I have a 2 forms. One to add a new author and then another form for Articles which has a drop down list to reference the authors. The behavior I am seeing is that when I add a new author and then go to the New Article form which references the author it does not display the new record. Also, I

Re: Drop down list not seeing newly added record

2009-01-07 Thread jeffhg58
Thanks for your feedback. I will implement the changes that were suggested. -- Original message -- From: Daniel Roseman <roseman.dan...@googlemail.com> > > On Jan 7, 7:47 am, jeffhg58 wrote: > > I have a 2 forms. One to add a new author and

Access production database via development environment

2009-01-20 Thread jeffhg58
I was wondering if anyone has been able to access their production environment via the development environment. Because of the amount of data on the production environment, it would be advantageous to be able to just connect to the production database for query purposes. P.S. I tried modifying

order_by Ignore case

2009-02-11 Thread jeffhg58
I currently have a field which has upper and lower case characters. Is there a way for the django api to ignore case using the order_by. In postgresql sql I was able to convert the field to upper case when doing the sort and the results are what I expected. Thanks, Jeff

order_by foreign key

2009-02-16 Thread jeffhg58
I have seen other posts on this topic but it seems that it was on the old trunk. I am using Django version 1.1 and I am unable to sort by foreign key When I try and execute the following query Result.objects.select_related().order_by('StatusId.Status') I get 0 rows retrieved. Is that the

Admin datetime widgets for non-admin users

2009-03-09 Thread jeffhg58
I am in the process of upgrading my site to Django version 1.1. In the previous version of 0.97 I was using the datetime widgets from the admin. But, since I have upgrade the widgets no longer display if the user does not have access to the admin site. When I login as a user who has admin

SplitDateTimeField error

2007-07-26 Thread jeffhg58
I was wondering if anyone has experienced this problem before. I have a search screen where I use a SplitDateTimeField widget. It seems that I get the following error when I do the is_valid function The error is TypeError at /resultsdb/ expected string or buffer Request Method: GET Request

Re: SplitDateTimeField error

2007-07-26 Thread jeffhg58
Found out my problem. The form declaration should be SplitDateTimeField not DateTimeField Thanks, Jeff -- Original message -- From: jeffhg58 <[EMAIL PROTECTED]> > > I was wondering if anyone has experienced this problem before. > > I have a sea

How to get selected value set in newforms

2007-08-01 Thread jeffhg58
In newforms when I use the choicefield, I haven't been able to figure out how to set the value to say the third value in the drop down list. I tried setting the initial=3 but that did not seem to work. Here is the definition of the choicefield status = forms.ChoiceField(required=False,

Re: How to get selected value set in newforms

2007-08-01 Thread jeffhg58
- Original message -- From: Thomas Guettler <[EMAIL PROTECTED]> > > Am Mittwoch, 1. August 2007 15:58 schrieb jeffhg58: > > In newforms when I use the choicefield, I haven't been able to figure > > out how to set the value to say the third value in the dr

Re: How to get selected value set in newforms

2007-08-02 Thread jeffhg58
Nis, Thanks for the reply. I tried your example and that does not work. Here is the snippet of my code: views.py def displayresults(request, object_id): result = Result.objects.get(pk=object_id) startdatevalue = '' starttimevalue = '' startdatestr = '%s' %

Re: How to get selected value set in newforms

2007-08-02 Thread jeffhg58
I think the problem is related to passing the resultsdict dictionary to the DisplayForms. Once, I did not pass in the dictionary then the initial value works. Jeff -- Original message -- From: [EMAIL PROTECTED] Nis, Thanks for the reply. I tried your example and that

Multi field validation with clean method

2007-08-09 Thread jeffhg58
I have run across an issue trying to implement the clean method. I have 2 fields an annotation type and annotation value. I am trying to validate that if one value is entered the other value cannot be blank or empty. Initially, I tried to implement the clean method at the field level. The

Re: Multi field validation with clean method

2007-08-10 Thread jeffhg58
I was finally able to figure it out as I saw on another post. Instead, of using the RaiseValidation error I did the following: self.errors.update(annotation=ErrorList([u'You must enter an Annotation Type.'])) Thanks for all your help, Jeff -- Original message -- From:

Datetimefield error using form_as_model

2007-08-16 Thread jeffhg58
Hi, I am using a form_as_model with newforms and when I do a save I get the following error message on the form: format is %Y-%m-%d %H:%M:%S. This occurs with the event_date field. Can you someone point me in the right direction to help me resolve this issue. Here are snippets of my models

Re: Datetimefield error using form_as_model

2007-08-17 Thread jeffhg58
be. Thanks, Jeff -- Original message -- From: Malcolm Tredinnick <[EMAIL PROTECTED]> > > On Thu, 2007-08-16 at 05:25 -0700, jeffhg58 wrote: > > Hi, > > > > I am using a form_as_model with newforms and when I do a save I get > > the

Re: windows vista, localhost server lag (very slow), with zonealarm (even if off...)

2007-09-17 Thread jeffhg58
Thanks so much for the info. I have been trying to figure it out why it has been taking so long on my local machine. -- Original message -- From: francois <[EMAIL PROTECTED]> > > Oops, forgot to mention this is obviously for the local web sever on > the vista

Using datepicker outside of admin

2008-10-03 Thread jeffhg58
Before Django 1.0, I was successful able to use the datepicker outside of admin within my own application. But, since the upgrade I get a runtime error with a syntax error on line 1. This error occurs with the following line This error only occurs when the user does not have administrative

Blank content from unit testing

2008-10-30 Thread jeffhg58
I am currently the django test client and I have run across a stumbling block. When I do a get command for my main screen which is get('/resultsdb/ search_form/'), the status code returns a 302 with no content. But, if a do a get on say ('/login/') or a subsequent window besides the main window

302 status code in django test client

2008-10-30 Thread jeffhg58
I am having difficulty trying to test out the content of the main window because it returns the status code of 302. Here is the snippet of my view. So, when I first call the search_form the request falls out of the if request. GET. Does anyone have an idea on how I can test the content of this

Re: Blank content from unit testing

2008-10-30 Thread jeffhg58
-- From: "Karen Tracey" <[EMAIL PROTECTED]> On Thu, Oct 30, 2008 at 10:25 AM, jeffhg58 <[EMAIL PROTECTED]> wrote: I am currently the django test client and I have run across a stumbling block. When I do a get command for my main screen which is get('/

Re: Blank content from unit testing

2008-10-30 Thread jeffhg58
Here is the pasted code. I am wondering how to verify the content of search_form when I initially go to that url http://dpaste.com/87795/ -- Original message -- From: "Karen Tracey" <[EMAIL PROTECTED]> On Thu, Oct 30, 2008 at 11:50 AM, <[EMAIL PROTECTED]> wrote: But,

User Login with Django 1.0

2008-09-25 Thread jeffhg58
I just recently upgraded to Django 1.0, but when I log in with users that I have created I get up a popup window stating syntax error and after I login the clock and calendar objects are lost. Has anyone else experienced this issue? Thanks, Jeff

Activating admin site

2009-03-18 Thread jeffhg58
At the beginning of the urls.py file from django.contrib import admin admin.autodiscover() In my urls.py I changed accessing my admin.site from r'^admin/(.*)', admin.site.root), to (r'^admin/', include(admin.site.urls)), But when I access my admin I get errors when trying to logout the

Admin datetime picker

2009-03-18 Thread jeffhg58
>From converting over to Django 1.1 from 0.97, I had the admin datetime widget displayed on my search screen. With the latest version of django, it seems that the datetime widget only displays if the user is an administrator. I have narrowed down the problem that the javascript catalog is only

Re: django-registration - outputting errors

2009-03-23 Thread jeffhg58
The way I have implemented this is to have to the validation occur at password2. Instead of having the check in clean, I would have the validation in clean_password2. Hope that helps. - Original Message - From: neri...@gmail.com To: "Django users"

Running django test suite

2009-04-16 Thread jeffhg58
I recently installed django 1.1 beta and I needed to run the django test suite. So, under the tests directory I executed runtests.py. I received some errors when trying to execute all the tests. I was expected that all the tests would have passed. I am thinking it might be with my setup. Here are

Re: Running django test suite

2009-04-17 Thread jeffhg58
- Original Message - From: "Karen Tracey" <kmtra...@gmail.com> To: django-users@googlegroups.com Sent: Friday, April 17, 2009 10:46:27 AM GMT -06:00 US/Canada Central Subject: Re: Running django test suite On Thu, Apr 16, 2009 at 1:26 PM, jeffhg58 < jeffh...@comcast.

Re: Running django test suite

2009-04-20 Thread jeffhg58
- Original Message - From: "Karen Tracey" <kmtra...@gmail.com> To: django-users@googlegroups.com Sent: Friday, April 17, 2009 10:46:27 AM GMT -06:00 US/Canada Central Subject: Re: Running django test suite On Thu, Apr 16, 2009 at 1:26 PM, jeffhg58 < jeffh...@

Re: Table or view does not exist - Oracle

2009-04-23 Thread jeffhg58
I am using pretty much the same setup you have except I use cx_oracle 5.0.1. Have you narrowed down what tables are missing? - Original Message - From: "Petry" To: "Django users" Sent: Thursday, April 23, 2009 6:57:45 AM GMT

Update using dictionary

2007-12-16 Thread jeffhg58
Hi, I currently have an update form which contains a dictionary of the field names and values. I was wondering how you perform the update using a dictionary. Here is a snippet of my code def save(self, new_data, event_id): eventdetrec = Events.objects.get(pk=event_id) event_dict = {}

Re: Update using dictionary

2007-12-16 Thread jeffhg58
Just wanted to reply to myself that I fixed my problem. I needed to store all the values from my get into the dictionary Thanks, Jeff -- Original message -- From: jeffhg58 <[EMAIL PROTECTED]> > > Hi, > > I currently have an update form which con

Page not showing correct data

2007-12-25 Thread jeffhg58
Hi, In my site, the user has the ability to update an event. After the event is updated, the user is brought back to the event calendar page. Within the event calendar, there is a link for the event details. The problem I am having is that the event details page is showing the old data, even

Re: Page not showing correct data

2007-12-25 Thread jeffhg58
After reloading the page the browser does not show the new data. Here is the odd thing, if I wait about 10 minutes before clicking on the link then the new data appears. Any suggestions? Jeff -- Original message -- From: l5x <[EMAIL PROTECTED]> > > After reloading

Re: Page not showing correct data

2007-12-29 Thread jeffhg58
Just wanted to let you know that fixed the problem. Thanks so much. Jeff -- Original message -- From: "Karen Tracey" <[EMAIL PROTECTED]> On Dec 25, 2007 9:18 PM, <[EMAIL PROTECTED]> wrote: After reloading the page the browser does not show the new data. Here is the

initializing select date widget

2008-01-13 Thread jeffhg58
Hi, I have a question regarding the selectdatewidget. I am using a datefield for birthdate which is optional. How do you use the selectdate widget to default it to blank or not entered. When I use the selectdate widget, it displays a date of January 1. I am trying to determine whether or not the

Using send_mail seems slow

2008-01-31 Thread jeffhg58
When trying to send email to one user it seems that the send_mail command takes about 6 seconds. Does anyone have any suggestions on how to improve the response time. Also, it seems consistent whether or not I use the development environment or my production web site. Thanks, Jeff

Rendering splitdatetime widget with upgrade

2008-02-03 Thread jeffhg58
I just recently upgrading my trunk to revision 7054 and I noticed that the form I have that uses the splitdatetime widget no longer renders correctly. On my form it displays my field like Start Date/Time:* instead of actually rendering the date and time fields. Here is a snippet of form:

Re: Rendering splitdatetime widget with upgrade

2008-02-03 Thread jeffhg58
Matt, Thanks so much for the info. That fixed my problem Jeff -- Original message -- From: Matt McClanahan <[EMAIL PROTECTED]> > > On Feb 3, 6:30 am, jeffhg58 wrote: > > > I just recently upgrading my trunk to revision 7054 and I noticed that

Calendar widgets not displaying in admin

2007-04-08 Thread jeffhg58
I have recently purchased a new computer with Windows Vista and have encountered the problem that the calendar widgets are not being displayed in the admin site. I was wondering if anyone came across this problem or have any suggestions. I have enabled javascript in my browser as well. Thanks,

Log out problems

2007-04-11 Thread jeffhg58
I am having a problem when I log out from my site. Here is the scenario I am using the @login_required for logging into my site. Then I have the link to log out very similar to the admin pages. The only problem I am having is when I log out and either hit the back button or go to my home page

Re: Log out problems

2007-04-11 Thread jeffhg58
James, Thanks for the explanation. I am going to change my logout to do a redirect Jeff -- Original message -- From: "James Bennett" <[EMAIL PROTECTED]> > > On 4/11/07, jeffhg58 wrote: > > The only problem I am having is when I log

Customer manipular checks

2007-04-13 Thread jeffhg58
Hi, I developed a customer manipulator and several of the fields contain the is_required check. The only thing I am having difficulty with is that when I submit the request and one of the fields is not populated the text of all the other fields are removed. I wanted to keep the text for all the

User authorization using apache

2007-04-16 Thread jeffhg58
I am sure this question has been asked before but haven't been able to find the answer. I am using the django decorator for user authentication. My views has the line @login_required And my urls.py has the line (r'^accounts/login/$', 'django.contrib.auth.views.login'), It works fine in the

Tables not displaying in admin with full-history branch

2007-05-05 Thread jeffhg58
I downloaded the full-history branch and I noticed that my tables were no longer displaying in admin, even when I had the class admin defined within my models.py. Does anyone know how to get back the tables in the admin? Thanks, Jeff --~--~-~--~~~---~--~~ You

Full history branch unable to retrieve audit trail information

2007-05-14 Thread jeffhg58
Not sure if many people have used the full history branch. But, I can see the ChangeLog information via the admin site. But, when I try and get information via the shell I get ChangeLog is not defined. Is there something I need to import to be able to recognize the ChangeLog table. Thanks, Jeff

Re: installing django on vista?

2007-05-26 Thread jeffhg58
I had the same problem with vista. Basically, you need to update the environment variables to where you have python installed. I can only speak to the python being unrecognized. For some reason, it took me a while to get it working correctly. But, in the interim you should be able to use the

Unable to see user id

2007-06-17 Thread jeffhg58
I am having a problem seeing the user id on my web pages. Basically, I am referencing {{ user.username }} in my html template. In my views I have imported from django.contrib.auth.models import User and I am using the login decorator. I have no issues with logging in to the site, just can't seem

Re: Unable to see user id

2007-06-17 Thread jeffhg58
That was the problem. Thanks so much! Jeff -- Original message -- From: Pedro Lima <[EMAIL PROTECTED]> > > Are you sending the RequestContext into the template? > > render_to_response('page.html', RequestContext(request,{}) > > > O

Newforms - attributes for splitdatetimewidget

2007-07-20 Thread jeffhg58
Hi, I am just digging into the newforms functionality. I am looking at the splitdatetimewidget. I am trying to having a different attributes for the first field and the second field, and would like to know how to go about doing it. Here is the snippet of my code calendar_widget =

Drop down not displaying foreign key values

2006-11-12 Thread jeffhg58
Hi, I am relatively new with Django. With the admin interface I have a main table with foreign key table to supporting files. When I try and add a new record, the drop down field is only displaying the value of Status Object instead of the value of the Status field in the supporting table. Not

Populating select field in custom manipulator

2006-11-29 Thread jeffhg58
I am trying to use a customer manipulator to build a search screen. One of my fields is a select field but I get an error to many values to unpack. Any help would be greatly appreciated. views.py class SearchResults(forms.Manipulator): def __init__(self): projects = ['Gen2',

Setting checkbox to check as default value

2006-12-03 Thread jeffhg58
I have a custom manipulator and I am trying to set the checkbox default to checked. For example, my field name is: forms.CheckboxField(field_name="current"), Not sure how you to do it. I tried putting the attribute after the field name which did not work. I also tried right before the

How to default checkboxfield in customer manipulator

2006-12-03 Thread jeffhg58
I am trying to set the checkboxfield default value to checked but not sure how you do it. Here is my formfield for the checkbox forms.CheckboxField(field_name="current"), I tried ading checked="checked" but that did not work. Thanks, Jeff

Calendar widget example

2007-01-02 Thread jeffhg58
I have a search form where I would like to add the calendar widget for the date fields. I have been looking at the admin code but I wanted to know if there was any other examples out there. Looking at some other threads I have implemented these steps 1) add an entry to my site's urlpatterns

Custom Manipulator and update foreign key pointer

2007-01-16 Thread jeffhg58
I have a customer manipulator and I am trying to figure out during the save function how to get a foreign key pointer updated with a new value. Here is my save function: def save(self, new_data): print 'new_data is ', new_data new_status = new_data['status'] newstatusid =

Help using rowcolor with cycle command

2007-02-01 Thread jeffhg58
When I display a row, I am trying to display a row in a specific color. But, I am a bit confused as to how it should work within the cycle command. Here is my line of code. {% for item in result %} {{ item }}{% endfor %} How do you set rowcolors where you want the background of the line to

Storing milliseconds

2007-03-27 Thread jeffhg58
I am using a postgresql database and was wondering if anyone knew how to store milliseconds in the database. I am using a datetime field and when I insert the record the milliseconds is being truncated. Thanks, Jeff --~--~-~--~~~---~--~~ You received this

Re: Storing milliseconds

2007-03-28 Thread jeffhg58
TED]> > > On 3/27/07, Jonas Maurus wrote: > > > > On Mar 27, 7:58 pm, "jeffhg58" wrote: > .. > > > in the database. I am using a datetime field and when I insert the > > > record the milliseconds is being truncated. > > > > I fi

Re: cx_Oracle

2007-04-06 Thread jeffhg58
I ran across the same error and I went searching through some of the fixes and I find it one of the fixes for this problem. Off the top of my head I do not know which fix it was. But, after I got past this error I ran into some other errors. At this point, I had to switch to postgresql until