Re: "sudo is not recognized in install process" ,what to do?, thanks

2013-10-19 Thread Serge G. Spaolonzi
visit https://groups.google.com/groups/opt_out. -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an emai

Re: Testing: @override_settings(AUTH_USER_MODEL='auth.User') no working.

2013-09-30 Thread Serge G. Spaolonzi
Thanks, it worked. Changing @override_settings(AUTH_USER_MODEL='auth.User') for @override_settings(AUTH_USER_MODEL='auth.CustomUser') made the trick. On Sun, Sep 29, 2013 at 9:09 PM, Russell Keith-Magee <russ...@keith-magee.com> wrote: > > On Mon, Sep 30, 2013 at 7:27 AM, Serge G. S

Testing: @override_settings(AUTH_USER_MODEL='auth.User') no working.

2013-09-29 Thread Serge G. Spaolonzi
y. Thanks -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googl

Re: How do I change a global setting from inside middleware?

2013-06-23 Thread Serge G. Spaolonzi
are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this

Custom manytomany widget in admin site: How to get the objects instead of their keys?

2013-06-23 Thread Serge G. Spaolonzi
final_attrs = self.build_attrs(attrs, type=self.input_type, name=name) > if value != '': > final_attrs['value'] = ', '.join(v for v in value]) > return format_html('<input{0} />', flatatt(final_attrs)) Thanks -- Serge G. Spaolonzi Cobalys Systems http

Urls on the fly

2013-03-08 Thread Serge G. Spaolonzi
('', url_list) return urlpatterns urlpatterns = get_urls() It throws "url() takes at least 2 arguments (2 given)" Any idea? Thanks -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com -- You received this message because you are subscribed to the Google Groups &qu

Re: Templates: best way to access object attributes described in a external list.

2013-03-05 Thread Serge G. Spaolonzi
view takes the list of objects and a tuple with the attributes to be shown. Python/django fits my requirements but I am looking the most efficient way to do it. The inner loop is expensive. Regards -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com -- You received this message because yo

Re: urls.py not loading changes

2013-03-03 Thread Serge G. Spaolonzi
ps.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com -- You received this message because you are subscribed t

Templates: best way to access object attributes described in a external list.

2013-03-03 Thread Serge G. Spaolonzi
have to repeat the code but win the processor time used to iterate through attributes. Is there a better way to do it in Django templates? Thanks -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com -- You received this message because you are subscribed to the Google Groups "

Re: Custom Http404 like exception

2013-02-18 Thread Serge G. Spaolonzi
Thanks, It worked. On Mon, Feb 18, 2013 at 1:00 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Mon, Feb 18, 2013 at 2:41 PM, Serge G. Spaolonzi <se...@cobalys.com> > wrote: > > Thanks Pankaj, In this case I could not use an HttpResponse because the > >

Re: Custom Http404 like exception

2013-02-18 Thread Serge G. Spaolonzi
python then status_code in header is set by > django.core.handlers.modpython.ModPythonHandler - > https://github.com/django/django/blob/stable/1.4.x/django/core/handlers/wsgi.py#L245-L253 > > This response is served by Webserver. > > Sincerely, > Pankaj Singh > http://ab

Custom Http404 like exception

2013-02-18 Thread Serge G. Spaolonzi
'. Thanks -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@google

Re: How can I find and clean an user's session from an user's id?

2013-01-21 Thread Serge G. Spaolonzi
it stores user id in the session, then watch for > that in your session backend's __setattr__ method. > > _Nik > > On 1/21/2013 2:35 PM, Serge G. Spaolonzi wrote: > > I am looking the way to selective clear determinate user sessions from > > the server. It has to be done

How can I find and clean an user's session from an user's id?

2013-01-21 Thread Serge G. Spaolonzi
for that user and cleans it. How can I find an user's session from an user's id? What would be the most efficient way to archive this? Thanks -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Using different ports in views?

2012-09-01 Thread Serge G. Spaolonzi
scribed 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 this group at > http://groups.

Re: NoReverseMatch Error

2012-08-14 Thread Serge G. Spaolonzi
Try removing the quotes from 'polls.views.vote': Regards -- Serge G. Spaolonzi Cobalys Systems http://www.cobalys.com On Mon, Aug 13, 2012 at 11:46 PM, Syam Palakurthy <syampalakur...@gmail.com>wrote: > Hi - I could not find any explanation that fixed the problem, until I ran

Re: Open Source skin for Django Admin released.

2012-08-10 Thread Serge G. Spaolonzi
Sorry, I forgot to include the link: http://cobalys.github.com/adminmax/ On Fri, Aug 10, 2012 at 1:09 PM, Serge G. Spaolonzi <se...@cobalys.com>wrote: > Hi, > I would like to share this skin (open source) with other Django > developers. This skin is non intrusive, it does not

Open Source skin for Django Admin released.

2012-08-10 Thread Serge G. Spaolonzi
Hi, I would like to share this skin (open source) with other Django developers. This skin is non intrusive, it does not touch any file of the django installation, it works by linking the new CSS files in the settings.py file. My plan for adminmax is to extend and change some of the django