Model Formsets Have an Extra Blank Form?

2009-07-24 Thread derek
I'm following the instructions here: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ But when I do this kind of thing: formset = AuthorFormSet(queryset=Author.objects.filter (name__startswith='O')) I always get an extra blank form at the end of my formset - regardless of how I se

Re: how save data into more than one table?

2009-07-30 Thread derek
How about posting the code here for a review? On Jul 30, 5:21 pm, Asinox wrote: > Thanks, i did it, i dont know if in the best way but im saving data in > two tables :) thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: dynamic form

2009-07-31 Thread derek
On Jul 31, 10:31 am, Salvatore Leone wrote: > Hi, > > I've got a form with various information and a file upload widget. > > Is there a way to uploads many files at the same time? So to have a link > "add file" (and even "remove" file for already selected files). > Look at: http://scompt.com/arch

Re: Scientific Data Frontend with Django

2009-08-04 Thread derek
as opposed to proprietary research companies) that could help with such an effort. It's also clear that some thought will need to go into this "up front" in order to maximise reuse of code. My 2c Derek --~--~-~--~~~---~--~~ You received this message beca

Re: multiple projects shared database

2009-08-06 Thread derek
?! > > I think the idea is to allow common authorisation between the two sites. I am a complete newbie here, so pardon me chipping in, but... would it not be possible to do authorisation in one database and then have the groups-specific databases being separate? Derek --~--~-~--~---

Re: how to deploy Django on the web server?

2009-08-11 Thread derek
On Aug 9, 7:49 pm, justin jools wrote: > o thanks for that :) > as soon as my administrator finally sorts out Python script executing for me > - omg! ,I'll try that Not sure if this is off-topic or not, but I see Google is also offering free Django deployment on their App Engine: http://code.goo

Uploading and using images in a database application

2009-11-03 Thread derek
loaded and appears in the '/home/blah/blah/mysite/media/photos/' directory, when I click on the link - which is shown as http://127.0.0.1:8000/media/photos/test.jpg I get a "Page not found: /media/photos/test.jpg" This seems like a simple thing to fix - but not for me? Any help

Re: Calling Database functions into Django Application.

2009-11-03 Thread derek
I have not used triggers/functions in Postgresql, but did find what may be a useful blog article: http://www.eflorenzano.com/blog/post/database-triggers-arent-evil-and-they-actually-kin/ On Nov 2, 3:28 pm, Geobase Isoscale wrote: > Hi all, > > Does anyone have an idea of how to call the functi

Display a view of a single record?

2009-11-05 Thread derek
One of the needs I have (and, I imagine, others too) is to be able to display a view of a single record in a table. This is the case when the record has many fields, not all of which are appropriate for (or need to be) display in the normal list view. What I need to know is: is this a "standard

Re: Display a view of a single record?

2009-11-07 Thread derek
elves. I am looking for a way to have a link to this "detail view" embedded in each line entry of the normal tabular list display - a type of "click here for more details" link. This would not form part of a search or query. On Nov 7, 1:24 am, Tomasz Zieliński wrote: > On 6

Re: Display a view of a single record?

2009-11-08 Thread derek
Well, the link to view a record would appear on each and every record line in the nomal tabular list. On Nov 8, 3:27 pm, joker wrote: > do u want to see last or first record? > > On 8 Kasım, 08:44, derek wrote: > > > > > I am not sure what you mean by "on change li

Re: Display a view of a single record?

2009-11-10 Thread derek
Yes, the fields should not be editable in a "view". However, I do not see it as "a problem" - more as "a desirable feature". There are any number of use cases for letting users see detailed record data but not be able (or not need, at that point in time) to edit it. This feature is not meant t

Re: Uploading and using images in a database application

2009-11-10 Thread derek
Bruno All the help is much appreciated - its working now, and I need to spend time to understand all the changes. On Nov 5, 5:53 pm, bruno desthuilliers wrote: > On 3 nov, 16:02, derek wrote: > > > Given that I am a "wet behind the ears" newbie, maybe I should not be &g

Re: Uploading and using images in a database application

2009-11-10 Thread derek
Adrian Does the Photologue app store the image references in the database? On Nov 5, 6:58 pm, adrian wrote: > The easiest way is to use the Photologue application. > It has done most of the work for you. > > On Nov 5, 9:53 am, bruno desthuilliers > wrote: > > > On 3

Re: Display a view of a single record?

2009-11-11 Thread derek
Cool! Thanks Alex - that is exactly what I want. On Nov 10, 4:55 pm, Alex Robbins wrote: > Derek, > > If you want something that display data but doesn't allow you to edit > it, you should check out the databrowse[1] contrib app. You just > register a model with it (li

Override length of CharField on admin form

2009-12-09 Thread derek
After much searching, the closest answer I can find for this is here: http://groups.google.com/group/django-users/browse_thread/thread/24edd54c637f19a7 with the "solution" being: text = forms.CharField(label="text", max_length=10, widget=forms.TextInput( attrs={'size':'10',

Re: Complicated Form "Workflow" - Need ideas/direction

2009-12-15 Thread derek
Baurzhan If you are serious about doing this, you may want to look at what has been "invented" elsewhere. The one example I know of (and have used) is Apache Cocoon's flow model: http://cocoon.apache.org/2.1/userdocs/flow/continuations.html Worth reading around ideas/concepts. D

Re: URGENT - Please help. Boolean field shows up as [null]

2010-04-15 Thread derek
Perhaps you can say here what you fixed so others can learn. On Apr 14, 7:25 pm, pedjk wrote: > Problem solved. I just had to fix the code in mysql. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Admin inline extra field

2010-04-20 Thread derek
en unique" - do you mean "it cannot be unique because that is a faulty model definition" or "it cannot be unique because this type of model definition will prevent inlines displaying"? If the former, then I am not sure that Django can really help. Its almost impossible to thi

Re: Generate brochure pdf

2010-04-21 Thread derek
On Apr 21, 1:14 pm, Alessandro Ronchi wrote: > 2010/4/20 cootetom : > > > django and and pisa are great for creating PDF's because you can > > combine django's templating engine with pisa's HTML to PDF conversion. > > Pisa uses the reportlab tool kit.http://pypi.python.org/pypi/pisa/ > > I think I

Re: Extending admin views?

2010-04-21 Thread derek
On Apr 20, 10:48 pm, When ideas fail wrote: > If i have an admin form and want to transform some data to another > format using AJAX within the form, what is the best way to do this. In > a normal form I can do this within the view but is there any way to > extend admin views to add new functional

Re: modelForm ordering

2010-04-21 Thread derek
On Apr 20, 4:09 pm, darren wrote: > I am not able to figure out how to order the records that fill the > drop down list in a model form.  On line 112 below, I have attempted > to order the Rotation model by player.  But, the drop down list that > is created for me is not ordered that way.  I also

Re: Is there any way to create char data type in django.

2010-04-21 Thread derek
On Apr 20, 1:31 pm, Huang Stanley wrote: > Hi all: > > I try to find all fields but only IPAddressField is char data type, > but it's a fix-length char data type for 15 characters. > > Is there any field that I can use for this purpose. > > PS. I use django 1.2 beta 1 on Ubuntu. > > Thanks for you

Display first name and last name for user in dropdown lists in the Admin

2010-04-22 Thread derek
maybe I could learn something about users and profiles!) Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email

Re: Display first name and last name for user in dropdown lists in the Admin

2010-04-22 Thread derek
On Apr 22, 3:03 pm, Tom Evans wrote: > On Thu, Apr 22, 2010 at 1:52 PM, derek wrote: > > This thread: > >http://groups.google.com/group/django-users/browse_thread/thread/b303... > > ends with the comment that "whatever string (actually unicode) > > representation

Template tag to display boolean values?

2010-04-25 Thread Derek
e from elsewhere - there is no documentation for any tags to display booleans on the API document page ( http://docs.djangoproject.com/en/1.1/ref/templates/builtins/#built-in-tag-reference). The tag also needs to be able to handle MySQL "booleans" (which are tinyint fields with values of

Track "before" and "after" state of an object when editing in the Admin?

2010-04-26 Thread Derek
it can be compared to the "revised" version altered by the user and appropriate code be executed. How and where can this be done? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Template tag to display boolean values?

2010-04-28 Thread derek
On Apr 25, 6:55 pm, Dmitry Dzhus wrote: > Derek wrote: > > I am looking for a way to display a boolean value, with the "on" / "off" > > http://docs.djangoproject.com/en/1.1/ref/templates/builtins/#yesno > -- Thanks - but that outputs strings, not URL lin

Re: Track "before" and "after" state of an object when editing in the Admin?

2010-04-28 Thread derek
Nick & Tony - many thanks! Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googleg

Re: Template tag to display boolean values?

2010-04-28 Thread derek
On Apr 28, 11:12 am, Daniel Roseman wrote: > On Apr 28, 9:08 am, derek wrote: > > > On Apr 25, 6:55 pm, Dmitry Dzhus wrote:> Derek wrote: > > > > I am looking for a way to display a boolean value, with the "on" / "off" > > > >http://

Re: Django Admin limits

2010-04-29 Thread derek
or read-only field]. Re "* advanced permissions - some employees have editing access only to some fields" => I have not done this, but would think you can do this as part of the "dynamic edit forms" (certainly permissions can be fine-grained at a row level - many topics disc

Re: Saving the query object for later

2010-04-29 Thread derek
request object from the json return value. > > >> I can see how easy that part would be in C++, but my python skills are > >> a good deal weaker  I guess I'm hunting for "how to do this in > >> python" > Peter This sounds intriguing: "a func

How to filter a query set based on a calculated date value?

2010-04-30 Thread Derek
how to code the calculation part... Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@g

Creating hierachical views and processing these in templates?

2010-05-01 Thread Derek
nderstand how such a nested system would be constructed - and how the template, in turn, would process it. Note 2: Yes, I realize these set of models could be improved with many-to-many or one-to-many relationship fields added. But, if at all possible, please just work with it "as is".

Re: Beyound django auth - custom login function - where?

2010-05-01 Thread derek
go. Look at recent posts on this topic (some linked to my name), e..g to "set session variables". I have not got this working yet, but if you do, perhaps you can "write up" some guidelines? Derek -- You received this message because you are subscribed to the

Re: Form with ChoiceField that collects additional info with each choice

2010-05-03 Thread derek
you are trying to solve, but another way could be simply to make the "fixed choices" be "fixed fields". Then the " additional text input" becomes the value of the field. For example, if choices are: MasterCard, VisaCard and/or Cheque Account. These become fields a

Translation error triggered by HttpResponse

2010-05-04 Thread Derek
nd As soon as I remove the _() it works just fine. Any clues as to what could be the cause? (I am running Django 1.1 on a local desktop, using the development server). Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Syntax for displaying field values from parent model(s) in a template?

2010-05-05 Thread Derek
rect syntax for retrieving the value of the "name" field from related model A. I have tried {{ results.C.B.A.name }} with no effect? What is the correct way to do this? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Syntax for displaying field values from parent model(s) in a template?

2010-05-06 Thread derek
On May 5, 9:15 pm, Daniel Roseman wrote: > On May 5, 6:27 pm, Derek wrote: > > > > > I  have set of models, with relationships D -> C -> B -> A, where the > > "->" indicates a "many to one" relationship. > > > I have been able to

Re: Generic web-dev question: Best way to do a processing page?

2010-05-13 Thread derek
quot; that how far that file processing has progressed ... should it be writing out to a temp file which the view could "read"? What if there are multiple uploads occurring at the same time? Or are there simpler, more "Django-orientated" methods of doing this? Thanks! Derek

Re: Generic web-dev question: Best way to do a processing page?

2010-05-13 Thread derek
results page. > > Progress is a little harder. If it's a large file I would use > something like swfupload to show the user real time progress on the > page before loading the next page. > > If there is a better way to do these things, I'd love to know too. > > On

Using a variable for a field name in a filter?

2010-05-14 Thread derek
t to the name of a field (such as "bar"). The above is incorrect - how do I accomplish this? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

Re: Displaying dictionaries

2010-05-18 Thread derek
On May 18, 11:35 am, Tom Evans wrote: > On Tue, May 18, 2010 at 12:46 AM, Barry wrote: > > Hi-- > > >  I want to dynamically display the contents of results (an array of > > dictionaries with the same keys) as a table where the column headers > > are a select group of keys in the variable result_

Re: Can you give me explanation for my

2010-05-19 Thread derek
On May 18, 10:38 pm, Hendra Kurniawan wrote: > Hi all, > Can you give me a bright explanation for Django Framework ? how can > Django being configure in cloud computing? it's support? can you give > me some link article for this ? > > Thanks Before that.. > > Sincerely > > Hendra Try: http://www.

Installation problem (version 1.2.1)

2010-05-28 Thread Derek
#x27;, '__file__', '__name__', '__package__', '__path__'] which seems incomplete? What (probably obvious) step or action have I missed or messed up? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users&qu

Re: Twisty Little Passages... widgets, fields, forms

2010-06-01 Thread derek
On Jun 1, 1:24 am, Michael Davis wrote: > I'm trying to implement a simple grade book application using a > modelformset where the students' names are READONLY and the grades are > the only thing the teacher can edit. I've been looking for sample code > to implement the readonly portion and one fe

Re: select multiple without using foreignkey

2010-06-02 Thread derek
On Jun 2, 3:00 am, HARRY POTTRER wrote: > I have a models that represents an event. > > I want it to have a field that represents the days of the week that > the event occurs. This is easy if all you need to be able to do is be > able to select one day, but if you want to select multiple, the righ

Establish "reverse relationships" between models?

2010-06-03 Thread derek
in Django, without changing the database structure (e.g. creating an alarm field on Building, with a one-to-many relationship to Alarm)? (and, ideally, also being able to filter the result so only "master" alarms show up?) Thanks Derek -- You received this message because you are subscri

Re: Model validation (not form validation)

2010-06-17 Thread derek
On Jun 16, 8:20 am, MH wrote: > Hi, > I'm making a model, that has a bit complex dependencies between the fields, > such as date progression (start_date must not be later than finish_date). > I'm looking for a way to validate these dependencies while creating (or > saving) the model, but I am not

"'str' object has no attribute 'source'" for a simple test tag

2010-06-17 Thread Derek
'source' error, and the full trace path includes no references to my source file(s). What (presumably obvious) mistake am I making? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: admin filters getting reset after admin action

2010-06-17 Thread derek
On Jun 17, 5:44 am, rahul jain wrote: > Hi there, > > I have some filters set-up on admin page. As soon as I perform admin > action. All filters are getting reset. > > Is this is a bug from framework ? No. There are work-arounds to get back to these; Google this group for suggestions. -- You r

Primary key error for ManyToManyField in a legacy database

2010-06-19 Thread derek
I am not sure (a) why Django is expecting to find a "'teamgrouping.id'" (I assume because "id" is the default name of a table's primary key field?) and (b) how to tell it to use 'teamgrouping.teamgroupingID' as the primary key (as specified in the Tea

Re: Clean method across multiple models?

2010-06-19 Thread derek
uot; relates to form data and not models per se (as per the example you point to). Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this grou

Re: admin filters getting reset after admin action

2010-06-19 Thread derek
On Jun 18, 9:18 pm, swinton wrote: > On Jun 17, 4:13 pm, derek wrote: > > > On Jun 17, 5:44 am, rahul jain wrote: > > > > Hi there, > > > > I have some filters set-up on admin page. As soon as I perform admin > > > action. All filters are getting r

How to access the request inside a model manager's get_query_set?

2010-06-23 Thread derek
o all future code.) Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. F

Re: Sorting objects according to a field from a foreign field

2010-06-24 Thread derek
On Jun 22, 4:48 pm, Benedict Verheyen wrote: > On 22/06/2010 16:42, Daniel Roseman wrote: > > > > > As described in the documentation [1], you use the double-underscore > > syntax for sorting across relationships. > >     Call.objects.all().order_by('-priority__weight') > > > [1]:http://docs.djang

Re: How to access the request inside a model manager's get_query_set?

2010-06-24 Thread derek
On Jun 23, 8:28 pm, derek wrote: > I would like to define a default manager for MyModel that always > filters all records (when the model is accessed from anywhere in my > application) based on data from the request: > > e.g. on the lines of: > > class MyModelM

Rendering the Admin app list?

2010-06-24 Thread derek
age; however, when I do so, nothing shows up (well, the page template "wrapper" is there, but no listing of models etc.) What do I need to do to enable this? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Rendering the Admin app list?

2010-06-25 Thread derek
_list into the context as }% if app_list %} will > always be False as Django's templating system treats missing variable > as None effectively. > > On 25 June, 07:47, derek wrote: > > Working with Django 1.2.1 > > > The default index page for Django admin contain

Error using inline displays with a user profile

2010-06-26 Thread derek
_formset %} 8 : {{ inline_admin_formset.opts.verbose_name|title }}: {% if inline_admin_form.original %} {{ inline_admin_form.original }} {% else %}#{{ forloop.counter }}{% endif %} On the webpage, the {{ inline_admin_form.original }} is displayed in red. I have had this error in other places as well, but this

Re: Rendering the Admin app list?

2010-06-26 Thread derek
know how it's done. > > Rajeesh. Will do. I just find it very strange that, given I am working in_and_with the Admin app, this routine works *only* in the index page... Derek -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Error using inline displays with a user profile

2010-06-27 Thread derek
On Jun 26, 3:39 pm, Karen Tracey wrote: > On Sat, Jun 26, 2010 at 3:48 AM, derek wrote: > >   Caught TypeError while rendering: coercing to Unicode: need string > > or buffer, NoneType found > > The typical reason for this message is a __unicode__ method for a model th

Re: Rendering the Admin app list?

2010-06-27 Thread derek
e is still unnecessary overhead in passing it when not needed. > > Euan > > On 26 June, 08:50, derek wrote: > > > > > On Jun 25, 8:45 pm, raj wrote: > > > > > Before I "pass the variable app_list"; do I not need to create what is > > > &

Re: Error using inline displays with a user profile

2010-06-28 Thread derek
On Jun 27, 8:06 pm, Karen Tracey wrote: > On Sun, Jun 27, 2010 at 1:54 PM, derek wrote: > > File "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/ > > options.py" in change_view > >  900.                 change_message = > > self.construct_c

Creating a many-to-many link for a UserProfile?

2010-06-29 Thread derek
4, "Unknown column 'T2.userprofile_id' in 'where clause'") I am not sure why Django is looking for a "userprofile_id", and therefore how to go about creating the relationship? (If I remove the 'groupings' link, then the profile works as expecte

Re: how to develop cms on django

2010-06-29 Thread derek
On Jun 29, 12:29 pm, samie wrote: > sir i am a beginner in python and django.. > > i want develop a content management system using django.. > > plz help me wht shld i do from where shld i start.. > > i am learning python from google videos and develop a application > which is available on django

Re: Django admin - Edit parent model and related models on the same page

2010-06-29 Thread derek
On Jun 28, 1:48 am, DoubleD wrote: > I want to be able to edit all data on one page. How can i achieve > this ? Should i modify my models? If so, then how should i modify > them? > > class TextStyle(models.Model): >     color = models.CharField(_("color"), max_length=7) >     style = models.CharFi

Re: change displayed name of users object

2010-06-29 Thread derek
On Jun 28, 7:54 pm, Jacob Fenwick wrote: > Is there a simple way to change the displayed name of the users object in > the auth package? > > I don't care about what it's called under the hood. I just want to change > what the user sees. > > I'd like to avoid changing the code directly in the Djang

Re: Creating and binding more than one model to a from

2010-06-29 Thread derek
On Jun 28, 6:47 pm, thusjanthan wrote: > Hi, > > I have a Topic class I would like to create a form based on. BUT, I > want many of these objects so Topics. How do I obtain such a feature. > > Suppose my form object is as follows: > > class TopicForms(ModelForm): >     class meta: >         model

Re: change displayed name of users object

2010-06-30 Thread derek
On Jun 29, 7:43 pm, Jacob Fenwick wrote: > Thanks for the link Derek. > > I don't think it quite does what I want. > > I guess I should have been more specific. > > I want to change how the Users object is displayed in the Django admin. > > This is a one line

Re: Signal emitted after successful login?

2010-06-30 Thread derek
On Jun 29, 9:51 pm, Daniel Hilton wrote: > On 29 June 2010 20:07, Andy McKay wrote:> On 2010-06-29, > at 10:48 AM, tiemonster wrote: > > >> Is a signal emitted after a successful login? I need to hook a > >> particular piece of code into that point in the application. > > One easy way is to wrap

Re: Newbie Q: Is there a way to prevent Django from creating fields w. 'Not Null' by default?

2010-07-02 Thread derek
On Jul 1, 10:16 pm, Barto wrote: > I've been following 'Writing Your First Django App. Pt. 1' > substituting my own object names in experiment. > > Noticed that when I told Django to create my tables, it did so giving > all (psycopg2/postgres) fields the 'notnull' setting. Easy to change > this vi

Re: filtering admin data

2010-07-08 Thread derek
On Jul 4, 3:06 pm, djnubbio wrote: > hi all; sorry for wasting your preciouse tume. > > I'm trouble with the following: > > class A(models.Model): > . > . > . > > class B(models.Model): > . > . > . > a= models.ForeignKey(A) > > class C(models.Model): > . > . > . > b= models.ForeignKey(B) > > How c

Re: Easiest way to pass variables between modelforms (genericforms)

2010-07-08 Thread derek
On Jul 7, 12:44 am, Erich wrote: > I am using create_update.create_object to handle my forms (generic > forms both use modelforms). I have two forms. The second relies on the > pk of the first as a fk. I can't figure out what is the best practice > to A: save the pk as a variable or into the sessi

Re: list display based on logged-in user

2010-07-08 Thread derek
On Jul 7, 11:40 pm, rahul jain wrote: > Hi there ! > > I would like to display model fields based on the logged-in user. > > If user is restricted user > > list_display = (field1, field2) > > else > > list_display = (field1, field2, field3, field4) > > How is it possible ? > Also see: http://stac

Re: Is Django right for what I am trying to do

2010-07-09 Thread derek
eet N number of possible needs, once you get "beyond the basics", the specifics start to diverge more and more from what _you_ actually need to do. My 2c Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Paid support for Django?

2010-07-09 Thread Derek
list), provide suggestions, code reviews and so on. (I assume that such support would be paid for, of course.) Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegrou

Testing many-to-many models on a legacy database

2010-07-10 Thread Derek
not give me the above error anymore, but when I rerun the "python manage.py test", I get: _mysql_exceptions.OperationalError: (1050, "Table 'taxagreement_grouping' already exists") So obviously the problem - and I am not sure exactly what that is? - is not fi

Re: Testing many-to-many models on a legacy database

2010-07-11 Thread derek
On Jul 10, 4:40 pm, Rolando Espinoza La Fuente wrote: > On Sat, Jul 10, 2010 at 9:31 AM, Derek wrote: > > Running Django 1.2.1 under Python 2.6. > > I am obviously missing something cruccial, but I am just not sure where this > > is... > > I have a setup which includ

Re: Testing many-to-many models on a legacy database

2010-07-11 Thread derek
On Jul 11, 4:23 pm, derek wrote: > On Jul 10, 4:40 pm, Rolando Espinoza La Fuente > wrote: > > > > > On Sat, Jul 10, 2010 at 9:31 AM, Derek wrote: > > > Running Django 1.2.1 under Python 2.6. > > > I am obviously missing something cruccial, but I am j

Re: None field : Admin save setting it to empty value instead of NULL during save

2010-07-15 Thread Derek
On 15 July 2010 21:10, rahul jain wrote: > anyone on this ? > > On Tue, Jul 13, 2010 at 2:44 PM, rahul jain > wrote: > > Could it be generic ?. I mean i don't want to specify self.naughty_field. > > > > How to do it for self.any_field ? > > > > RJ > > > > On Tue, Jun 29, 2010 at 9:29 AM, euan.go

Re: comment template tag not working

2010-07-18 Thread derek
On Jul 17, 10:03 pm, Joel Klabo wrote: > I got it to work by adding: {% load comments %}. I had put the load > comments tag in my base.html but didn't work there for some reason. > > On Jul 17, 1:00 pm, Joel Klabo wrote: > > > I am trying to use the get_comment_list template tag and I keep > > ge

Re: Is Django right for what I am trying to do

2010-07-20 Thread derek
On Jul 19, 1:19 am, Martin Tiršel wrote: > On Fri, 09 Jul 2010 16:50:14 +0200, derek wrote: > > More complex or more detailed?  (I would argue that The Django Book is > > about as high quality as you are ever going to get for a free > > tutorial) > > > Try

Re: about some ideas for our very largest project

2010-07-21 Thread derek
b30696565ad/bef1ce2bda1b6fca?lnk=gst&q=scalable#bef1ce2bda1b6fca (e.g. see Dave Snider's remarks in the above thread). Finally, also have a look at: http://www.djangosites.org/ Hope this helps Derek -- You received this message because you are subscribed to the Google Gro

Re: Help and Training

2010-07-22 Thread derek
On Jul 22, 4:46 am, zero00 wrote: > Well Fred the enviorment where I live theres almost no programmers and > the ones that I do know that are experienced are Java developers. > Theres really no Programming community at all. > Much less a language that is new and also not studied on the > universit

Re: Plese guide to solve this

2010-07-22 Thread derek
On Jul 21, 7:38 pm, jaymzcd wrote: > I'm going to guess you have been following along with > thehttp://www.djangobook.com/ > site. It was great in the day but *do not use that* now-a-days as it > covers 0.96. There have been significant changes, one of which is the > maxlength to max_length on Ch

Simple Admin interface question - change header?

2010-07-28 Thread Derek
template and, if so, which one? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@go

Re: Filtering within a ModelForm

2010-07-28 Thread derek
On Jul 26, 6:52 pm, "Casey S. Greene" wrote: > Does anyone have a hint for this (or an idea of where to get started in > the documentation)?  This seems relatively simple so my best guess is > that there is something that I am just missing. > > Thanks! > -- Casey > > On 07/22/2010 10:16 AM, Casey

Re: Filtering within a ModelForm

2010-07-28 Thread derek
On Jul 26, 6:52 pm, "Casey S. Greene" wrote: > Does anyone have a hint for this (or an idea of where to get started in > the documentation)?  This seems relatively simple so my best guess is > that there is something that I am just missing. > > Thanks! > -- Casey > > On 07/22/2010 10:16 AM, Casey

Re: Manual schema migration

2010-08-02 Thread derek
On Aug 2, 12:57 pm, Torsten Bronger wrote: > Hall chen! > > Does anybody know a tutorial for Django-related schema migration by > using the SQL console directly?  (Preferably PostgreSQL.)  We > evaluate South at the moment, but we'd like to have the low-level > knowledge as a fallback.  Of course,

Good practices for storing "constant" values?

2010-08-03 Thread derek
ot need to be translated e.g. custom SQL code that is used in other files (the idea being that there is one place to look to find everything - particularly useful if the models+database change in some way) Thanks Derek -- You received this message because you are subscribed to the Google Group

Re: Announces django-guardian: per object permissions for Django 1.2

2010-08-04 Thread derek
handles user grouping (I have some custom ones in my app) be used? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send em

Re: Announces django-guardian: per object permissions for Django 1.2

2010-08-05 Thread derek
new > "grouping models" - I often use intermediate models for this (i.e. > Team model with fk to Group among other fields). Let me know if you > have different experience. > > On 4 Sie, 15:26, derek wrote: > > > On Aug 4, 1:20 am, lukaszb wrote: > >

Re: Documentation problems: Django at a glance

2010-08-25 Thread derek
On Aug 24, 3:36 pm, Rodney Topor wrote: > OK, it seems I misunderstood the purpose of this page.  I still think > some of the code is misleading, but I accept that the examples is > intended to be indicative rather than descriptive, and that it would > indeed take much more space to describe how t

Re: what to do instead of adding to Query.extra_where ?

2010-09-06 Thread derek
> > >     clone = clone.extra(where=('db_newsitem.id = > > db_attribute.news_item_id',)) > > > Seems to work fine. > > [...] > > Once again this group proves itself at least as valuable as a stuffed > bear ;-) > > regards >  Steve St

Anyone using django-adminhelp?

2010-09-08 Thread Derek
Hi If anyone is using the app django-adminhelp ( http://github.com/semente/django-adminhelp) please contact me. Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@google

Re: Automatically loading data into Django

2010-09-08 Thread derek
Reading CSV with Python, see: http://www.linuxjournal.com/content/handling-csv-files-python I'm not sure you need a dictionary view as well (?) - the above tutorial shows how tuples are created, which may be sufficient for your needs. Working through a Django tutorial, or the first part of The Dj

Re: Django - Multiple columns primary key

2010-09-12 Thread derek
On Sep 10, 6:40 pm, Russell Keith-Magee wrote: > On Fri, Sep 10, 2010 at 7:47 PM, naoy.teruh wrote: > > Hello, > > > I would like to implement multicolumns primary keys in django. > ... > > Did I miss something ? > > Yes - Multicolumn primary keys aren't currently supported in Django. > It's a lo

Re: change ordering of objects/rows on change list view on admin

2010-09-22 Thread derek
The admin column headers should be "clickable" for you to sort in ascending/descending order. On Sep 19, 11:31 pm, rahul jain wrote: >  I mean graphically/directly on the UI itself. > > On Sun, Sep 19, 2010 at 2:29 PM, Sævar Öfjörð wrote: > > >http://docs.djangoproject.com/en/dev/ref/contrib/adm

Re: Possible to have dynamic drop down list in ModelForm?

2010-09-22 Thread derek
If you search this list and /or the web, you'll see a number of examples on how to do this. On Sep 19, 8:42 am, Andy wrote: > I have a model FieldReport that has, among other fields, these two > fields: > > -country > -city > > Both "country" and "city" are lists of choices. > > I want to have a

  1   2   3   4   5   6   7   8   9   10   >