On 3/31/07, mediumgrade <[EMAIL PROTECTED]> wrote:
> I have a model with charfield's with choices attached to them. In my
> templates, however, I would like to be able to display the values from
> the dictionary list in my models, not just the value stored in the
> database.
This is covered in th
hello,
you will have to write code for that. i think django does not have
this functionality.
konstantin
On Mar 31, 8:09 pm, "mediumgrade" <[EMAIL PROTECTED]> wrote:
> I have a model with charfield's with choices attached to them. In my
> templates, however, I would like to be able to display
On Mar 31, 9:13 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 3/31/07,RamashishBaranwal <[EMAIL PROTECTED]> wrote:
>
> > I am trying to export a model's data to XML. To do this I'm using the
> > model class's _meta.fields. However it doesn't list ManyToManyField
> > objects. How can I
On Mar 31, 10:36 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2007-03-31 at 05:27 +,RamashishBaranwal wrote:
> > Hi,
>
> > I am trying to export a model's data to XML. To do this I'm using the
> > model class's _meta.fields. However it doesn't list ManyToManyField
> > objects. H
You'll need to include the javascript in your base.html template (or
for the forms that need it) from the admin css/js site:
If I recall, you'll need to use the proper class names in your
template (class="vDateField" class="vTimeField" )
:
Date:
Time:
--~--~-~--~~---
On Sat, 2007-03-31 at 12:18 -0700, TaMeR wrote:
>
> Hi, I am a novice and well I been on this for 6 hours and decided that
> I need some help.
It's difficult to offer suggestions when you don't say what is going
wrong. How did you try to use the code you posted? What happened and
what did you ex
I am trying to make the switch to new forms with little success. I
have searched the news group, looked over examples (found this to be
very good http://www.djangoproject.com/documentation/models/model_forms/)
and looked at some suggested tutorials.
The reason for the lack of success is that a l
On 3/30/07, Vinay Sajip <[EMAIL PROTECTED]> wrote:
>
> Now, why should this be? The traceback is mystifying to me - can
> anyone shed any
> light?
The problem is caused by the way that Django loads and indexes
applications. I haven't tried putting code in __init__.py, but it
certainly doesn't sur
I am writing an app that makes heavy use of generic views. I have
several forms which include date fields and I want to know how to
attach a widget to the field for entering the date (like the one used
in the admin site).
Am I making sense?
--~--~-~--~~~---~--~~
I have a model with charfield's with choices attached to them. In my
templates, however, I would like to be able to display the values from
the dictionary list in my models, not just the value stored in the
database.
Am I making sense?
--~--~-~--~~~---~--~~
You r
On 4/1/07, M Harris <[EMAIL PROTECTED]> wrote:
>
> What is the django definition of user vs developer?
The appropriate sort of messages for each kind of list is covered in
detail in the navigation sidebar on:
http://djangoproject.com/community/
and the advice on;
http://www.djangoproject.com/d
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?
--~--~-~--~~~---~--~
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,
questions?
Is the developer list strictly for development questions re
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
Malcolm,
I'm not the op, but have done what you suggested in splitting models
and linking with OnetoOne fields in the past. It worked perfectly
except for one problem: I couldn't figure out any way to order search
results by a field in a related model. I tried everything I could
think of and as
On 3/31/07, Ramashish Baranwal <[EMAIL PROTECTED]> wrote:
>
> I am trying to export a model's data to XML. To do this I'm using the
> model class's _meta.fields. However it doesn't list ManyToManyField
> objects. How can I get those?
Are you aware of the XML serializer? Django already has a modul
On 3/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Why do I need this? I want the user profile and user account to be
> created by user on the same page. Any solutions how can I do it?
Display a single form with all the fields, and have your view create
both objects.
--
"Bureaucrat Conr
On 31-Mar-07, at 2:02 PM, Mark Engelberg wrote:
> When there are multiple submit buttons, how do you extract the clicked
> one from the request.POST?
'buttonname' - same as standard cgi
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~
I am trying to do this inside Django view. I am new to python, I
thought someone might have used lxml to process and create xml
documents in Django. I looked at the documentation, but for newb, I
need to see an examle like this.
Thank you.
--~--~-~--~~~---~--~~
Assume I've created a user via API. Assume I want to add profile to
this user. One thing I could do is to user
filter(username__exact='username') but I think it is a bit ugly. I've
noticed there is a completely undocumented function set_user_profile
for each profile object, but I coudn't figure ou
wholesale dog clothes ,dog collars,dog chothing
WEBSITE: http://www.dogstoreol.com
E-MAIL: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to th
On Sat, Mar 31, 2007 at 03:53:50AM -0700, [EMAIL PROTECTED] wrote:
>
> Can anyone help me with this - when user creates account in the
> system, i want him to fill in his profile as well. I suppose I need to
> edit the view, and add two forms, one for profile, one for user
> their. But how do I g
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):
project = models.ForeignKey(Project)
description = model
Hi,
This is probably a quick fix but the history section in the Django
Admin displays the date incorrectly:
SatPMAUS Eastern Standard TimeE_130AUS Eastern Standard Time20_AUS
Eastern Standard Time0MarE_March1177497646FalseFalse
I am using Windows with timezone (GMT +10:00 Canberra, Melbourne,
Sy
Can anyone help me with this - when user creates account in the
system, i want him to fill in his profile as well. I suppose I need to
edit the view, and add two forms, one for profile, one for user
their. But how do I get user's ID after new_user = form.save()? Get
the latest user?
--~--~--
try
localhost:8000:/admin/
On Thursday 29 March 2007 18:16, akonsu wrote:
> hello,
>
> i am running development server from a windows command line and when i
> navigate to localhost:8000 i get
>
> Permission denied: /
>
> i do not even know where to start debugging. "manage.py syncdb" works
> fin
In my own project I solved this problem simply:
I make TWO projects, with the same (well nearly same) models.py
One is only for me to run Admin on it with full access
the other is for usesr, to run Admin there with very restricted access and
Wizard (ehm ... normal views)
In the Real Admin I can
Great, thanks!
Sebastjan
On 3/31/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Sat, 2007-03-31 at 11:26 +0200, Sebastjan Trepca wrote:
> > Hi all,
> >
> > I noticed there are few threads about model inheritance and proposals,
> > but they all reflect the inheritance to the database al
On Sat, 2007-03-31 at 11:26 +0200, Sebastjan Trepca wrote:
> Hi all,
>
> I noticed there are few threads about model inheritance and proposals,
> but they all reflect the inheritance to the database also.
> I don't really want inheritance in database with all those joins etc,
> what I would need
Hi all,
I noticed there are few threads about model inheritance and proposals,
but they all reflect the inheritance to the database also.
I don't really want inheritance in database with all those joins etc,
what I would need is just something that will spare me the
copy/pasting of similar fields
On Sat, 2007-03-31 at 01:32 -0700, Mark Engelberg wrote:
> When there are multiple submit buttons, how do you extract the clicked
> one from the request.POST?
Each button in the form can have a different name. Only the button that
was selected to cause the form submission to happen will be includ
On Sat, 2007-03-31 at 01:30 -0700, Mark Engelberg wrote:
> I'm trying to understand how to process checkboxes.
> I found this thread useful:
> http://groups.google.com/group/django-users/browse_thread/thread/5f7b06a23af50c56
>
> However, I don't know how to get a list of _unchecked_ checkboxes.
>
When there are multiple submit buttons, how do you extract the clicked
one from the request.POST?
Thanks,
Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
I'm trying to understand how to process checkboxes.
I found this thread useful:
http://groups.google.com/group/django-users/browse_thread/thread/5f7b06a23af50c56
However, I don't know how to get a list of _unchecked_ checkboxes.
This is important, because I'm generating the list of ids dynamicall
35 matches
Mail list logo