TabularInline Image js bug when adding

2012-05-02 Thread jean polo
hello, just upgrade to 1.4 and I have a weird problem in the admin (therefore the weird post title...): I use TabularInline Image fields in my admin. the problem is when I click on "Add an object Image", the new field get inserted *before* the latest one and therefore its id is wrong and the I

admin fieldsets for different users

2011-02-09 Thread jean polo
hi I couldn't reply to this post (http://www.mail-archive.com/django- us...@googlegroups.com/msg108414.html) so I have to write a new one, sorry. is there a solution to this now ? what Profuel suggested: if not request.user.is_superuser: self.exclude.append('A') else: self.exclude.pop('A

Re: admin users permissions question

2011-02-08 Thread jean polo
On Feb 8, 5:33 pm, Andres Lucena wrote: > On Tue, Feb 8, 2011 at 5:00 PM, jean polo wrote: > > hi > > > I created some User Profile in my app. > > Each user can add some posts and now I'd like one user to be able to > > view/modify only his/her posts i

admin users permissions question

2011-02-08 Thread jean polo
hi I created some User Profile in my app. Each user can add some posts and now I'd like one user to be able to view/modify only his/her posts in the admin, and not the posts from other users. I have no idea about how to do this. Any hint or link to a tutorial/doc would be very helpful, so far I c

Re: django-ckeditor causes an unhandled exception

2010-10-19 Thread jean polo
replying to myself... this was fixed 5 days ago on github. updating to latest django-ckeditor solved it. _y On Oct 19, 12:49 pm, jean polo wrote: > hallo ! > > I installed django-ckeditor-0.0.7, run it smoothly locally but now I'm > trying to commit the changes on my server, I

django-ckeditor causes an unhandled exception

2010-10-19 Thread jean polo
hallo ! I installed django-ckeditor-0.0.7, run it smoothly locally but now I'm trying to commit the changes on my server, I get an Unhandled Exception: [SNIP] File "/usr/local/alwaysdata/python/django/1.2.1/django/core/ urlresolvers.py", line 247, in _get_url_patterns raise ImproperlyConfigu

Re: UnicodeEncodeError

2010-09-30 Thread jean polo
best solution but a good habit anyway =) cheers, _y On Sep 30, 2:20 pm, Karen Tracey wrote: > On Wed, Sep 29, 2010 at 12:59 PM, jean polo wrote: > > > > > Hi. > > I get an 'UnicodeEncodeError' if I upload a file (ImageField) with non- > > ascii chars in

Re: UnicodeEncodeError

2010-09-29 Thread jean polo
On Sep 29, 11:24 pm, werefr0g wrote: >   Tu peux m'envoyer ton fichier ? je v�rifie son encodage. ca y est > Sinon, quel OS utilises-tu ? I use ubuntu 9.10 (but problem is the same with osx or windows) > > Le 29/09/2010 23:14, jean polo a �crit : > > > On Sep 29,

Re: UnicodeEncodeError

2010-09-29 Thread jean polo
On Sep 29, 10:38 pm, werefr0g wrote: >   Jean, > > Sorry, the three points are: > >  >  # -*- coding: utf-8 -*- line >  > checking the module's file is actually utf-8 encoded >  > using codecs module for file like read/ write operations. Well, not sure I have the skills to check these (except the

Re: UnicodeEncodeError

2010-09-29 Thread jean polo
On Sep 29, 9:42 pm, werefr0g wrote: >   Isn't the filename a string? > > It may not be the solution but I think you should try them at least > since they are very quick to apply. As I saw something implying os > module I thought that before Django handles the string, it must encode > by os module.

Re: UnicodeEncodeError

2010-09-29 Thread jean polo
sgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> thanks, _y On Sep 29, 8:15 pm, Steve Holden wrote: > It might be helpful to provide rather more of the traceback information. > > Also,

Re: UnicodeEncodeError

2010-09-29 Thread jean polo
>  Hi, > > > You should check that your file is actually utf-8 encoded and add the > > folliwing right after shebang: > > # -*- coding: utf-8 -*- > > > Le 29/09/2010 18:59, jean polo a crit : > >> Hi. > >> I get an 'UnicodeEncodeError'

Re: UnicodeEncodeError

2010-09-29 Thread jean polo
e contains only ascii chars) gives no errors. cheers, _y On Sep 29, 7:05 pm, werefr0g wrote: >   Hi, > > You should check that your file is actually utf-8 encoded and add the > folliwing right after shebang: > # -*- coding: utf-8 -*- > > Le 29/09/2010 18:59, jean pol

UnicodeEncodeError

2010-09-29 Thread jean polo
Hi. I get an 'UnicodeEncodeError' if I upload a file (ImageField) with non- ascii chars in my application (django-1.2.1). I added: export LANG='en_US.UTF-8' export LC_ALL='en_US.UTF-8' in my /etc/apache2/envvars as stated here: http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#if-

Re: No module named shortcuts

2010-09-13 Thread jean polo
doh, sorry I didn't even think about re-installing django. indeed it works fine now.. dunno what have happened, didn't update or anything, weird. anyway, thanks for your time and help =) cheers, _y On Sep 13, 10:01 am, bruno desthuilliers wrote: > On 12 sep, 21:30, jea

Re: No module named shortcuts

2010-09-12 Thread jean polo
django.contrib.admin is the problem then.. I can access the shell if I comment it.. problem is that I have no idea about why or where to look again thanks for the help _y On Sep 12, 7:58 pm, bruno desthuilliers wrote: > Duh... > > Comment all your INSTALLED_APPS and try running "./manage.py

Re: No module named shortcuts

2010-09-12 Thread jean polo
_init__.pyc sorry but I'm not sure to get what I'm supposed to find with this ? cheers, _y On Sep 12, 5:44 pm, Albert Hopkins wrote: > On Sun, 2010-09-12 at 07:28 -0700, jean polo wrote: > > mmh, if I create another project and use his settings.py in the non- > > workin

Re: No module named shortcuts

2010-09-12 Thread jean polo
mmh, if I create another project and use his settings.py in the non- working one it works.. I can't see what's wrong with my settings file, here it is in case someone wants to have a look at it: ### settings.py import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Yvan xxx', 'yvan@xxx

Re: No module named shortcuts

2010-09-12 Thread jean polo
well, this is weird, I have no other module/package named django in my project dir. I use django-1.2.1 and it worked fine until yesterday... I didn't do any changes except some views details and the same svn version (online) works fine... (~) % cd dev/myproject (~/dev/myproject) % ./manage.py shel

No module named shortcuts

2010-09-12 Thread jean polo
hi. after deploying my app and using svn, my local working copy just stopped working with this error: File "manage.py", line 11, in execute_manager(settings) [SNIP] from django.shortcuts import get_object_or_404, render_to_response ImportError: No module named shortcuts My local serv

Re: customize url for GET form

2010-09-03 Thread jean polo
ah ok, I was expecting something like that .. this is only for a *very* special case though, not for my normal form thingz.. thanks for all the advices ! cheers, _y On Sep 3, 6:39 pm, Tom Evans wrote: > On Fri, Sep 3, 2010 at 5:05 PM, jean polo wrote: > > ok sorry if I used a bad exa

Re: customize url for GET form

2010-09-03 Thread jean polo
ok sorry if I used a bad example with id.. I meant something like: xx?bla=1,2,3,4 I got it working by using a special field ('bla') in my form which is a CharField then I parse bla: arr = request.GET.get('bla').split(',') if all items of arr are integers, I have my array of 'bla' =) cheers, _

Re: customize url for GET form

2010-09-03 Thread jean polo
well it was just to simplify some URLs but if you guys tell it's bad practice, I'll stick with it =) cheers, _j On Sep 3, 3:26 pm, Daniel Roseman wrote: > Why would you want to? The first is the standard HTTP method of > sending multiple items in a GET (and indeed in a POST, although you > don'

customize url for GET form

2010-09-03 Thread jean polo
hello while using GET form, I can select several objects with an URL like: xx?id=1&id=2&id=3 etc.. How could I have instead an URL like that: xx?id=1,2,3,4 etc... ?? Thanks, _j -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: "TypeError iteration over non-sequence" after deploying

2010-07-27 Thread jean polo
hi. stupid me, was registering a form in admin... didn't see that I had this error locally also (*only* the first time though, reloading was working fine). thanks ! _y On Jul 27, 6:45 pm, Shawn Milochik wrote: > There's your error. The value of model_or_iterable is not iterable. > Perhaps it's

Re: "TypeError iteration over non-sequence" after deploying

2010-07-27 Thread jean polo
some more details: Exception Type: TypeError Exception Value:iteration over non-sequence Exception Location: ../projects/django/contrib/admin/sites.py in register, line 76 and /django/contrib/admin/sites.py: 74if isinstance(model_or_iterable, ModelBase): 75

"TypeError iteration over non-sequence" after deploying

2010-07-27 Thread jean polo
Hello sorry for the n00b post... I just updated my project on my host (OVH), got it running with cgi but I have this error on every page I try to load: TypeError at [whatever] iteration over non-sequence I guess this might be a url problem but I'm pretty new to django/python so I have no clue of