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 <
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 right
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 =
== 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 fi
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 o
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
> >
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 bba
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 translatio
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
> accept
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 /ad
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 registe
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.
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):
admin 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 Chal
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
> > = 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 has
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,
> question
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?
--~--~-~--~~~---~--~
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
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
just
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)
--~--~-~--~---
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 disappe
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 s
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 django-users@googl
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 recei
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.
26 matches
Mail list logo