Re: render_to_response taking 50 seconds!

2009-11-03 Thread Low Kian Seong
But I am confused here. How do iterate through the data another time? Do I call the select_related in my views.py code like: manager_info = found_entries.select_related() then how do i iterate through manager_info in my template? On Tue, Nov 3, 2009 at 3:46 PM, Jani Tiainen wrote: > > Your mode

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

2009-11-03 Thread Stephen Moore
well, my solution wasn't working still... so more research has finally led me to the real problem. http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ I had the PythonInterpreter setting in the apache configurations to the same value. Changing it to a different value for the produc

Re: render_to_response taking 50 seconds!

2009-11-03 Thread Low Kian Seong
On Tue, Nov 3, 2009 at 3:41 PM, James Bennett wrote: > > 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 obje

Re: render_to_response taking 50 seconds!

2009-11-03 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. One other thing is that the Django template system isn't really optimized for

Re: Form that updates a list of items?

2009-11-03 Thread Julien Petitperrin
On Mon, Nov 2, 2009 at 5:28 PM, Nick Arnett wrote: > > > 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-objec

why deliver .csv when you want to be delivering .xls?

2009-11-03 Thread Chris Withers
James Bennett wrote: > 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. > > One other thing is that the Django template sys

Re: why deliver .csv when you want to be delivering .xls?

2009-11-03 Thread James Bennett
On Tue, Nov 3, 2009 at 3:22 AM, Chris Withers wrote: > ...or you could just use xlwt and deliver the real deal ;-) I generally prefer CSV because it's readable by more than just Excel -- any decent programming language can read it, most databases can import directly from it, and in a pinch even

Re: why deliver .csv when you want to be delivering .xls?

2009-11-03 Thread James Bennett
On Tue, Nov 3, 2009 at 3:22 AM, Chris Withers wrote: > That said, I'd be surprised if the templating is the problem here, it'll > be the interaction with the database that's taking the time... Depends. The {% for %} tag can be relatively expensive, performance-wise, due to all the context manipu

How can we capture the login time in Django

2009-11-03 Thread vishak
Hi all, I was going through an application that uses Django 1.0.2 where we have a requirement to track down the 'login time' and 'log out time' . I'm able to track logout time. But do not have idea on capturing login time. Can anyone give idea on this or suggest about this implementation.

Re: How can we capture the login time in Django

2009-11-03 Thread Tom Evans
http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.last_login If you need more fine grained control/history, then you control the points where login and logout occur. Simply add logging at the appropriate points. On Tue, Nov 3, 2009 at 9:30 AM, vishak wrote: > > H

Re: How can we capture the login time in Django

2009-11-03 Thread Jani Tiainen
vishak kirjoitti: > Hi all, > > I was going through an application that uses Django 1.0.2 where > we have a requirement to track down the 'login time' and 'log out > time' . I'm able to track logout time. But do not have idea on > capturing login time. Can anyone give idea on this or sugges

Re: render_to_response taking 50 seconds!

2009-11-03 Thread bruno desthuilliers
On 3 nov, 09:09, Low Kian Seong wrote: > But I am confused here. How do iterate through the data another time? > Do I call the select_related in my views.py code like: > > manager_info = found_entries.select_related() > > then how do i iterate through manager_info in my template? That's not how

Force template rendering in specific language

2009-11-03 Thread Till Backhaus
Hi django-users, how can i force django to render a template in a specific language? Consider this simple piece of code: t = get_template('internationalized_template.html') document = t.render(Context(locals())) The code is taken from an application where I create PDF files (via pisa) for al

Re: Force template rendering in specific language

2009-11-03 Thread Tom Evans
from django.utils import translation translation.activate(language_code) On Tue, Nov 3, 2009 at 10:43 AM, Till Backhaus wrote: > > Hi django-users, > > how can i force django to render a template in a specific language? > > Consider this simple piece of code: > > t = get_template('internationali

Re: render_to_response taking 50 seconds!

2009-11-03 Thread Low Kian Seong
Pretty much confirmed it's the rendering or pulling of data from database: 1. I tried to render a html page instead of Excel. Same speed. So this kicks out the theory of rending of excel is slowing the page down. 2. I tried shorting out all the data from the rendered page. Page came up in less t

Re: syncdb for INSTALLED_APPS throws errors

2009-11-03 Thread sridharpandu
Thank You --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr..

Re: custom view decorator with parameter

2009-11-03 Thread bruno desthuilliers
On 2 nov, 19:39, nostradamnit wrote: > 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

Django Admin Template Directory

2009-11-03 Thread sridharpandu
Hi I am reading the second part of the Django tutorial on the Django website. The Tutorial mentions that I should copy the base_site.html page from "django/contrib/admin/templates" to an Admin directory under my HOME directory. The problem is I am unable to locate this "django/ contrib/admin/temp

Re: Django Admin Template Directory

2009-11-03 Thread Daniel Roseman
On Nov 3, 11:38 am, sridharpandu wrote: > Hi > > I am reading the second part of the Django tutorial on the Django > website. The Tutorial mentions that I should copy the base_site.html > page from "django/contrib/admin/templates" to an Admin directory under > my HOME directory. The problem is I

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

2009-11-03 Thread Russell Keith-Magee
On Tue, Nov 3, 2009 at 12:19 PM, Christophe Pettus wrote: > > > 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 co

Re: Django Admin Template Directory

2009-11-03 Thread sridharpandu
I didn't specify a path. I did an apt-get install on Ubuntu 9.04 (later upgraded to 9.10). regards Sridhar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: install help please.

2009-11-03 Thread paulmo
thanks for the response but you're ahead of me already..."cd" as in put in a compact disc? where is the "untar directory"? On Nov 3, 2:07 am, Low Kian Seong wrote: > On Tue, Nov 3, 2009 at 1:28 PM, paulmo wrote: > > > goal is to check out google appengine using python and django if > > possible

Re: render_to_response taking 50 seconds!

2009-11-03 Thread esatterwh...@wi.rr.com
You might want to consider installing the debug toolbar ( http://github.com/robhudson/django-debug-toolbar ). it displays the amount of time taken for all of the rendering steps. It will defiantly help you narrow down the major culprits. On Nov 3, 5:12 am, Low Kian Seong wrote: > Pretty much co

Autocomplete tags for django-tagging

2009-11-03 Thread Ludwik Trammer
Hi, I'm creating my first django powered website for a client. He requested tags autocomplition in Django Admin. I created a small reusable app that plugs into django-tagging and provides a form widget that does exactly that (using jquery-autocomplete). U can download it and read more at: http:/

User Login in django

2009-11-03 Thread Denis Bahati
Hi there, Am creating a login screen using django form but failing to get the concept on how can i query from the database to get the user verified as a registered user. I want that a user is validated and displayed with his/her profile as well update his/her profile. The user can view only the al

Re: Django Admin Template Directory

2009-11-03 Thread Ludwik Trammer
> I didn't specify a path. I did an apt-get install on Ubuntu 9.04 Than it should be under "/var/lib/python-support/python2.6/django/" Ludwik PS: "whereis" locates only binary and man files. You may want to use "locate" or "find" instead. --~--~-~--~~~---~--~~ Yo

NoReverseMatch raised after upgrading django to trunk

2009-11-03 Thread Adrián Ribao
Hello, I've just updated django to the las revision and suddenly I'm getting a NoReverseMatch when using the reverse funcion. This is the line of the code: return HttpResponseRedirect(reverse('app.views.info', args=[p.id,])) And this is the url: (r'^any-path-(?P\d)\.html$', 'info'), Does any

Re: install help please.

2009-11-03 Thread sstein...@gmail.com
On Nov 3, 2009, at 7:26 AM, paulmo wrote: > > thanks for the response but you're ahead of me already..."cd" as in > put in a compact disc? where is the "untar directory"? 'cd' as in change directory The 'untar' directory is wherever the `tar` command unarchived the contents of the .tar.gz fi

Re: render_to_response taking 50 seconds!

2009-11-03 Thread bruno desthuilliers
On 3 nov, 12:12, Low Kian Seong wrote: > Pretty much confirmed it's the rendering or pulling of data from database: > > 1. I tried to render a html page instead of Excel. Same speed. > So this > kicks out the theory of rending of excel is slowing the page down. I assume you meant "csv", not "Exc

Re: User Login in django

2009-11-03 Thread bruno desthuilliers
On 3 nov, 13:37, Denis Bahati wrote: > Hi there, > Am creating a login screen using django form but failing to get the concept > on how can i query from the database to get the user verified as a > registered user. Do you have a real need for reinventing the wheel ? http://docs.djangoproject.co

Re: render_to_response taking 50 seconds!

2009-11-03 Thread Михаил Лукин
I strongly suggest you to use pagination here. 2009/11/3 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

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

2009-11-03 Thread Bill Freeman
On Tue, Nov 3, 2009 at 7:05 AM, Russell Keith-Magee wrote: > > On Tue, Nov 3, 2009 at 12:19 PM, Christophe Pettus wrote: >> >> >> 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 (

Crop interface for ImageFields?

2009-11-03 Thread Rodrigo Cea
Is there an app or snippet that integrates a cropping interface to image fields in the admin? Something in flash or javascript, like the one in flickr, for example? I have some photoshop-challenged users who are always uploading pictures in the wrong sizes. Said pictures get cropped automatically

Re: satchmo SSLRedirectMiddleware for /admin not working with 1.1.1

2009-11-03 Thread captainmish
Hi Still chasing this one, and it seems that POSTs in the admin will use http, not https when posting. Looking at the admin template, the action is {{ form_url }} - this seems to be None, I was wondering about using something like request.HTTP_REFERER in there, to make sure it stays on https - an

Uploading and using images in a database application

2009-11-03 Thread derek
Given that I am a "wet behind the ears" newbie, maybe I should not be attempting this, but... I need some simple and straightforward guidance on uploading and using images in a simple database application, which (so far) only uses the admin interface. I working on my development machine (i.e. no A

Re: render_to_response taking 50 seconds!

2009-11-03 Thread Low Kian Seong
On 11/3/09, esatterwh...@wi.rr.com wrote: > > You might want to consider installing the debug toolbar ( > http://github.com/robhudson/django-debug-toolbar ). Yeah, I tried this before but then when you are trying to generate an Excel spreadsheet somehow it fails to capture the right data and dis

REST failed urlopen

2009-11-03 Thread Jose Blanca
Hi: I'm trying to implement my first RESTful application. I've divided the code into two applications, the server and the client. For the time being the server (localhost:8000/server/) has to return a list of resources (['resource1', 'resource2']) usring json. That's working, if I go to the url I

Re: REST failed urlopen

2009-11-03 Thread Jose Blanca
I've done some more tests. I have two views, one that serves the data and other that consumes it. If I point my browser to http://localhost:8000/server/ I get a response. If I point my browser to http://localhost:8000/client/ I do not get a response and django isn't able to provide one even if I o

Re: forms vs modelforms

2009-11-03 Thread Ross
Ok thanks for the help so far. I've gotten the hang of how to use the create/update/delete generic views. My problem now happens when I try to use the display a form for a particular league. My home page lists all the leagues. For simplicity, we'll say there's a men's league and a women's league d

Re: install help please.

2009-11-03 Thread paulmo
S thanks for the message; ran the command and got: python is not recognized as internal or external command. you're right i'm way over my head here but that's nothing new. i'd like to play around with appengine and python (or java), and that's how i came across django. admittedly i don't need it

Re: REST failed urlopen

2009-11-03 Thread Tom Evans
How are you running django? Are you going to a view at /client/, which then tries to access a different view using urllib? IE, from the view at /client/, are you trying to access the same server as you are running on? Remember that the django 'runserver' web server is single threaded, single proc

Re: REST failed urlopen

2009-11-03 Thread Jose Blanca
On Nov 3, 5:53 pm, Tom Evans wrote: > How are you running django? > > Are you going to a view at /client/, which then tries to access a different > view using urllib? IE, from the view at /client/, are you trying to access > the same server as you are running on? > > Remember that the django 'run

Working the tutorial - and I'm stuck

2009-11-03 Thread Todd Blanchard
What did I screw up? TemplateSyntaxError at /polls/1/ Invalid block tag: 'csrf_token' Request Method: GET Request URL:http://localhost:8000/polls/1/ Exception Type: TemplateSyntaxError Exception Value: Invalid block tag: 'csrf_token' Exception Location: /Library/Python/2.6/site-pac

Re: Working the tutorial - and I'm stuck

2009-11-03 Thread DrBloodmoney
Make sure that you have the CSRF middleware installed. On Nov 3, 2009 12:09 PM, "Todd Blanchard" wrote: What did I screw up? TemplateSyntaxError at /polls/1/ Invalid block tag: 'csrf_token' Request Method:GETRequest URL:http://localhost:8000/polls/1/Exception Type: TemplateSyntaxErrorException

Re: Working the tutorial - and I'm stuck

2009-11-03 Thread Todd Blanchard
As a total noob - I do that how? On Nov 3, 2009, at 9:14 AM, DrBloodmoney wrote: > Make sure that you have the CSRF middleware installed. > > >> On Nov 3, 2009 12:09 PM, "Todd Blanchard" wrote: >> >> What did I screw up? >> >> TemplateSyntaxError at /polls/1/ >> Invalid block tag: 'csrf_token' >

Re: Working the tutorial - and I'm stuck

2009-11-03 Thread Todd Blanchard
From settings.py MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.csrf.middleware.CsrfMiddleware', ) I added the last line and

Re: change of m2m field not reflected

2009-11-03 Thread Russell Keith-Magee
2009/11/4 Georg Göttlich : > > Hi everybody, > > I have a problem with denormalizing a m2m field. For several reasons I > want to save a CSV string of all the authors of a text. The authors > are manage in an m2m field to auth.user. The changes are made with the > admin. > > First I tried to overr

Django job at the Alliance for Climate Protection

2009-11-03 Thread Jon Lesser
Hello, I'm looking for a Django programmer to work with me full-time at the Alliance for Climate Protection. If you're in DC, or want to be, check out the job posting below. Best, Jon Lesser Lead Developer, repo...@home - Web Developer @ Alliance for Climate Protection, repo...@home

Re: Crop interface for ImageFields?

2009-11-03 Thread pjrhar...@gmail.com
YUI has a great library for this. Should be fairly easy to integrate with django, but I haven't seen a snippet for it. Should save you some time on the client side though. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Where are forms usually defined?

2009-11-03 Thread Nick Arnett
I find myself frequently frustrated by examples and tutorials that include code snippets that don't identify where they live. In particular, I haven't quite figured out where forms usually are defined and then where they need to be imported. I see that forms sometimes are in a file called forms.p

Model Loading Problem

2009-11-03 Thread Collin Anderson
Hello All, I am getting the following error on Django 1.1: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "django/c

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

2009-11-03 Thread Bill Freeman
On Tue, Nov 3, 2009 at 9:14 AM, Bill Freeman wrote: > On Tue, Nov 3, 2009 at 7:05 AM, Russell Keith-Magee > wrote: >> >> On Tue, Nov 3, 2009 at 12:19 PM, Christophe Pettus wrote: >>> >>> >>> On Nov 2, 2009, at 2:14 PM, Bill Freeman wrote: My presumption is that the older PostgreSQL, expect

Re: Where are forms usually defined?

2009-11-03 Thread f4nt
I've seen that before as well, and I don't particularly like it. Some people also customize the admin in the models.py file, which is also annoying :). On Nov 3, 1:28 pm, Nick Arnett wrote: > On Tue, Nov 3, 2009 at 11:26 AM, f4nt wrote: > > > forms.py is pretty standard. You'd end up importing

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

2009-11-03 Thread Russell Keith-Magee
On Wed, Nov 4, 2009 at 3:05 AM, Bill Freeman wrote: > > On Tue, Nov 3, 2009 at 9:14 AM, Bill Freeman wrote: >> On Tue, Nov 3, 2009 at 7:05 AM, Russell Keith-Magee >> wrote: >>> >>> On Tue, Nov 3, 2009 at 12:19 PM, Christophe Pettus >>> wrote: On Nov 2, 2009, at 2:14 PM, Bill Fr

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

2009-11-03 Thread Bill Freeman
On Tue, Nov 3, 2009 at 6:46 PM, Russell Keith-Magee wrote: > > On Wed, Nov 4, 2009 at 3:05 AM, Bill Freeman wrote: >> >> On Tue, Nov 3, 2009 at 9:14 AM, Bill Freeman wrote: >>> On Tue, Nov 3, 2009 at 7:05 AM, Russell Keith-Magee >>> wrote: On Tue, Nov 3, 2009 at 12:19 PM, Christophe

(Re)Using Django Models in eventlet environment

2009-11-03 Thread tyler
Howdy folks, I'm working on some backend services using eventlet[0] and I would like to re-use my Django models code, doing so "out of the box" is proving more difficult than I had hoped. In order to prevent blocking coroutines, I believe I need to find some way to smuggle a cursor coming from the

Keeping state in the FormWizard: instance attributes considered harmful?

2009-11-03 Thread Mark L.
Since FormWizard is instantiated only once (in the urlconf, as proposed in the documentation), no assumptions can be made about the integrity and validity of its instance methods/attributes. It is very easy to run into a situation, when self.form_list is altered and not restored to a value, with w

Re: Where are forms usually defined?

2009-11-03 Thread Nick Arnett
On Tue, Nov 3, 2009 at 11:26 AM, f4nt wrote: > > forms.py is pretty standard. You'd end up importing them in your > views.py. Thanks... that's what I was guessing. But it appears to me that I sometimes see ModelForms in models.py... wondering if that's typical. Nick --~--~-~--~~-

Re: Interrelated form fields

2009-11-03 Thread Julián C . Pérez
Nice discussion :D Any help on Ajax methods or something to achieve this? On Oct 30, 4:25 am, bruno desthuilliers wrote: > On 29 oct, 18:33, Daniel Roseman wrote: > > > On Oct 29, 4:42 pm, bruno desthuilliers > > > > > wrote: > > > (FWIW and IIRC, the appropriate english term is 'Customer' -

Re: Adding a custom toolbar button

2009-11-03 Thread eka
Tried that but since the init of tinymce is done in a string and later encoded to JSON the JS function never get to be a JS function... Or maybe I'm missing something. Regards On Oct 21, 7:07 am, Joost Cassee wrote: > On 20 okt, 00:54, eka wrote: > > > Is there any way to achieve this with dja

Re: Where are forms usually defined?

2009-11-03 Thread f4nt
forms.py is pretty standard. You'd end up importing them in your views.py. On Nov 3, 1:20 pm, Nick Arnett wrote: > I find myself frequently frustrated by examples and tutorials that include > code snippets that don't identify where they live.  In particular, I haven't > quite figured out where f

Re: Django SAAS projects

2009-11-03 Thread revolunet
Hi I developed a django based SAAS project and im very happy with it I have a single main project and differents 'branches' for each customer. We use git to manage the workflow and a github account which helps a lot for centralisation. Customers versions are juste differents settings with diffe

Re: pdb doesn't break in django

2009-11-03 Thread skunkwerk
thanks Bill, its working now - i wasn't aware you had to change the runserver command. this is what I used: python -m pdb manage.py runserver thanks! On Oct 30, 10:52 am, Bill Freeman wrote: > It works for me. > > Maybe you're not getting to those statements?  Another module of the same na

django ajax admin components

2009-11-03 Thread }--o
Hi, lately I've written several small snippets to get a smoother admin experience, and I thought about integrating them into the admin app. Is there any interest in these? Are the contrib authors interested in accepting such a contribution? What I did: * change generic relation's content_type, ob

Re: Working the tutorial - and I'm stuck

2009-11-03 Thread Flint
I've just caught same error. The deal is that my version of django is 1.1.1, but {% scrf_token %} appeared in django v.1.2. In earlier versions you simply should add the line 'django.contrib.csrf.middleware.CsrfMiddleware', to MIDDLEWARE_CLASSES in your settings.py file (but make sure that this li

Django and PostgreSQL/Slony for load-balancing?

2009-11-03 Thread Adam Seering
Hi, We're running a website that usually runs just fine on our server; but every now and then we get a big load burst (thousands of simultaneous users in an interactive Web 1.5-ish app), and our database server (PostgreSQL) just gets completely swamped. We'd like to set up some

ecommerce design decision needed :-)

2009-11-03 Thread Will Hardy
Dearest Django community, I'm working on a ecommerce framework to help keep my sites efficient/modular/maintainable. I'm pretty happy with my backend, but I can't work out how I want it to be made accessible to views/templates. Currently it uses a declarative syntax to define the items, extras a

Deploying Django to production environment

2009-11-03 Thread JohnL
Hi All, I just joined linode and followed there instructions in setting up Django at http://library.linode.com/lamp-guides/ubuntu-9.10-karmic/. ServerAdmin squ...@bucknell.net ServerName bucknell.net ServerAlias www.bucknell.net DocumentRoot /srv/www/bucknell.net/public_htm

Re: User Login in django

2009-11-03 Thread Denis Bahati
Am real need to reinvent the wheel because i have a project which needs to define some user roles, and enable users to update the status of their own properties and not the other property. Thanks in advance for any help you give me. On Tue, Nov 3, 2009 at 4:32 PM, bruno desthuilliers < bruno.desth

change of m2m field not reflected

2009-11-03 Thread Georg Göttlich
Hi everybody, I have a problem with denormalizing a m2m field. For several reasons I want to save a CSV string of all the authors of a text. The authors are manage in an m2m field to auth.user. The changes are made with the admin. First I tried to override the save() method of the model. This di

Adding a password confirm on modelForm

2009-11-03 Thread Denis Bahati
Hi All, I have my model which registers users of my system and i created a modelForm to make all fields of the model appear as html form which has no confirm password. How can i add a field to let users confirm their password? Here is my model and modelForm class User(models.Model): title = models

Re: pdb doesn't break in django

2009-11-03 Thread Karen Tracey
On Tue, Nov 3, 2009 at 3:35 PM, skunkwerk wrote: > > thanks Bill, > its working now - i wasn't aware you had to change the runserver > command. this is what I used: > > python -m pdb manage.py runserver > > FWIW, I use import pdb; pdb.set_trace() quite frequently, on both Linux and Windows box

Accessing 'bytea' field using django.

2009-11-03 Thread ds99
Hi, I am using django with postgres as backend. Some of the fields in the table are of type "bytea"(bytearray). Which django fields should I use while defining a model for such tables? for eg: To access "boolean" we use BooleanField while modelling. I want to know how to access "bytea" type using

Re: Adding a password confirm on modelForm

2009-11-03 Thread ankit rai
in ur model form add a field called *confirm_password =CharField(max_length=200) * and then in admin u can add this field in fieldset .This will get display in ur UI For confirming the password is same or not use *clean* method and get the value of both the fields i.e password and confirm_passwor

Re: Accessing 'bytea' field using django.

2009-11-03 Thread James Bennett
On Tue, Nov 3, 2009 at 11:27 PM, ds99 wrote: > I am using django with postgres as backend. Some of the fields in the > table are of type "bytea"(bytearray). Which django fields should I use > while defining a model for such tables? You should write a field which does this. There is no field buil

Re: Accessing 'bytea' field using django.

2009-11-03 Thread Kenneth Gonsalves
On Wednesday 04 Nov 2009 10:57:24 am ds99 wrote: > I am using django with postgres as backend. Some of the fields in the > table are of type "bytea"(bytearray). Which django fields should I use > while defining a model for such tables? > > for eg: To access "boolean" we use BooleanField while mod

Re: Autocomplete tags for django-tagging

2009-11-03 Thread Brian Jiang
Thanks for sharing! On Nov 3, 8:35 pm, Ludwik Trammer wrote: > Hi, > > I'm creating my first django powered website for a client. He > requested tags autocomplition in Django Admin. I created a small > reusable app that plugs into django-tagging and provides a form widget > that does exactly th

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