Re: view.py and base.html problem

2008-09-08 Thread TameR
settings.py http://dpaste.com/76851/ admin.py http://dpaste.com/76852/ view.pyhttp://dpaste.com/76853/ models.py http://dpaste.com/76854/ urls.py http://dpaste.com/76855/ On 09.Eyl.2008, at 05:07, Karen Tracey wrote: > On Mon, Sep 8, 2008 at 9:56 PM, TameR <

Re: Smartest way to display help messages per view

2007-04-07 Thread TaMeR
Well I guess it depence on your situation. For example I have a 2000 members motorcycle website and help for that site must be detailed. In that case what I would do is create a FAQ module give it categories and display the appropriate categories questions only in the sidebar. So whats he

newform and errors

2007-04-07 Thread TaMeR
I am falling in love with Django but it is quite challenging to lern django and python at the same time. I am not quite getting this. 1) I know I can do new_form.errors and I can see the errors in a shell but how do they go back to the template? 2) When I do PeopleOrgUser.objects.get(user_id =

Must be a bug??? "ordering" error splits field

2007-04-05 Thread TaMeR
== CODE == class Meta: ordering = ('code') == ERROR = $ python manage.py validate data.postcode: "ordering" refers to "c", a field that doesn't exist. data.postcode: "ordering" refers to "o", a field that doesn't exist. data.postcode: "ordering" refers to "d", a

Where to place ForeignKey?

2007-04-04 Thread TaMeR
I have done something like this before with php & mysql creating all my own sql statements but I am getting a bit confused with the ForeignKey and ManytoMany fields. I like to create following models: Organizations: May be the users Company or one of many clients People: May be a users info or

Re: object_list || didn't return an HttpResponse object

2007-04-03 Thread TaMeR
On Apr 3, 7:10 pm, Forest Bond <[EMAIL PROTECTED]> wrote: > On Tue, Apr 03, 2007 at 03:46:04PM -0700, TaMeR wrote: > > This used to work and I must have done something to break the code. > > The simple page view still works fine but the list view gives me this > >

object_list || didn't return an HttpResponse object

2007-04-03 Thread TaMeR
This used to work and I must have done something to break the code. The simple page view still works fine but the list view gives me this error and I been through my code a million times and can't find anything wrong with it. = ERROR = ValueError at /bbauction/events_list/1/ The view

Re: Internationalisation for non-supported languages

2007-04-03 Thread TaMeR
On Apr 3, 3:45 am, Rory Campbell-Lange <[EMAIL PROTECTED]> wrote: > We are developing a website for use in 16 EU countries. Some of the > languages we need to cover are not supported by Django, according > to:http://www.djangoproject.com/documentation/settings/#languages > All of our

Re: HowTo assign user to group at registration

2007-04-03 Thread TaMeR
On Apr 3, 3:25 am, Atilla <[EMAIL PROTECTED]> wrote: > On 03/04/07, TaMeR <[EMAIL PROTECTED]> wrote: > group = Group.objects.get(condition) > new_user.groups.add(group) > > I'm not sure why it doesn't raise errors there though, if .add() only > accepts a relate

unique_together error 'isUniquetype_primary'

2007-04-03 Thread TaMeR
Hello, I see others use this like at following link without adding a AddManipulator why do I get this error? By the way, I did rebuild the db (sqlite3) after adding unique_together http://svn.zyons.python-hosting.com/trunk/zilbo/common/counter/models.py = ERROR = AttributeError at

HowTo assign user to group at registration

2007-04-02 Thread TaMeR
I use two registration forms one for clients one for vendors. Depending on form used I would like to assign the user to a group. How do I use new_user.groups.add('Client') Below is my code that does not raise any errors but also does not add the user to the group. = CODE = def

Re: URLField to short for google maps

2007-04-02 Thread TaMeR
On Apr 2, 10:02 am, Atilla <[EMAIL PROTECTED]> wrote: > On 01/04/07, TaMeR <[EMAIL PROTECTED]> wrote: > > > > > The standard URLField is to short for the google maps. > > I have a basic route that is almost 300 char long and they will get > > longer.

Re: Admin - order ForeignKey by

2007-04-02 Thread TaMeR
On Mar 31, 7:14 am, Gilhad <[EMAIL PROTECTED]> wrote: > I have something like this: > > class Project(models.Model): > name = models.CharField(maxlength=10) > order = models.IntegerField() > > def __str__(self): return self.name > > class Task(models.Model):

Re: novice: filter works in shell but not in server

2007-04-02 Thread TaMeR
interface. I have contributed my code and probably more interesting to you my data as open source in the hope that it will be helpful to you and others. I think if you take look at the code and data you will understand why I need this. http://code.google.com/p/django-tamer/ The Challenge

My data contribution to django

2007-04-01 Thread TaMeR
phone codes and AJAX select/search (Could use some help on this) Download from: cd in to your apps folder and run: svn checkout http://django-tamer.googlecode.com/svn/trunk/data/ Home Page: http://code.google.com/p/django-tamer/ Wiki: http://code.google.com/p/django-tamer/w/list Help Desk: http

Re: novice: filter works in shell but not in server

2007-04-01 Thread TaMeR
> > = New Model == > > from data.models import Data > > > class Route(models.Model): > > #wday = > > models.ManyToManyField(Data.objects.filter(name='weekdays') > > I'm not sure if this is the line you are trying to get to work, but > (apart from the missing closing parenthesis) it

Re: Newbie Question

2007-03-31 Thread TaMeR
On Mar 31, 6:37 pm, M Harris <[EMAIL PROTECTED]> wrote: > I am new to the Django lists. I would like to know what types/kinds of > messages frequent this list... and (as a web page creator--- hopefully with > python/django) which list is more appropriate for useage, documentation, etc, >

URLField to short for google maps

2007-03-31 Thread TaMeR
The standard URLField is to short for the google maps. I have a basic route that is almost 300 char long and they will get longer. I am developing on sqlite3 but I think it has something to do with Django. Does anybody know how I can fix that?

novice: filter works in shell but not in server

2007-03-31 Thread TaMeR
Hi, I am a novice and well I been on this for 6 hours and decided that I need some help. I got this: Data.objects.filter(name='weekdays') working in a 'manage.py shell' but I can't get it to work in a model Here is some of the code I am playing with: class DataManager(models.Manager): def

custom admin backend form layout depending on user vs admin

2007-03-30 Thread TaMeR
Below I have posted a short form of my modules. In the admin backend, when a user goes in to the Vehicle form the company field should be filled with the users own company data but the admin should still get the select box. This is a big one then I don't have to create all the forms and can

How to import Group from auth model to my model?

2007-03-29 Thread TaMeR
Without the , verbose_name=_('Groups') it worked from django.db import models from django.contrib.auth.models import User, Group class Company(models.Model): name = models.CharField(maxlength=30, verbose_name=_('Company')) groups = models.ManyToManyField(Group)

How to import Group from auth model to my model?

2007-03-29 Thread TaMeR
I am trying to import Group from the auth models in to my model. I like to get a select box in the admin area just like the one we get when we are in the admin user panel for my Company model. Here is what I got but as soon as I add the line "groups = models.ManyTo" the Company module

Re: Forms vs. Models: Redundant?

2007-03-27 Thread TaMeR
On Mar 27, 2:36 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > django.newforms.models.form_for_model > django.newforms.models.form_for_instance Is there a example use for this somewhere? I am new ... --~--~-~--~~~---~--~~ You received this message because you are

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread TaMeR
For some changes I do have to restart the server but I haven't figured out which once yet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Forms vs. Models: Redundant?

2007-03-27 Thread TaMeR
I been trying to figure this out too. In the admin site the forms show up automatically and if you set something like auto_now_add=True then the field is hidden which is nice. Why can't this be implemented on the frontend as well? --~--~-~--~~~---~--~~ You

Re: Debugging Django: print statements?

2007-03-27 Thread TaMeR
Hello coders, I found this debug tool for Django at djangosnippets.org and was wondering if I could get some help for that. Even know I have DEBUG = True and TEMPLATE_DEBUG = DEBUG set in the Django Settting.py in my template this: {% if debug %} or this: {% if DEBUG %} is not set at all.