dict objects are unhashable

2007-10-10 Thread kevinski
Can someone help me with the following error. It occurs when I restart Apache and try to load the Admin page. When I refresh, the Admin page comes up, however the Documentation, Change Password, and Log Out links call http://localhost/admin/. I reinstalled Django, but it did not help. TypeError

Re: dict objects are unhashable

2007-10-10 Thread kevinski
Honestly, I do not know what that means. How do I check this? On Oct 10, 4:41 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > > > > Can someone help me with the following error. It occurs when I rest

Re: dict objects are unhashable

2007-10-10 Thread kevinski
+)/$> self On Oct 10, 4:43 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > > > > > > > > Can someone help me with the following error. It occurs when I restart > > Apache and try to loa

Re: dict objects are unhashable

2007-10-11 Thread kevinski
You were right the problem was in the urls. Thank you so much for your help! --~--~-~--~~~---~--~~ 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

Problem with "auto_now_add" in Admin interface

2007-11-08 Thread kevinski
I am building a simple wiki and I am having trouble with my models: from django.db import models class Wikipage(models.Model): title = models.SlugField(primary_key=True) creator = models.CharField(maxlength=25) post_date = models.DateTimeField(auto_now_add=True) class Admin:

Re: learning django and python

2007-11-12 Thread kevinski
This is also a decent resource for learning the basics of Python quickly. http://www.ibiblio.org/obp/thinkCSpy/index.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Many to One - Requriring 2 fields to be different

2008-11-19 Thread kevinski
I'm currently going through the "Learning Website Dev with Django" book, using Django 1.0.2/Python 2.5/SQLite. There is an issue stumping me. The book includes a "friendship" model which includes 2 foreign keys set to User model: class Friendship(models.Model): from_friend = models.ForeignKey(

Re: Many to One - Requriring 2 fields to be different

2008-11-19 Thread kevinski
['from_friend'] to_friend = self.cleaned_data['to_friend'] if from_friend == to_friend: raise forms.ValidationError('Please select two different friends.') return to_friend On Nov 19, 11:18 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > kevinski wrote

Image Field Validation

2009-07-14 Thread kevinski
Hello, I am using 3 image fields in my model form. When I browse for images and submit, the images are uploaded with no problem. When my form does not validate, error messages appear for invalid fields and correct fields stay in tact, however my image paths disappear and I am required to browse

Re: Image Field Validation

2009-07-14 Thread kevinski
Thanks Michael, I had no idea of this standard. Making a form for images on a separate page will not be an issue. Your help is greatly appreciated, Kevin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Could I use django as a wiki replacement?

2007-11-27 Thread kevinski
If you are interested, here is a simple Wiki I threw together a few weeks ago that allows html markup. I am still somewhat of an amateur, so there are probably a thousand better ways to do this, but feel free to use it as an example. URLs urlpatterns += patterns('project.wiki.views',

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-10 Thread kevinski
A little over a year ago, I was in your shoes. Microsoft just didn't do it for me anymore, and I wasn't sure where to turn. A lot of people here are recommending Ubuntu, but as an individual that was not too long ago in your situation, and has quickly developed a decent knowledge of Linux server

Re: Shopping cart

2008-01-02 Thread kevinski
http://code.google.com/p/django-cart/ A much shorter learning curve than Satchmo, but a fraction of the functionality. On Jan 2, 9:37 am, [EMAIL PROTECTED] wrote: > Hi all, > Is there a good python shopping cart that works well with django? > Thanks, > > Jorge Hugo Murillo > >       >

Re: How to make a simple employee attendance management system using Django?

2008-02-13 Thread kevinski
>i have been asked to make a simple application that stores >the "in-time" and "out-time" of employees everyday Manual imput (e.g. a form for employee id and password) would not be too hard, just watch out for employees punching their late friends in. Swipe card or biometrics might get a bit

Re: Issues with IE7 and {% for %} {% endfor %} tag

2008-02-21 Thread kevinski
> This iterates fine in Firefox, but in IE7 it keeps coming up blank. > I can't see any html issues.  I am working off my localhost.   Is this > a IE7 security issue or something else I have not thought of? I had a the similar problem once with IE7. It ended up being due to CSS incompatibility

Django Trigger

2007-07-10 Thread kevinski
Here is my situation: 1. I have a model "Client", with a boolean attribute "service_1" 2. I also have a model "Service_1_Profile" 3. When "Client.service_1" is set to on, I want a corresponding "Service_1_Profile" to be created. 4. When "Client.service_1" is set to off, I want the corresponding

Dynamic Model Choices

2007-07-12 Thread kevinski
Here is my situation: I have a model attribute which needs CHOICES to come from another model. The caveat is, I need to add an addition choice so I cannot set it as a foreign key. How do I set the CHOICES to populate dynamically and add the additional choice. Here is the abbreviated context of