Re: Date field widget for generic views...

2007-03-31 Thread [EMAIL PROTECTED]
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:

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

2007-03-31 Thread Malcolm Tredinnick
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

newforms gurus: Forms With Multiple Inline Objects?

2007-03-31 Thread Paul Childs
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

Re: AttributeError: 'module' object has no attribute 'myapp'

2007-03-31 Thread Russell Keith-Magee
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

Date field widget for generic views...

2007-03-31 Thread mediumgrade
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? --~--~-~--~~~---~--~~

Using field choices in a template...

2007-03-31 Thread mediumgrade
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

Re: Newbie Question

2007-03-31 Thread Russell Keith-Magee
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;

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?

Newbie Question

2007-03-31 Thread M Harris
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

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

Re: common model

2007-03-31 Thread dballanc
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

Re: Accessing model fields automatically..

2007-03-31 Thread Russell Keith-Magee
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

Re: user profile.

2007-03-31 Thread James Bennett
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

Re: Which button was clicked?

2007-03-31 Thread Kenneth Gonsalves
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/

Re: newb: Lxml Objectify

2007-03-31 Thread johnny
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.

user profile.

2007-03-31 Thread [EMAIL PROTECTED]
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

Wholesale dog clothes ,dog collars,dog chothing

2007-03-31 Thread postweb123
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

Re: creating account and user_profile simultaneously

2007-03-31 Thread Brett Parker
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

Admin - order ForeignKey by

2007-03-31 Thread Gilhad
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 =

Admin History - Date not formatted

2007-03-31 Thread gorans
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,

creating account and user_profile simultaneously

2007-03-31 Thread [EMAIL PROTECTED]
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?

Re: permission denied from development server

2007-03-31 Thread Gilhad
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 >

Re: admin utilites in front end view

2007-03-31 Thread Gilhad
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

Re: Simple model inheritance

2007-03-31 Thread Sebastjan Trepca
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

Re: Simple model inheritance

2007-03-31 Thread Malcolm Tredinnick
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

Simple model inheritance

2007-03-31 Thread Sebastjan Trepca
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

Re: Which button was clicked?

2007-03-31 Thread Malcolm Tredinnick
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

Re: List of unchecked checkboxes?

2007-03-31 Thread Malcolm Tredinnick
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.

Which button was clicked?

2007-03-31 Thread Mark Engelberg
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

List of unchecked checkboxes?

2007-03-31 Thread Mark Engelberg
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

Free international calls to anywhere

2007-03-31 Thread msmanik
Free international calls to anywhere in the world just for click http://www.freewebs.com/msmani007/freephonecalls.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,