Re: Django app for data management and visualization

2011-04-07 Thread alessio c
Hi, for creating graph reports I strongly suggest to use Pswave and latex. There is a big lack of software in this direction (have you ever thought how easy could it be to make an app for running catalogues?). Here we fill power point slides that have to be updated everymonth because data change..

Re: Django app for data management and visualization

2011-04-07 Thread Marwan Al-Sabbagh
Hi Chris, thanks so much for all the information and the links, Its really helpful. I really like xlwt it's easy, fast, and powerful. I'll most likely start with allowing the user to export a table of results to an excel sheet where they can do whatever additional calculations, formatting, or ana

Have to submit a form twice (302) because of POST?

2011-04-07 Thread PieterB
Hi, It's a while since I've used django and I have a little problem with a new form. The user has to do the same thing twice, which is a bit awkward... First I go to the page with a normal href. [07/Apr/2011 11:00:29] "GET /request/ HTTP/1.1" 200 2055 After that, I've a page where the user has

Re: extending django-registration forms

2011-04-07 Thread Antonio Sánchez
i have tried a lot things, but nothing works... only when i delete that field, so that is the problem, but i dont know why!?!? :S On 6 abr, 22:29, Antonio Sánchez wrote: > Hi, im having problems extending django-registration register form. i > have extended auth.User -> UserProfile, and added som

Re: Django real world website samples (with django source codes)

2011-04-07 Thread Nikos K
Here is a list with a lot of sites based in django http://www.djangosites.org/ On 7 April 2011 08:48, django beginner wrote: > Hi all, > > Could someone please give a link on some of the samples for real world > Django websites? > Thanks and have a nice day! > > R

Re: django CMS 2.1.2 released

2011-04-07 Thread Parveen Arora
I am using 2.1.3, It looks awesome. -- Parveen Arora www.parveenarora.in E-Mail: m...@parveenarora.in -- 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

Nested admin command problem

2011-04-07 Thread Hamdy
Hi, I'm having a case in which I'm making an admin command that takes some options This's great and works just fine the problem appears when trying to call another command from within the first option_list = BaseCommand.option_list + ( make_option('--host', de

want small inventory project

2011-04-07 Thread GOUTAM KUMAR RANA
can any one please give link for some inventory site with source code.. ie user management, inventory(buy/sell --- add delete modify products), POS(pont of sale), reports. thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: want small inventory project

2011-04-07 Thread Shawn Milochik
This is the Django users mailing list -- not Google. Sorry for the confusion. Please use Google to find your answer. -- 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 unsubscr

Re: Have to submit a form twice (302) because of POST?

2011-04-07 Thread PieterB
Solved, a small error in my forms.py due to copy-paste :) On Apr 7, 11:00 am, PieterB wrote: > Hi, > > It's a while since I've used django and I have a little problem with a > new form. > The user has to do the same thing twice, which is a bit awkward... > > First I go to the page with a normal h

Re: want small inventory project

2011-04-07 Thread dfolland
You might want to check out Django resources. http://code.djangoproject.com/wiki/DjangoResources#Open-SourceDjangoprojects On Apr 7, 6:11 am, GOUTAM KUMAR RANA wrote: > can any one please give link for some inventory site with source > code.. > > ie user management, inventory(buy/sell   --- add

Re: unique identifier to distinguish an instance

2011-04-07 Thread Dan Gentry
When faced with a similar problem (I wanted to mark one of the 'B' records as the primary of the group), I extended the save function of the 'B' model to ensure that none of the other records were marked as such. def save(self): if self.primary: other_primaries = B_Model.ob

Re: want small inventory project

2011-04-07 Thread Cal Leeming [Simplicity Media Ltd]
Oh nice I didn't know about that link :S On Thu, Apr 7, 2011 at 2:19 PM, dfolland wrote: > You might want to check out Django resources. > > > http://code.djangoproject.com/wiki/DjangoResources#Open-SourceDjangoprojects > > On Apr 7, 6:11 am, GOUTAM KUMAR RANA wrote: > > can any one please give

how does this not work????

2011-04-07 Thread MikeKJ
-- View this message in context: http://old.nabble.com/how-does-this-not-work-tp31344282p31344282.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: want small inventory project

2011-04-07 Thread GOUTAM KUMAR RANA
Ya Mr Shawn Milo I m very much aware of that. Its not a personal mailing list. I just made a request so if any user have the link please give if possible,, not demanded. Thank for your kind reply... -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: how does this not work????

2011-04-07 Thread Cal Leeming [Simplicity Media Ltd]
Because DoesNotExist will only work on .get(). You need something like this: checkview = None try: res = UserAccount.objects.all().filter(user_id=check.id ).filter(video_id=pid).order_by('-datestamp',) checkview = res[0] assert res except AssertionError, e: pass On Thu, Apr 7, 2

Re: how does this not work????

2011-04-07 Thread Cal Leeming [Simplicity Media Ltd]
Oops, sorry, that should have been: try: res = UserAccount.objects.all().filter(user_id=check.id ).filter(video_id=pid).order_by('-datestamp',) assert res checkview = res[0] except AssertionError, e: pass On Thu, Apr 7, 2011 at 5:58 PM, Cal Leeming [Simplicity Media Ltd] < cal.le

Re: want small inventory project

2011-04-07 Thread GOUTAM KUMAR RANA
Thanks a lot.. -- 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...@googlegroups.com. For more options, visit

Object level permissions in templates

2011-04-07 Thread Eric Hutchinson
Hi, I'm trying to implement object level permissions as in: http://djangoadvent.com/1.2/object-permissions/ The problem i'm having is that while it works when calling user.has_perm('can_read', object) , but in the template when i attempt to do {% if perms.object.can_read %}can read{%end if %} my

Re: Serve a tracking pixel via Django

2011-04-07 Thread Cal Leeming [Simplicity Media Ltd]
+1 vote for option 5. On Fri, Apr 1, 2011 at 5:02 PM, Adam Nelson wrote: > > On Thursday, March 31, 2011 10:56:44 PM UTC-4, Javier Guerra wrote: > >> On Thu, Mar 31, 2011 at 7:18 PM, Russell Keith-Magee >> wrote: >> > Sure. Write a view that returns the content. It's 3 lines of code (a >> > cou

Send password reset without form?

2011-04-07 Thread Stu.Axon
I've got a piston based app, I want to be able to send a password reset email + having trouble working it out. I tried this so far: from django.contrib.auth.views import password_reset password_reset(request, post_reset_redirect = '/') But no email seems to be sent... not sure how to fully debug

framework web comparison

2011-04-07 Thread refreegrata
Hello list. I must to do a document to compare the most populars web frameworks (Django, Ruby, Zend, ...), in terms like performance, utilities, documentation, etc. For this document, the opinions of this list would be helpful. for example, for you, Why I must to choose Django instead of Ruby or Z

Re: framework web comparison

2011-04-07 Thread Sandro Dutra
I choose Django, in first place, for one motive: Python. But first I tested others web frameworks based on Python, like: Pylons and Turbo Gears, but Django offer me a excellent documentation with a simple tutorial and community support, a free and complete book and on a few minutes I've a project u

Re: framework web comparison

2011-04-07 Thread Mike Ramirez
On Thursday, April 07, 2011 11:35:20 am refreegrata wrote: > for example, for you, Why I must to choose Django instead of Ruby or > Zend? or something like this. > For me it's about the language each uses. Ruby, PHP, while very popular, are not languages I like to write in or use or even recomm

Using ifnotequal with a list object not working

2011-04-07 Thread aaron
Hi there, I'm trying to do something quite simple within my html using ifnotequal (dj 0.96). The code within my html is as follows: {% ifnotequal {{the_types.0}} "Nothing dude" %} {{the_types.0}} {% endifnotequal %} This returns the contents of the_types.

Re: Using ifnotequal with a list object not working

2011-04-07 Thread Ian Clelland
On Thu, Apr 7, 2011 at 12:25 PM, aaron wrote: > Hi there, > I'm trying to do something quite simple within my html using ifnotequal (dj > 0.96). The code within my html is as follows: >             {% ifnotequal {{the_types.0}} "Nothing dude" %} >                 {{the_types.0}} >             {% e

Re: Nested admin command problem

2011-04-07 Thread Ian Clelland
On Thu, Apr 7, 2011 at 3:10 AM, Hamdy wrote: > Hi, > > I'm having a case in which I'm making an admin command that takes some > options > This's great and works just fine > the problem appears when trying to call another command from within > the first > > option_list = BaseCommand.option_list + (

Re: Using ifnotequal with a list object not working

2011-04-07 Thread aaron
Hi Ian, thank you so much for the quick response. It worked perfectly!! Cheers, A -- 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

Re: framework web comparison

2011-04-07 Thread Nate Aune
You might find some answers in the recent survey that Boston companies using Django filled out. You can see the results of the survey here: http://djangozoom.com/blog/2011/04/03/companies-boston-using-django/ We asked 3 simple questions: - What are you using Django for? - Why did you choo

Re: User and efficient

2011-04-07 Thread wluka
? On 6 Kwi, 22:59, wluka wrote: > anyone? > > On 6 Kwi, 20:56, wluka wrote: > > > efficient for hit ratio and my database server. > > > On 6 Kwi, 20:43, bruno desthuilliers > > wrote: > > > > On 6 avr, 20:39, wluka wrote: > > > > > I have question about efficient with user. What is more effici

custom session engine

2011-04-07 Thread nitm
Hey. I was wondering if it's possible to create a custom session engine, one that will extend one of the existing engines (lets say the cache one)? If for example I want to persist the sessions in a nosql db, or just to add more attributes, functions to the session object. Thanks. -- You recei

Routers not being called when DB specified

2011-04-07 Thread Subsume
Here's a paste I put together, obviously I put a print statement within the allow_syncdb router in question. http://dpaste.com/529830/ -- 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@googlegroup

TypeError: get_models() got an unexpected keyword argument 'include_auto_created'

2011-04-07 Thread LIU Liang
I get a pinax project from SVN, then I new a django project for lance it. But when run as pydev: django. This error appears in Console: Traceback (most recent call last): File "/home/xavier/Programs/python/mysite-env/mysite/mysite/ manage.py", line 27, in execute_from_command_line() ..

Re: how does this not work????

2011-04-07 Thread Bryan Reed
On 04/07/2011 11:50 AM, MikeKJ wrote: 45 try: 46 checkview = UserAccount.objects.all().filter(user_id=check.id).filter(video_id=pid).order_by('-datestamp',)[0] 47 except UserAccount.DoesNotExist: 48 checkview = None and I get list index out of rang

Re: User and efficient

2011-04-07 Thread Alexander Schepanovski
Changing auth is slightly more efficient (you won't need join), it also makes your code more complex and will complicate future django upgrades. Using separate profile model OneToOned to auth.User looks better overall. Also, it is usually bad idea optimizing your app from start. Write a clean code

Re: framework web comparison

2011-04-07 Thread Kenneth Gonsalves
On Thu, 2011-04-07 at 11:48 -0700, Mike Ramirez wrote: > Ultimately, this question is best answered by yourself, by using, > testing, > playing with each of the tools you want to evaluate and find the one > that best > fits you, the development team and the project you're working > with/on. fro

Re: framework web comparison

2011-04-07 Thread Mike Ramirez
On Thursday, April 07, 2011 07:05:34 pm Kenneth Gonsalves wrote: > On Thu, 2011-04-07 at 11:48 -0700, Mike Ramirez wrote: > > Ultimately, this question is best answered by yourself, by using, > > testing, > > playing with each of the tools you want to evaluate and find the one > > that best > > fit

window.location.reload( true );

2011-04-07 Thread CrabbyPete
If I do this in my html javascript window.location.reload( true ); I get the following error. Can anyone tell me why? Traceback (most recent call last): File "C:\Python26\lib\site-packages\django\core\servers \basehttp.py", line 281, in run self.finish_response() File "C:\Python26\l

Re: Django real world website samples (with django source codes)

2011-04-07 Thread djangodjango django
thanks. On Thu, Apr 7, 2011 at 4:38 PM, Nikos K wrote: > Here is a list with a lot of sites based in django > > http://www.djangosites.org/ > > > > On 7 April 2011 08:48, django beginner wrote: > >> Hi all, >> >> Could someone please give a link on some of the samp

Re: framework web comparison

2011-04-07 Thread Kenneth Gonsalves
On Thu, 2011-04-07 at 19:12 -0700, Mike Ramirez wrote: > > from what I gather the point here is he is doing some sort of > research > > paper on the comparative merits of the three. > > Still the point stands, IMO. How well will you know in details what's > going > on? I can understand asking bei

Re: framework web comparison

2011-04-07 Thread Mike Ramirez
On Thursday, April 07, 2011 07:24:38 pm Kenneth Gonsalves wrote: > On Thu, 2011-04-07 at 19:12 -0700, Mike Ramirez wrote: > > > from what I gather the point here is he is doing some sort of > > > > research > > > > > paper on the comparative merits of the three. > > > > Still the point stands, I

Re: framework web comparison

2011-04-07 Thread Kenneth Gonsalves
On Thu, 2011-04-07 at 19:35 -0700, Mike Ramirez wrote: > > very true - in all fields. Currently we are in a huge controversy > > because the guys who rated our golf course messed it up because they > did > > not actually *play* the course and just relied on numbers. > > Ouch > > But isn't th

Re: framework web comparison

2011-04-07 Thread Mike Ramirez
On Thursday, April 07, 2011 07:52:36 pm Kenneth Gonsalves wrote: > On Thu, 2011-04-07 at 19:35 -0700, Mike Ramirez wrote: > > > very true - in all fields. Currently we are in a huge controversy > > > because the guys who rated our golf course messed it up because they > > > > did > > > > > not ac

Rendering a template from inside a templatetag?

2011-04-07 Thread Roy Smith
I've just written my first template tag (w/ django-1.3). The idea is to produce the HTML for a UI component which can get embedded in other templates. The top-level template is items.html (attached). My tag is item_html, defined in collage_extras.py (also attached). This works, but what I re

Unit test successful in isolation, fails when the whole app is tested

2011-04-07 Thread Evgeny
Hello, I have one test suite (among many others) in my application that succeeds in isolation, but fails when I run the whole battery. Could anyone suggest where to start looking? Thanks. Posting the code below. The test is counting number of emails sent as a result of posting a question at the f

Re: Rendering a template from inside a templatetag? (never mind)

2011-04-07 Thread Roy Smith
Do-oh! All I needed to do was t = template.loader.get_template('collage/item-component.html') return t.render(context) On Apr 7, 2011, at 11:14 PM, Roy Smith wrote: > You can't call render_to_response() from inside a tag. Or can you? -- Roy Smith r...@panix.com

Auto Generate a id ( 8 digits )

2011-04-07 Thread GOUTAM KUMAR RANA
How can I auto generate a next serial id and display in my form when its loaded . The id is used as primary key in my table and its of some 8 digits. thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

RE: Django app for data management and visualization

2011-04-07 Thread Chris Matthews
Hi Marwan, Another option that I'll investigate is Google Chart Tools / Image Charts (aka Chart API) see http://code.google.com/apis/chart/ Regards Chris -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Marwan Al-Sabbagh Sent: 07