Re: django 1.8 customize site title

2015-05-05 Thread drakkan
the problem was caused by django-admin-bootstrapped Il giorno lunedì 4 maggio 2015 18:46:08 UTC+2, André Luiz ha scritto: > > You can do it in in urls.py for example[1] > > [1]: https://gist.github.com/dvl/0bed149bee4556b32d7a > > 2015-05-02 5:55 GMT-03:00 drakkan <drakk...

django 1.8 customize site title

2015-05-02 Thread drakkan
Hi, I would like to customize django 1.8 site title without override the template using AdminSite, I customized AdminSite as per doc here: https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#customizing-the-adminsite-class this seems to work, however the html title still has "Django

Re: django 1.7 migrations upgrade from south: db.delete_foreign_key replacement?

2014-11-14 Thread drakkan
try to emulate what the db can do natively and much quicker Nicola > /Markus > > On Friday, November 14, 2014 4:23:52 PM UTC+1, drakkan wrote: >> >> Hi, >> >> I'm migrating my app to 1.7 and to builtin django migrations from south, >> I need something like

django 1.7 migrations upgrade from south: db.delete_foreign_key replacement?

2014-11-14 Thread drakkan
Hi, I'm migrating my app to 1.7 and to builtin django migrations from south, I need something like this: http://south.readthedocs.org/en/latest/databaseapi.html#db-delete-foreign-key how to remove a foreign key using django builtin migration api? Please note that my purpose is to remove the

Re: django/python performance vs play/java

2011-07-08 Thread drakkan
On 8 Lug, 14:44, Thomas Guettler <h...@tbz-pariv.de> wrote: > On 06.07.2011 15:33, drakkan wrote:> On 6 Lug, 14:03, akaariai > <akaar...@gmail.com> wrote: > >> On Jul 5, 10:54 pm, drakkan <drakkan1...@gmail.com> wrote: > > ... > > > using pgpoo

Re: django/python performance vs play/java

2011-07-06 Thread drakkan
You can download the code here: http://77.43.75.110/temp/cinquestelle.tar.gz you need sorl as dependencies too: http://pypi.python.org/pypi/sorl-thumbnail/3.2.5 On 6 Lug, 15:57, Björn Lindqvist <bjou...@gmail.com> wrote: > 2011/7/6 drakkan <drakkan1...@gmail.com>: > >

Re: django/python performance vs play/java

2011-07-06 Thread drakkan
On 6 Lug, 14:03, akaariai <akaar...@gmail.com> wrote: > On Jul 5, 10:54 pm, drakkan <drakkan1...@gmail.com> wrote: > > > so play is outperforming django! obviously django is not in debug mode > > ecc..., is there something wrong in my test setup (I already tried to &g

Re: django/python performance vs play/java

2011-07-06 Thread drakkan
y high traffic website), on an intel atom play is 15x faster than django and this is noticeable. I know about caching and play support memcached too, I guess if I enable memcached on both framework the results doesn't change much, thanks for your suggestions > >   Thomas > > On 06.07.

Re: django/python performance vs play/java

2011-07-06 Thread drakkan
On 5 Lug, 22:57, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On 5 juil, 21:54, drakkan <drakkan1...@gmail.com> wrote: > > (snip) > > > or django/python is simply much slower than java? > > According to most benchmarks, Python (that is

Re: django/python performance vs play/java

2011-07-05 Thread drakkan
> > > Percentage of the requests served within a certain time (ms) > >  50%     16 > >  66%     19 > >  75%     22 > >  80%     23 > >  90%     27 > >  95%     30 > >  98%     34 > >  99%     38 > > 100%     47 (longest request) > >

django/python performance vs play/java

2011-07-05 Thread drakkan
n to improve performance is appreciated, thanks in advance, drakkan -- 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: formfield_for_foreignkey: how to know if we are modifyng an entry

2010-06-27 Thread drakkan
On 27 Giu, 18:00, Walt wrote: > I'm not sure if it works in this context but have you tried > self.instance.id? No it doesn't work in my context, other ideas? > > Walt > > -~ -- You received this message because you are subscribed to the Google Groups "Django users"

formfield_for_foreignkey: how to know if we are modifyng an entry

2010-06-26 Thread drakkan
Hi, I'm customizing the django admin and I need to do a particular filter for a foreign key if I'm modifying a model, I'm using the following method, it works but it seems to me an hack, is there a better way to do the same thing? def formfield_for_foreignkey(self, db_field, request, **kwargs):

Re: django cron script works in django 1.1.1 but not in 1.1.2 and 1.2.1

2010-06-06 Thread drakkan
On 6 Giu, 16:31, Karen Tracey <kmtra...@gmail.com> wrote: > On Sun, Jun 6, 2010 at 9:14 AM, drakkan <drakkan1...@gmail.com> wrote: > > I'm migrating my sites to django 1.2.1 however I noticed my cron > > scripts doesn't work anymore with the latest django version, I'm

Re: django cron script works in django 1.1.1 but not in 1.1.2 and 1.2.1

2010-06-06 Thread drakkan
with 1.2.0 beta 1 my cron script works too On 6 Giu, 15:14, drakkan <drakkan1...@gmail.com> wrote: > Hi, > > I'm migrating my sites to django 1.2.1 however I noticed my cron > scripts doesn't work anymore with the latest django version, I'm using > the setup_environ me

django cron script works in django 1.1.1 but not in 1.1.2 and 1.2.1

2010-06-06 Thread drakkan
script using python manage.py shell, they works fine so I think something changed in the environment initialization any hints? thanks drakkan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

File Field max size and admin interface

2009-09-13 Thread drakkan
Hi, I'm using the admin interface with some filefield, I tested with a big file (200 MB) and it was successfully uploaded, this is ok but I would like a way to limiting the uploaded size for example to a maximun of 10 MB, any hints? thanks drakkan

Re: django models/ sqlalchemy

2009-08-26 Thread drakkan
You can: 1) redefine your sa models in django models.py 2) use sqlalchemy-migrate for database migration and initial data population, I never used json for initial data with migrate drakkan On 26 Ago, 17:29, ajay <vnbang2...@gmail.com> wrote: > HI, >     I have used sqlalchemy

Re: Memory error

2009-08-05 Thread drakkan
database and in some edge case I need to return a large number of results (about 150.000 when I get the error). I make only one query with select_related and I tried also with DEBUG=False but nothing changed only the detailed stack trace isn't printed, thanks drakkan On 5 Ago, 21:02, Peter Herndon

Re: Memory error

2009-08-05 Thread drakkan
No I'm not serving static file I have a very large json file dinamycally generated (based on a db query) On 5 Ago, 15:28, Mike Ramirez <gufym...@gmail.com> wrote: > On Wednesday 05 August 2009 04:08:15 am drakkan wrote: > > > > > here is the excpetion returned while tryi

Re: Memory error

2009-08-05 Thread drakkan
No sorry isn't a file upload but is django to serve a large file On 5 Ago, 13:47, krylatij wrote: > tryhttp://docs.djangoproject.com/en/dev/ref/settings/#file-upload-max-me... --~--~-~--~~~---~--~~ You received this message because you are

Memory error

2009-08-05 Thread drakkan
r/lib/python2.4/site-packages/django/db/models/query.py" in get_cached_row 987. obj = klass(*fields) File "/usr/lib/python2.4/site-packages/django/db/models/base.py" in __init__ 263. setattr(self, field.attname, val) Exception Type: MemoryError

Re: django and i18n what's wrong???

2009-04-14 Thread drakkan
issue with django trunk thanks drakkan1000 On 13 Apr, 22:43, drakkan <drakkan1...@gmail.com> wrote: > ok I'll try it, > > thanks > drakkan1000 > > On 13 Apr, 22:39, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > On Mon, Apr 13, 2009 at 4:37 PM, drakkan <

Re: django and i18n what's wrong???

2009-04-13 Thread drakkan
ok I'll try it, thanks drakkan1000 On 13 Apr, 22:39, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Mon, Apr 13, 2009 at 4:37 PM, drakkan <drakkan1...@gmail.com> wrote: > > > I'm using ugettext, I have to use the lazy variant? > > > On 13 Apr, 21:53, Ramiro

Re: django and i18n what's wrong???

2009-04-13 Thread drakkan
I'm using ugettext, I have to use the lazy variant? On 13 Apr, 21:53, Ramiro Morales <cra...@gmail.com> wrote: > On Mon, Apr 13, 2009 at 4:30 PM, drakkan <drakkan1...@gmail.com> wrote: > > > I found a workaround I have to do: > > > 'status':_(u.get_status_displa

Re: django and i18n what's wrong???

2009-04-13 Thread drakkan
I found a workaround I have to do: 'status':_(u.get_status_display()) even if I have already marked the string for translation in models: STATUS=( (1,_('Active')), (0,_('Inactive')), ) this is a really strange behaviour ... On 13 Apr, 21:07, drakkan <drakkan1...@gmail.com>

Re: django and i18n what's wrong???

2009-04-13 Thread drakkan
alted, why? On 13 Apr, 19:11, drakkan <drakkan1...@gmail.com> wrote: > Hi, I'm trying to use i18n with django. I followed the docs and > created my transalations for english,italian and spanish > > in settings I have: > > ugettext = lambda s: s > > LANG

django and i18n what's wrong???

2009-04-13 Thread drakkan
Hi, I'm trying to use i18n with django. I followed the docs and created my transalations for english,italian and spanish in settings I have: ugettext = lambda s: s LANGUAGES = ( ('en', ugettext('English')), ('it', ugettext('Italian')), ('es', ugettext('Spanish')), ) and I

Re: send_mail and cc

2009-03-28 Thread drakkan
): return self.to + self.cc + self.bcc regards drakkan On 28 Mar, 01:13, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Fri, 2009-03-27 at 16:50 -0700, drakkan wrote: > > Hi all, > > > there is a way to send cc mail using django mail wrapper? > > > rea

send_mail and cc

2009-03-27 Thread drakkan
Hi all, there is a way to send cc mail using django mail wrapper? reading the official docs: http://docs.djangoproject.com/en/dev/topics/email/#topics-email seems only possible to define to and bcc recipients but not cc, thanks drakkan1000

Re: orm: delete performance and queries optimization

2009-01-09 Thread drakkan
understand you are not interested to add this features to django :-(, we can however use django and raw sql regards drakkan On 9 Gen, 02:26, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Thu, 2009-01-08 at 04:54 -0800, drakkan wrote: > > In my database I have s

orm: delete performance and queries optimization

2009-01-08 Thread drakkan
, reagards drakkan --~--~-~--~~~---~--~~ 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 dj

Re: django and database views

2009-01-05 Thread drakkan
On 6 Gen, 00:41, drakkan <drakkan1...@gmail.com> wrote: > On 6 Gen, 00:32, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > > > > > On Mon, 2009-01-05 at 06:31 -0800, drakkan wrote: > > > however if i delete an user with records associa

Re: django and database views

2009-01-05 Thread drakkan
On 6 Gen, 00:32, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Mon, 2009-01-05 at 06:31 -0800, drakkan wrote: > > however if i delete an user with records associated in the view I have > > this error: > > > NotSupportedError: cannot delete f

Re: django and database views

2009-01-05 Thread drakkan
On 6 Gen, 00:06, "Russell Keith-Magee" <freakboy3...@gmail.com> wrote: > On Mon, Jan 5, 2009 at 11:31 PM, drakkan <drakkan1...@gmail.com> wrote: > > > Hi all, > > > I mapped a database view in django model as a normal database table, > ... &g

django and database views

2009-01-05 Thread drakkan
? regards drakkan --~--~-~--~~~---~--~~ 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