Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread Picio
sr/lib/python2.5/site-packages/django/db/models/fields/__init__.py" > in get_db_prep_value > 353. return int(value) > > Exception Type: ValueError at /admin/grades/student/1/photos/desktop.png/ > Exception Value: invalid literal for int() with base 10: > '1/photos

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread Picio
> Your urls.py could be capturing that entire string and passing it as a > parameter that you are trying to cast to an integer. > > A bigger stack trace would be easier to track down the problem. > > On Sep 18, 8:34 am, Picio <[EMAIL PROTECTED]> wrote: >> I hav

Re: invalid literal for int() with base 10 trying to access uploaded image

2008-09-18 Thread Picio
I have the same issue, tried: Django 1.0 with sqlite3 (Wiindows) Django 1.0 with Mysql 5.0 (Windows) Django 1.0 with sqlite3 (Mac OS X) Daniele 2008/9/18 silk.odyssey <[EMAIL PROTECTED]>: > > I am using an imagefield from the admin interface. I can upload images > without problems but when I

date_hierarchy simple customization

2007-08-05 Thread Picio
Hello, Im running django .97 svn rev 5804, and I'd like to customize the date_hierarchy drill down to show only some records in thte admin change_list page "from a date" instead of searching the "exact date". Example: I need to see what i have done after 2006 march 22... So I drill this way 2006

Re: Admin interface and custom managers

2007-03-05 Thread Picio
It helps. Picio 2007/3/5, Michael Cuddy <[EMAIL PROTECTED]>: > > I've defined a custom manager for some of my models (similar to, but not > exactly like filtering by settings.SITE_ID). > > Unfortunately, the Model's manager doesn't seem to get used in the > admin

Re: admin filter change_list rows

2007-03-01 Thread Picio
on the superduperguruLukeplant great hack) 4) wait for the new Admin Class (maybe 0.96 will come soon) Bye Picio 2007/3/1, zenx <[EMAIL PROTECTED]>: > > Hi, > > How could I filter the results of my admin change_list page. I know I > can extend the change_list template but

from .95 to six

2007-02-26 Thread Picio
Hello, I have 0.95 working on my dev laptop. I'd like to upgrade It to 0.96 removing the old version. Which are the steps? (if many) Some doc to point me out? I appreceiate your help Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Admin customisation

2007-02-22 Thread Picio
Sorry for the mistake: class myCustomizedMan(models.Manager): def get_query_set(self): userid=threadlocals.get_current_user().id return super(myCustomizedMan,self).get_query_set().filter(your_user__id__exact=userid) It was userid... ;) I'm tired! 2007/2/22, Picio <[EM

Re: Admin customisation

2007-02-22 Thread Picio
of the djangobook 3) try my little tric (based on the superduperguruLukeplant great hack) 4) wait for the new Admin Class (maybe 0.96 will come soon) Bye Picio 5) read this fantasti news letter every day 2007/2/22, Django <[EMAIL PROTECTED]>: > > Hi, > > Is it possible to customise t

Re: Django Cheat Sheet

2007-02-13 Thread Picio
Many many thanks, It helped me find the "js" admin feature ! I've not seen It before ! Useful! Picio 2007/2/13, Benedict Verheyen <[EMAIL PROTECTED]>: > > John Sutherland schreef: > > Hi all, > > > > Firstly, sorry for the cross-post. > > > > M

date picker widget in my custom views

2007-02-11 Thread Picio
Hello, I'm using 0.95 and I'd like to use the django admin date picker (calendar.js) in my custom view. I saw that I have to use DateTimeShortcuts.js and calendar.js but I'm not a JavaScript expert. I can't figure out how to implement the widget in the page. Which are the right and only

Re: Customized Admin interface and logout link

2007-01-17 Thread Picio
I have the same problem. I'm trying to figure how It does this way. Please if you solved already, tell me how. Thanks Picio 2007/1/16, Jyrki Pulliainen <[EMAIL PROTECTED]>: Hi there, I've customized a voting application interface to show voting results on a custom view in admin. H

Re: apply a patch

2007-01-15 Thread Picio
solve in a more light way. Picio --~--~-~--~~~---~--~~ 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

apply a patch

2007-01-15 Thread Picio
Hello, dumb question: which is the chance that patch #1435 will be integrated in trunk before 1.0? How can I aplly this patch to my 0.95 trunk version of django? thanks Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

how to do SQL SUM

2007-01-13 Thread Picio
method to execute SQL statement but it would be better for me if there is any django built in method to do it. I hope It's not a dummy question! Thanks a lot. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

fw chapter 18 - custom view in admin

2007-01-11 Thread Picio
meone help to find where I'm wrong? (If needed I can put my code on pastebin) Thanks in advance. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Admin change_list special feature lost when I customize the view

2007-01-09 Thread Picio
stuff. Can someone help to find where I'm wrong? (If needed I can put my code on pastebin) Thanks in advance. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: How to hack admin interface?...and should I?

2006-12-18 Thread Picio
It's not a good thing to hack and customize the admin but when you just have 1 or 2 things to change, It's not fair to rebuild (against the DRY) another admin+1 little thing from scratch ! :) Thanks a lot for your patience. Please Help us. Picio 2006/12/18, Daniel Kvasnicka jr. <[EMAIL PROTEC

Django and CRM or ERP

2006-11-17 Thread Picio
Just courious if Is there anyone that have built or will build a CRM or an ERP using Django? Thanks Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Tutorial

2006-11-17 Thread Picio
Gotcha! For Linux you can try this: http://www.carthage.edu/webdev/?p=14 It's on Pyhton 2.4 and, again look to free comments. Picio 2006/11/17, Picio <[EMAIL PROTECTED]>: > This is on Windows but the install procedure on Linux is similar. > http://thinkhole.org/wp/2006/04/03/djang

Re: Tutorial

2006-11-17 Thread Picio
This is on Windows but the install procedure on Linux is similar. http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/ This is the official how to http://www.djangoproject.com/documentation/install/ Read all comments ! Picio 2006/11/17, BeagleBen <[EMAIL PROTECTED]>: > > H

Re: Blog engine

2006-11-16 Thread Picio
You can also try to build It yourself following this, It's funny! ;) http://www2.lamptraining.com/screencast/1 Picio 2006/11/16, Guillermo Fernandez Castellanos <[EMAIL PROTECTED]>: > > There is a few examples if you look in the mailing list: > http://code.djangoproj

Re: change list admin page

2006-11-15 Thread Picio
Please consider also that: using modelname._default_manager returns the name of the custom manager correctly so the manager is set well. 2006/11/16, doubtintom <[EMAIL PROTECTED]>: > > When a model contains (along with other fields): > owner = models.ForeignKey(User, related_name="owner",

change list admin page

2006-11-15 Thread Picio
Hello, Is there anyone that achieved to customize/filter the query set listed in the Admin "change list" page? How do you do It? Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

Re: unable to use Custom Manager

2006-11-13 Thread Picio
thing to hack and customize the admin but when you just have 1 or 2 things to change, It's not fair to rebuild (against the DRY) another admin+1 little thing from scratch ! :) Please Help us. Picio 2006/11/13, doubtintom <[EMAIL PROTECTED]>: > > Hi Picio, Luke and anyone els

Re: unable to use Custom Manager

2006-11-13 Thread Picio
This is what I have now, that is -my code -the two answers I got from the creator of our "Admin Hack Code" Luke. I think we havo do a strict comparison between our and It's code. My Django version is 0.95 official. Hope this helps. Picio My Code: http://paste.e-scribe.com/hold/2728/

Re: template tags to filter rows

2006-11-11 Thread Picio
Thanks Russell, I'm start thinking this way too, after the time spent trying to hack the Admin. Hopefully I will obtain some results in a week or two, with generic views, and of course now or in the future I' need to begin building my application without relying on the Admin. I Hope. Picio 2006

template tags to filter rows

2006-11-10 Thread Picio
Hello, I'm searching for ways to filter query_set inside the admin interface, without hacking It. Do you think is It possible through so template tags? Is there any article example you can point me out? Thanks. Picio --~--~-~--~~~---~--~~ You received

unable to use Custom Manager

2006-11-09 Thread Picio
your patience about all this posts I made. Picio --~--~-~--~~~---~--~~ 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 unsubscri

override list_fiilter behaviour

2006-11-09 Thread Picio
Hello, Is Ita possible to override the list_filter behaviour? Where It resides? Pico --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Admin issues

2006-11-09 Thread Picio
> Do I Have to use a custom manipulator? > > Thanks in advance. > Picio > Sorry I want to say CUSTOM MANAGER :( Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Admin issues

2006-11-09 Thread Picio
inside the page that shows all "Operazioni" records? Do I Have to use a custom manipulator? Thanks in advance. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

column value sums in Admin Interface

2006-11-06 Thread Picio
. Picio --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED

Re: Screencast Moved

2006-11-06 Thread Picio
Hey, I see a "1" at the end of the URL, when you think you will release the "2" and so forth? I was really impressed about how usefull was your screencast for me. I saw It 3 times and I'm going to see It again because It's a good tool to make my memory fresh! Thanks. Pi

(Admin) user logged in in model field

2006-11-05 Thread Picio
Hello, can someone help? I have a web app, that works pretty well just with the admin interface ! (very nice BTW) This is a model I have: class operation(models.Model): descr= models.TextField() data = models.DateField('giorno') time_spent =

Re: wrong hashed pw for web admin interface

2006-11-03 Thread Picio
the admin app. > > Hope it helps, > > G > > On 11/3/06, Picio <[EMAIL PROTECTED]> wrote: > > > > Hello gys, > > I'm probably falling again and again in some pitfall... > > I want to add a new user with permission in the web admin interface. >

wrong hashed pw for web admin interface

2006-11-03 Thread Picio
min interface, create the user, add permissions and PASTED the generated pw. Trying to log in with the new password I got again the error stating that my pw is not right. Where I'm wrong? thx Picio --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: IRC django channel

2006-10-23 Thread Picio
Hello Marcus, now I have XChat running, on freenode server. Do I have to register myself somewhere to use It? Picio 2006/10/23, Marcus Mendes <[EMAIL PROTECTED]>: > > Hi, > Just for start, you can use 'xchat'; choose freenode server , set > nickname to you and try to c

IRC django channel

2006-10-23 Thread Picio
to help. Picio --~--~-~--~~~---~--~~ 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 [EMAIL

install svn downloaded apps

2006-10-22 Thread Picio
Hello I hope this is not a DUMB question: Is there a step by step guide about how to install an application downloaded from the web? Let's say you have someone putting his good django-powered app on the web, under GPL. You achieve to download it with svn. What's next? Picio

Re: django embedded web server

2006-10-10 Thread Picio
WoW thanks, I'll give it a try. Is lighttpd setup more easy? Picio 2006/10/11, Joseph Heck <[EMAIL PROTECTED]>: > I've been using Apache+Mod_Python+Django on windows without any trouble at > all. The biggest "trick" is to set the configuration to enable the > mod_python

Re: django embedded web server

2006-10-10 Thread Picio
, 2006-10-10 at 12:01 +0200, Picio wrote: > > Hello, > > I saw in the official docs that It's not a good practice to use the > > django embedded web server in any production envionment. > > I have a little Intranet with 4 workstation and a home made server > > (based on an

django embedded web server

2006-10-10 Thread Picio
, my wife and two other friends working. There are no performance concerns since the I app I built It's very simple and only 2 or 3 users may work on It at the same time. So, what are the risks you see in me using the django web server to deploy a little web app? Picio

Re: django - kit

2006-10-07 Thread Picio
to do all the configuration work to make them happy togheter! ;) What I'm searching is a tool or a script or also some direction to build this "package" myself. Sorry if I speak in a bad way. And sorry for my english. Picio --~--~-~--~~~---~--~~ Yo

Re: django - kit

2006-10-07 Thread Picio
to Django. Am I right? Feel free to correct me. Picio --~--~-~--~~~---~--~~ 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

django - kit

2006-10-06 Thread Picio
hello, do you know about some kit to have: a web server python postgres and Django? something like Wamp. In other words is there any real PAID (made in AH) kit available? thanks a lot Picio --~--~-~--~~~---~--~~ You received this message because you

CSS in media folder

2006-09-15 Thread Picio
Hello, where can I find a simple guide about how to use CSS through the "media" folder? Thanks for any advice. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: django_settings_module

2006-09-15 Thread Picio
You mean I don't need to set DJANGO_SETTINGS_MODULE = ? Wow, this is good.Thanks Picio P.s.: Do you are the guy who built woodlog? If yes, Is there a little guide to install it? 2006/9/15, limodou <[EMAIL PROTECTED]>: > > On 9/15/06, Picio <[EMAIL PROTECTED]> wrote: > &

django_settings_module

2006-09-14 Thread Picio
Hello, If my project dir is /home/picio/blog (where I have __init__.py, models and the other stuff) what I have to set for DJANGO_SETTINGS_MODULE = ? Thanks. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: django - fastcgi - flup

2006-09-14 Thread Picio
OK done it works well. I've tried also: python manage.py runfcgi help and It went well. Thanks a lot. Picio 2006/9/14, Ivan Sagalaev <[EMAIL PROTECTED]>: > > Picio wrote: > > Thanks Ivan, just done the install. > > Is there a quick way to verify it's ok or do I have ju

sqlite

2006-09-14 Thread Picio
Hello, reading the documentation I saw that django has support for sqlite3, does this means that I can use it (also) with sqlite2 version 2.8.16-1? In other words does Django support earlier versions of sqllite? If I pose thee wrong question, just in few word: Which version of sqlite django

Re: django - fastcgi - flup

2006-09-14 Thread Picio
Thanks Ivan, just done the install. Is there a quick way to verify it's ok or do I have just to finish to read the doc at http://www.djangoproject.com/documentation/fastcgi/ ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

django - fastcgi - flup

2006-09-14 Thread Picio
rse django is already well set on the server. I can also move to apache and mod_python but since lighttpd is doing well It's job, I prefer to stay with It. Thanks. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

magic removal mean?

2006-09-11 Thread Picio
sorry guys for the boring question, what is the meaning , exactly, of the "magic removal"? Thanks. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Weblog app simple?

2006-09-10 Thread Picio
A, It have to be simple. I hope that I have not misunderstood the DRY principle, but since I'm following a thread where It seems people want to build a public repositoryfo django apps. thanks a lot. Picio --~--~-~--~~~---~--~~ You received this message because you are

Re: Italian Documentation

2006-09-10 Thread Picio
"Mantua me genuit..." Many many thanks. Daniele --~--~-~--~~~---~--~~ 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

Re: Django book...2...Apress

2006-09-09 Thread Picio
So It's only a matter of waiting until October? You think It's a reliable promise? 2006/9/9, Jeremy Dunck <[EMAIL PROTECTED]>: > > On 9/9/06, Picio <[EMAIL PROTECTED]> wrote: > > > > What I don't understand is > > if there will be a Open & Free Django Bo

Re: Django book...2...Apress

2006-09-09 Thread Picio
What I don't understand is if there will be a Open & Free Django Book or not. Do you know something about it? Picio 2006/9/8, James Bennett <[EMAIL PROTECTED]>: > > On 9/8/06, Daniele Spino <[EMAIL PROTECTED]> wrote: > > Apress will publish "Pro D

Django on NSLU2

2006-08-30 Thread Picio
Hello, Did you know if there is someone that installed Django on this cool little device: www.nslu2-linux.org ?? Ive one of those with lighttpd+fastCGI and I'd like to know something about Django+Nslu2 before a try. Thanks, Picio --~--~-~--~~~---~--~~ You

Django Books

2006-08-30 Thread Picio
Hello, I'm a Django newbie, I finished right now the tutorial, I read also other text coming from my docs dir in Django_0.95. Do you know if there is some Book like what I see here http://www.rubyonrails.org/docs but of course for Django? Can you give me any advice like where I have to go after

screencasts for newbies on showmedo

2006-08-27 Thread Picio
o see Django worked-example videos for building e.g. a 'newspaper', wine-store, blog and other practical applications." So if one of you guys is interested in I hope this request is not bad for anybody in the community, but feel free to tell me if I have to cancel the request for some rea

waiting 1.0

2006-08-26 Thread Picio
start dive into Django now at 0.95 time instead of waiting until 1.0? Basics will change a lot after release 1.0? Thanks for any advice. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Italian Documentation

2006-08-25 Thread Picio
Hello, is there anyone that knows about any Italian translated Django documentation? I'm translating the basic tutorial (1,2,3,4) for myself, is it helpful for anybody? Let me know. Thanks a lot Picio --~--~-~--~~~---~--~~ You received this message because you