Re: render_to_response taking 50 seconds!

2009-11-02 Thread Jani Tiainen
Your model was not-so-good Python/Django code style so it was bit hard to read but... Low Kian Seong kirjoitti: > On Tue, Nov 3, 2009 at 3:07 PM, Jani Tiainen wrote: >> Low Kian Seong kirjoitti: >>> On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen wrote: Low Kian Seong kirjoitti: > I have

Re: render_to_response taking 50 seconds!

2009-11-02 Thread James Bennett
On Tue, Nov 3, 2009 at 1:17 AM, Low Kian Seong wrote: > There is a query page where the start_date and end_date is being sent. > Then the do_defender_advanced will process it and generate an Excel > using the template. For each object you are displaying the values of four foreign keys. Each time

Re: render_to_response taking 50 seconds!

2009-11-02 Thread Low Kian Seong
On Tue, Nov 3, 2009 at 3:07 PM, Jani Tiainen wrote: > > Low Kian Seong kirjoitti: >> On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen wrote: >>> Low Kian Seong kirjoitti: I have about 3k plus record in my db table and am trying to do a simple render_to_response of a template sending it the

Re: install help please.

2009-11-02 Thread Low Kian Seong
On Tue, Nov 3, 2009 at 1:28 PM, paulmo wrote: > > goal is to check out google appengine using python and django if > possible. running xp, downloaded python 2.6 and django 1.1.1.tar. i'm > familiar with auto-installing apps and have no idea how to run django. > i've extracted the tar file to a fo

Re: render_to_response taking 50 seconds!

2009-11-02 Thread Jani Tiainen
Low Kian Seong kirjoitti: > On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen wrote: >> Low Kian Seong kirjoitti: >>> I have about 3k plus record in my db table and am trying to do a >>> simple render_to_response of a template sending it the results of a >>> query. I debugged this and found that the t

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread delfick755
On Nov 3, 3:00 pm, Graham Dumpleton wrote: > On Nov 3, 5:55 pm, Stephen Moore wrote: > All I can suggest is get rid of mod_python. It is a fair bit simpler > in mod_wsgi to do these sorts of per setup overrides because the WSGI > script file acts as an intermediary from which overrides can be

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
On Nov 3, 5:55 pm, Stephen Moore wrote: > On Tue, Nov 3, 2009 at 2:31 PM, Graham Dumpleton > > wrote: > > Cant you just have different settings files and set > > DJANGO_SETTINGS_MODULES different for each installation? > > The problem with that becomes let's say I have the two options > produc

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Stephen Moore
On Tue, Nov 3, 2009 at 2:31 PM, Graham Dumpleton wrote: > Cant you just have different settings files and set > DJANGO_SETTINGS_MODULES different for each installation? > The problem with that becomes let's say I have the two options production and internet, then that means that I have to have 4

install help please.

2009-11-02 Thread paulmo
goal is to check out google appengine using python and django if possible. running xp, downloaded python 2.6 and django 1.1.1.tar. i'm familiar with auto-installing apps and have no idea how to run django. i've extracted the tar file to a folder in my downloads. tried running cmd prompt < setup py

Re: render_to_response taking 50 seconds!

2009-11-02 Thread Low Kian Seong
On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen wrote: > > Low Kian Seong kirjoitti: >> I have about 3k plus record in my db table and am trying to do a >> simple render_to_response of a template sending it the results of a >> query. I debugged this and found that the total time taken for an >> oper

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
On Nov 3, 4:49 pm, Stephen Moore wrote: > On Tue, Nov 3, 2009 at 1:31 PM, Graham Dumpleton > > wrote: > >http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_E... > > > You are experiencing environment variable leakage between Python sub > > interpreters. Affects mod_wsgi as wel

Re: redirect or reload page after pdf file generation.

2009-11-02 Thread Jani Tiainen
jai_python kirjoitti: > Hello every one, > > I have a form which contains group of data and I can select some of > them to take pdf file. When I submit the form, it returns pdf file > which contains the selected data. But i need to redirect or reload the > present form after pdf file has been ge

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Stephen Moore
On Tue, Nov 3, 2009 at 1:31 PM, Graham Dumpleton wrote: > http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_Environment_Variables > > You are experiencing environment variable leakage between Python sub > interpreters. Affects mod_wsgi as well as mod_python, or any embedded > so

Re: render_to_response taking 50 seconds!

2009-11-02 Thread Javier Guerra
On Mon, Nov 2, 2009 at 10:44 PM, Low Kian Seong wrote: > I have about 3k plus record in my db table and am trying to do a > simple render_to_response of a template sending it the results of a > query. I debugged this and found that the total time taken for an > operation like this is 50 seconds!

Re: render_to_response taking 50 seconds!

2009-11-02 Thread Jani Tiainen
Low Kian Seong kirjoitti: > I have about 3k plus record in my db table and am trying to do a > simple render_to_response of a template sending it the results of a > query. I debugged this and found that the total time taken for an > operation like this is 50 seconds! Is there anyway to speed this

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
Arrgh, pressed send to quick. Read: http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_Environment_Variables You are experiencing environment variable leakage between Python sub interpreters. Affects mod_wsgi as well as mod_python, or any embedded solution using multiple Python

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
Sorry, I should just follow your pastebin links shouldn't I. :-) On Nov 3, 4:21 pm, Graham Dumpleton wrote: > Which of the many ways of hosting under Apache are you using? > > mod_python? mod_wsgi? mod_fcgid? mod_fastcgi? mod_cgi(d)? mod_scgi? > other? > > SetEnv does not set os.environ in a num

redirect or reload page after pdf file generation.

2009-11-02 Thread jai_python
Hello every one, I have a form which contains group of data and I can select some of them to take pdf file. When I submit the form, it returns pdf file which contains the selected data. But i need to redirect or reload the present form after pdf file has been generated inorder to remove previous

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
Which of the many ways of hosting under Apache are you using? mod_python? mod_wsgi? mod_fcgid? mod_fastcgi? mod_cgi(d)? mod_scgi? other? SetEnv does not set os.environ in a number of these. Graham On Nov 3, 4:14 pm, delfick755 wrote: > Hello, > > I have a setup where a django's debug setting

apache gets confused with difference between dev and production version of site

2009-11-02 Thread delfick755
Hello, I have a setup where a django's debug setting is changed depending on whether os.environ['PRODUCTION'] is true or false. Which means when I setup apache, I do "SetEnv PRODUCTION true" to mark a site as production. I then have /etc/hosts setup so that http://home and http://cec point to l

Re: Newer PostgreSQL breaks django_friends, maybe deserves ORM fix.

2009-11-02 Thread Christophe Pettus
On Nov 2, 2009, at 2:14 PM, Bill Freeman wrote: > My presumption is that the older PostgreSQL, expecting to have to > decide whether unquoted things are strings (e.g.; "status" in the > query samples above), used to look at the context and decided that we > had meant the 8 as a string. In partic

render_to_response taking 50 seconds!

2009-11-02 Thread Low Kian Seong
I have about 3k plus record in my db table and am trying to do a simple render_to_response of a template sending it the results of a query. I debugged this and found that the total time taken for an operation like this is 50 seconds! Is there anyway to speed this up? -- Low Kian Seong blog: http

Re: Newer PostgreSQL breaks django_friends, maybe deserves ORM fix.

2009-11-02 Thread Karen Tracey
On Mon, Nov 2, 2009 at 5:14 PM, Bill Freeman wrote: > > It occurs to me that the ORM could fix this. It knows that status is > a CharField. For anything but None (which it should try to store as > null) it should be reasonable to apply str() (or unicode()) to the > field value before storing it

Re: Lookup column value in external dictionary

2009-11-02 Thread Phil Edwards
Phil Edwards wrote: > > This all works as expected. The final step that I'm not able to figure > out is what to put in either the view or the template so that I can do a > lookup of the 'package.rating' value (which will be 1, 2, 3 or 4) > against the 'ratingChoices' data so that the final out

Lookup column value in external dictionary

2009-11-02 Thread Phil Edwards
I've been using Python for some time but I'm new to Django. In one of my pet projects to help me up the learning curve, I have a model defined thus: class Program(models.Model): ratingChoices = ( (1, 'Essential'), (2, 'Important'), (3, 'Nice to Have'), (

Re: debug toolbar problem

2009-11-02 Thread bax...@gretschpages.com
Thanks Rob, that makes complete sense. Nothing like a response straight from the source! --~--~-~--~~~---~--~~ 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@googleg

Re: debug toolbar problem

2009-11-02 Thread Rob Hudson
It's looking like you have DEBUG=False and rely on request.user.is_superuser to enable the toolbar. Which mostly works, except... The Django Debug Toolbar monkey patches the CursorDebugWrapper class to collect its data about what SQL queries are being executed: http://github.com/robhudson/django

Fwd: InlineModelAdmin paging

2009-11-02 Thread Jay Coulter
Hi all, Django documentation states that the inlines inherit same functionality as modeladmin so I want to enable paging on an inline but it doesn’t appear to work. This is the code for my inline, is the syntax incorrect?? class CustomerCardsInline(admin.TabularInline): mo

Re: model-validation: Excessive (and weird) queries during validation

2009-11-02 Thread Mark L.
On Nov 2, 10:27 pm, Karen Tracey wrote: > On Mon, Nov 2, 2009 at 1:41 PM, Mark L. wrote: > > > As the subject states, I am using the model-validation branch at the > > moment, which allows me to do, well, validation in the models. > > > I've however, noticed a very strange behaviour of the val

Newer PostgreSQL breaks django_friends, maybe deserves ORM fix.

2009-11-02 Thread Bill Freeman
I've been developing a Django 1.0 project (using Pinax, actaully) on a machine that has PostgreSQL 8.1.11 (Linux), where things work just fine. Now I've deployed to a (still development) customer visible server that has an 8.4 PostgreSQL (also on Linux), which throws errors complaining that equal

Re: how to exclude DateTime that are None

2009-11-02 Thread Brian Neal
On Nov 2, 3:44 pm, Felipe Reyes wrote: > Hi everybody, > > I'm using django 0.96, one of my models has a DateTimeField, I'm > trying to exclude the from the queryset the rows that have null in the > datetimefield, I'm using something like this: > > MyObject.objects.exclude(somedatecol=None) I th

how to exclude DateTime that are None

2009-11-02 Thread Felipe Reyes
Hi everybody, I'm using django 0.96, one of my models has a DateTimeField, I'm trying to exclude the from the queryset the rows that have null in the datetimefield, I'm using something like this: MyObject.objects.exclude(somedatecol=None) that line gave me the following error DataError: invali

Re: Migrating a Wordpress website to Django

2009-11-02 Thread John K
Thanks. Django redirect looks very useful. I'm hoping for a 1 to 1 conversion of URL's and avoid redirects all together. The redirect app would be a great last resort. On Nov 2, 2:32 pm, Antoni Aloy wrote: > 2009/11/2 John K : > > > > > Hey thanks for the links. It would be great to discuss pers

Re: Django Interview Questions

2009-11-02 Thread Skylar Saveland
Doesn't work on my mobile browser. Dimitri Gnidash wrote: > Hey guys, > > For all those of you interviewing or being interviewed, I created a > quick list of sample interview questions. > While not comprehensive, it is a good start to review these before the > interview, if anything, to gain a pe

Re: Migrating a Wordpress website to Django

2009-11-02 Thread Skylar Saveland
inspectdb might be of some interest John K wrote: > Hello all, > > We are auditing several web frameworks and will ultimately choose one > that will replace Wordpress (Wordpress hosted on our servers). So far, > Django fits the bill. > > Has anyone had any experience migrating a Wordpress site to

Re: Marking usernames as not for use dynamically

2009-11-02 Thread Javier Guerra
On Mon, Nov 2, 2009 at 2:00 PM, Max Battcher wrote: > I'm rather fond of using URLs of the form: > > http://example.com/~username/ +1 -- Javier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Migrating a Wordpress website to Django

2009-11-02 Thread Antoni Aloy
2009/11/2 John K : > > Hey thanks for the links. It would be great to discuss personal > experiences with the group. > > On Nov 2, 1:47 pm, creecode wrote: >> Hello John, >> >> A quick search on Google shows some folks have done WP to Django >> migrations.  Following are a few links. >> >> http:/

Re: model-validation: Excessive (and weird) queries during validation

2009-11-02 Thread Karen Tracey
On Mon, Nov 2, 2009 at 1:41 PM, Mark L. wrote: > > As the subject states, I am using the model-validation branch at the > moment, which allows me to do, well, validation in the models. > > I've however, noticed a very strange behaviour of the validation > logic, - any time the clean() method is

Re: Marking usernames as not for use dynamically

2009-11-02 Thread Max Battcher
> Not really answering your question, but a couple simple workarounds: > > - put your user profiles under http://domain.com/profiles/username I'm rather fond of using URLs of the form: http://example.com/~username/ It's an old tradition (well, old in internet/unix years), but I think sometime

Re: Formwizard and customizing the template layout

2009-11-02 Thread Mark L.
> Is there any way to have individual templates for each form To define, which template should be used for which step, you can override the get_template(self, step) method of the wizard (it must return the name of the template), that way you can use separate templates for certain steps (step numb

Re: Migrating a Wordpress website to Django

2009-11-02 Thread John K
Hey thanks for the links. It would be great to discuss personal experiences with the group. On Nov 2, 1:47 pm, creecode wrote: > Hello John, > > A quick search on Google shows some folks have done WP to Django > migrations.  Following are a few links. > > http://www.nbrightside.com/blog/2007/10/

Re: Migrating a Wordpress website to Django

2009-11-02 Thread creecode
Hello John, A quick search on Google shows some folks have done WP to Django migrations. Following are a few links. http://www.nbrightside.com/blog/2007/10/14/how-to-migrate-a-wordpress-blog-to-django http://code.google.com/p/django-wordpress-admin/ http://www.eriksmartt.com/blog/archives/306

model-validation: Excessive (and weird) queries during validation

2009-11-02 Thread Mark L.
As the subject states, I am using the model-validation branch at the moment, which allows me to do, well, validation in the models. I've however, noticed a very strange behaviour of the validation logic, - any time the clean() method is fired on the "materialized" (saved or retrieved from the da

custom view decorator with parameter

2009-11-02 Thread nostradamnit
I'm trying to write a custom view decorator that takes a parameter, and I can't for the life of me figure out how to pass the parameter. I've tried the nested function pattern, the class with __init__ and __call__ methods pattern, and I always run into the same basic error. It either says I have t

Formwizard and customizing the template layout

2009-11-02 Thread txranger
I am implementing a nine part questionnaire that is dynamic. By dynamic I mean the user may answer Part 1 and Part 2 but based on the answers to Part 2 may be directed to Part 8 then Part 9. I have that figured out but I need to have little more control over the look and feel of the each form. Th

Migrating a Wordpress website to Django

2009-11-02 Thread John K
Hello all, We are auditing several web frameworks and will ultimately choose one that will replace Wordpress (Wordpress hosted on our servers). So far, Django fits the bill. Has anyone had any experience migrating a Wordpress site to a Django solution? If so, it would be great to hear how your e

Pagination - django.views.generic.list_detail.object_detail

2009-11-02 Thread Mario
Hello, Which Pagination tag do you all recommend for handling django.views.generic.list_detail.object_detail? I have an existing article which requires pagination. I don't want the user to keep scrolling down the web page. _Mario --~--~-~--~~~---~--~~ You received

Re: Form that updates a list of items?

2009-11-02 Thread Nick Arnett
On Mon, Nov 2, 2009 at 3:30 AM, Julien Petitperrin < julien.petitper...@gmail.com> wrote: > Hello, > > I had this kind of issue a few days ago. I found this: > > > http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ > > I hope this helps you to find a way

Re: Form that updates a list of items?

2009-11-02 Thread Mark (Nosrednakram)
Hello, I'm not sure if I understand your problem but if I do you could name your fields the same in both tables, which I believe you may have done. Then your view could generate your input form using form = RoleUpDataFrom() and if you have POST data you could use form = RealDataForm(reques.POST)

Django Interview Questions

2009-11-02 Thread Dimitri Gnidash
Hey guys, For all those of you interviewing or being interviewed, I created a quick list of sample interview questions. While not comprehensive, it is a good start to review these before the interview, if anything, to gain a perspective on how other people might be using Django. http://blog.lig

Re: Marking usernames as not for use dynamically

2009-11-02 Thread Sean Brant
Thanks Ethan. bruno you are right moving stuff under the /profiles/ namespace would solve everything. Moving the pattern last but allowing users to still create the username of "login" would prevent there username from working. You are also right about "whenever you add any other url..." this w

Re: Marking usernames as not for use dynamically

2009-11-02 Thread bruno desthuilliers
On 2 nov, 16:05, Sean Brant wrote: > So i have user profiles at http://domain.com/username. I'd like to > prevent a user from signing up with a username that is the same as a > page on my site (ie: /login/, /blog/, etc). I was thinking I could > inspect my url patterns to determine what pages exi

Re: Marking usernames as not for use dynamically

2009-11-02 Thread Ethan Jucovy
I haven't tried this, but it looks like you can use `django.core.urlresolvers.resolve(path_string)` to figure out if a view exists with a given path. http://docs.djangoproject.com/en/dev/topics/http/urls/#django.core.urlresolvers.resolve http://docs.djangoproject.com/en/dev/topics/http/urls/#resol

Re: Template processing/pre-processing

2009-11-02 Thread bruno desthuilliers
On 2 nov, 12:37, rd-london wrote: > Not worry, found work-a-round using MEDIA_URL. Actually, that's what MEDIA_URL is for - so it's not a "workaround". Now if you want more control (or custom stuff), writing a context processor that exposes whatever setting (builtin or custom) you want isn't r

Re: Multi-db support

2009-11-02 Thread David De La Harpe Golden
David De La Harpe Golden wrote: > Here's something further pared down I'm currently testing with django > 1.1.1 to tide us over until true multi-db for our own simple > multi-postgresql-database case. It "seems to work", though doesn't > address a bunch of stuff true multi-db would cover > clas

Marking usernames as not for use dynamically

2009-11-02 Thread Sean Brant
So i have user profiles at http://domain.com/username. I'd like to prevent a user from signing up with a username that is the same as a page on my site (ie: /login/, /blog/, etc). I was thinking I could inspect my url patterns to determine what pages exist so I can prevent that from being a usern

Re: Django 1.1.1 - Can't get form validation working

2009-11-02 Thread Lakshman Prasad
To add to all the helpful messages above, for forms with standard fields, django comes loaded with inbuilt forms. A quick scan of the source shows (django.contrib.auth.forms) following inbuilt forms: AdminPasswordChangeForm AuthenticationForm PasswordChangeForm PasswordResetForm SetPasswordForm U

Re: Django 1.1.1 - Can't get form validation working

2009-11-02 Thread Andrew
Thanks Guys, I understand about the form issues...I was just tinkering... However yes it was the comma's I had at the end of the fields in my form. They didn't throw errors for the face its a sequence as you said Karen. Thanks Karen and David for such a quick response... Andrew On Nov 2, 2:08 pm,

Re: Django 1.1.1 - Can't get form validation working

2009-11-02 Thread David De La Harpe Golden
Karen Tracey wrote: > Ah, right. Thanks for pointing out the explanation. Doing something to > make Django fail loudly for stuff like this (I recall it tripping up someone > once on a model definition as well) might be worthwhile. The current > no-error-but-really-confusing-results behavior is

Re: debug toolbar problem

2009-11-02 Thread David De La Harpe Golden
FWIW, djangologging can also show you any sql queries during request-response, with LOGGING_LOG_SQL = True in settings.py http://code.google.com/p/django-logging/wiki/Overview I don't know if or how debugtoolbar and djangologging are related, but djangologging is working nicely for my show-me-sq

Re: Django 1.1.1 - Can't get form validation working

2009-11-02 Thread Karen Tracey
On Mon, Nov 2, 2009 at 9:57 AM, David De La Harpe Golden < david.delaharpe.gol...@ichec.ie> wrote: > > Karen Tracey wrote: > > Commas are good on the ends of elements in a sequence, they are not > > good here. > > Indeed, a comma at the end actively denotes a kind of sequence, a matter > of python

Re: Django 1.1.1 - Can't get form validation working

2009-11-02 Thread David De La Harpe Golden
Karen Tracey wrote: > On Mon, Nov 2, 2009 at 8:55 AM, Andrew wrote: >> I have a form... as you can see I have "required=True" on the username >> to test validation >> class RegistrationForm(forms.Form): >>username = forms.CharField(required=True), >>email = forms.EmailField(required=True

Re: debug toolbar problem

2009-11-02 Thread bax...@gretschpages.com
> Are you caching your pages? Yes, but only for anonymous users > Are you using Django ORM? Yes > Have you added the DebugToolbarMiddleware to your MIDDLEWARE_CLASSES > in settings.py? Yes. In settings: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contr

Re: Display a value from another table

2009-11-02 Thread Tom Evans
On a Book instance, the 'authors' attribute is a manager, so Tim's examples should read: {% for book in books %} {{ book.name }} {% for author in book.authors.all %} {{ author }} {% endfor %} {% endfor %} or in Python code: book = Book.objects.get(id=42) for auth

Re: Django 1.1.1 - Can't get form validation working

2009-11-02 Thread Karen Tracey
On Mon, Nov 2, 2009 at 8:55 AM, Andrew wrote: > > [snip] > Here is the scenario > I am doing a simple registration form... > > I have a form... as you can see I have "required=True" on the username > to test validation > class RegistrationForm(forms.Form): >username = forms.CharField(requ

Calling Database functions into Django Application.

2009-11-02 Thread Geobase Isoscale
Hi all, Does anyone have an idea of how to call the functions created in the database into Django application ? I'm working with Postgresql database. I have created a function using a server-sided programming language called Pl/pgsql that will help me in handling complex spatial business logic t

Re: Display a value from another table

2009-11-02 Thread Tim Chase
> class Author(models.Model): > name = models.CharField(max_length=100) > title = models.CharField(max_length=3, choices=TITLE_CHOICES) > birth_date = models.DateField(blank=True, null=True) > > def __unicode__(self): > return self.name > > class Book(models.Model): >

Re: Django 1.1.1 - Can't get form validation working

2009-11-02 Thread Andrew
I forgot to add my form post...here it is ... {% if form.error_dict %} Please correct the errors below. {% endif %} {% if form.username.errors %} {{ form.username.html_error_list }} {% endif %} Username: {% if form.em

Django 1.1.1 - Can't get form validation working

2009-11-02 Thread Andrew
Hi, I am well used to working with Django, however I am stuck on a basic issue at present if anyone can spread some light. Note I have no compile errors and it runs fine. I have put in a variable "result" to check the value of form.is_valid() which is showing as always True. I have tried everytin

Re: Template processing/pre-processing

2009-11-02 Thread rd-london
Not worry, found work-a-round using MEDIA_URL. On Oct 30, 4:39 pm, rd-london wrote: > Hi, > > I'd like to write some code, probably middleware, that look at various > types of HTML in templates and prepends a setting from settings.py. > > For example, I'd like to pickup all .js, .css, .jpg, .pn

Re: debug toolbar problem

2009-11-02 Thread Daniel Roseman
On Nov 1, 9:27 pm, "bax...@gretschpages.com" wrote: > I finally installed the django debug toolbar, which looks like a very > nice piece of work, but it's not reporting sql queries for me. Every > page: 0 queries, 0 seconds. > > Any suggestions on where the problem may lie? Have you added the De

Re: Form that updates a list of items?

2009-11-02 Thread Julien Petitperrin
Hello, I had this kind of issue a few days ago. I found this: http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ I hope this helps you to find a way to do your multiple items edit form. Have a nice day, Julien. --~--~-~--~~~---

Re: Distributing a Django site along with Apache and MySQL

2009-11-02 Thread pjrhar...@gmail.com
I've done this exact thing before, I had to package apache, django, my project and a ton of other packages that I needed. I found the easiest way in the end was using nsis(1). I packaged django up as an msi(2), got python and apache as msi installers, mod_python as an exe and then just had it copy

Re: Display Certain Fields of the Model Formset As Text

2009-11-02 Thread David De La Harpe Golden
Preston Holmes wrote: > When using widget.attr how does one specify a attr that is name only, > not key/value. > > The disabled key is not a k/v attr: > > > In xhtml 1 (fwiw) it is, you are required to write disabled="disabled" (I think) and it is also allowed to do so in html 4 See section

Re: Display a value from another table

2009-11-02 Thread Denis Bahati
Here is my model. TITLE_CHOICES = ( ('MR', 'Mr.'), ('MRS', 'Mrs.'), ('MS', 'Ms.'), ) class Author(models.Model): name = models.CharField(max_length=100) title = models.CharField(max_length=3, choices=TITLE_CHOICES) birth_date = models.DateField(blank=True, null=True)

Re: Remote developer opportunity

2009-11-02 Thread Russell Keith-Magee
On Mon, Nov 2, 2009 at 6:19 PM, Kenneth Gonsalves wrote: > > On Monday 02 Nov 2009 3:37:38 pm Chris Withers wrote: >> Kenneth Gonsalves wrote: >> > On Monday 02 Nov 2009 1:17:01 pm Kashif Azeem wrote: >> >> I am interested. If you can write a little bit about yourself, type of >> >>  work, how to

Re: Making the case for Django (vs. Drupal)

2009-11-02 Thread Dougal Matthews
2009/10/31 shacker > > Things like the announcement that > whitehouse.gov switched to Drupal just cement the deal in many > managers' minds. > > I can't find the source for this (the original tweeter has protected tweets) but if true its an interesting stat. http://twitter.com/pydanny/status/526

Re: Remote developer opportunity

2009-11-02 Thread Oli Warner
Personally, I think Kashif's information request is pertinent to the opening post and should be replied to in the clear so anybody interested in the first post can also read it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Remote developer opportunity

2009-11-02 Thread Sam Lai
2009/11/2 Chris Withers : > > It was probably a mistake. Google groups is pretty annoying in the way > it sets the Reply-To header to the list address... Isn't that a generally desired option though? The likelihood of me wanting to reply privately is much smaller than me wanting to reply to the e

Re: Remote developer opportunity

2009-11-02 Thread Kenneth Gonsalves
On Monday 02 Nov 2009 3:37:38 pm Chris Withers wrote: > Kenneth Gonsalves wrote: > > On Monday 02 Nov 2009 1:17:01 pm Kashif Azeem wrote: > >> I am interested. If you can write a little bit about yourself, type of > >> work, how to apply? > > > > > > please take this offlist > > It was probably

Re: Remote developer opportunity

2009-11-02 Thread Chris Withers
Kenneth Gonsalves wrote: > On Monday 02 Nov 2009 1:17:01 pm Kashif Azeem wrote: >> I am interested. If you can write a little bit about yourself, type of >> work, how to apply? > > please take this offlist It was probably a mistake. Google groups is pretty annoying in the way it sets the Reply

Re: solving the %20 problem

2009-11-02 Thread Kenneth Gonsalves
On Monday 02 Nov 2009 9:54:11 am Kenneth Gonsalves wrote: > On Monday 02 Nov 2009 9:36:23 am Graham Dumpleton wrote: > > > these are usually user generated - they love to put spaces. I can > > > handle spaces, but would like to know how the spaces become %20 and how > > > to prevent this. > > > >

Re: Remote developer opportunity

2009-11-02 Thread Kenneth Gonsalves
On Monday 02 Nov 2009 1:17:01 pm Kashif Azeem wrote: > I am interested. If you can write a little bit about yourself, type of > work, how to apply? > please take this offlist -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ --~--~-~--~~--