Re: newform-admin: custom validation (multiple fields)

2008-11-24 Thread Alessandro Ronchi
n_occupati_donne = models.PositiveIntegerField(blank=True, null=True) n_occupati_uomini = models.PositiveIntegerField(blank=True, null=True) and n_occupati = n_occupati_donne + n_occupati_uomini is it possible ? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - w

multi field validation

2008-11-25 Thread Alessandro Ronchi
It's not possible to validate a model in admin checking multiple forms conditions? is there any example or code snippet ? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis,

Re: multi field validation

2008-11-25 Thread Alessandro Ronchi
if someday will be added the possibility to refers to fields directly (self.fieldname), instead of self.cleaned_data.get(fieldname) but it's near to perfection, so thanks! -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi O

filter field choices after selecting another field with javascript in django admin

2008-11-25 Thread Alessandro Ronchi
some similar tasks or snippets? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'ambiente: s

django i18n for google

2008-12-16 Thread Alessandro Ronchi
When google spiders our i18n translated django websites, does it try and indicize all languages? is it possible to force the language by a GET var (for example &language_code=en) ? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Svil

Re: django i18n for google

2008-12-27 Thread Alessandro Ronchi
Il 16 dicembre 2008 19.20, Alessandro Ronchi ha scritto: > When google spiders our i18n translated django websites, does it try > and indicize all languages? is it possible to force the language by a > GET var (for example &language_code=en) ? I think it's a critical problem.

Re: django i18n for google

2008-12-28 Thread Alessandro Ronchi
useful to force it with a &language=en This little mod could improve google crawling, because one can only make sitemaps with urls and that get value added to default urls for every translations (and it should be easy to add a shortcut to add urls in different language translations in sitema

{{shop_url}}

2009-01-12 Thread Alessandro Ronchi
Is there a template tag with show_url like {{shop_name}} ? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928

Re: Core = True replacemente

2008-09-12 Thread Alessandro Ronchi
ger necessary.) Simply beautiful! -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'ambiente: se non ti

Re: form get with special characters

2008-09-21 Thread Alessandro Ronchi
is converted to: http://www.animalisenzacasa.org/ricerca/?s=forl%C3%AC I don't know what's changed, because this morning the result was an empty page (with source code white, and a correct http header). -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop.

Re: filter queryset in admin

2008-09-22 Thread Alessandro Ronchi
ook, it's a common need. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'ambiente: se non ti è nec

Re: Ordering results by m2m relations without multiply results

2008-09-27 Thread Alessandro Ronchi
ld be fairly > messy. Ok. Is it possible to pass the queryset to the generic view after ordering with python, or I have to rewrite also the generic view? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Sou

Re: Restrict users to their own data

2008-09-27 Thread Alessandro Ronchi
e was the lack of .queryset(request) call on super() -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'amb

Re: How to stop internal django server

2008-09-28 Thread Alessandro Ronchi
#x27;s a process, so you can stop it like any other linux process: killall python ps aux | grep python and then kill #numproc ctrl + c and so on -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via P

Re: Admin internationalization

2008-09-30 Thread Alessandro Ronchi
e that. Fallbacks don't really make sense for websites that > are properly translated (mixing multiple languages just because the > translation isn't complete would be very confusing to the users). > > The "real" solution here is to give us a Moldovan translation for Django

Re: django performance with cache on dreamhost.

2008-10-03 Thread Alessandro Ronchi
de so it's not generally > about Django. I couldn't profile this app on dreamhost because I cannot import hotshot, hotshot.stats like in http://www.djangosnippets.org/snippets/605/ any other methods? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop

Re: select_related and intermediary tables

2008-10-06 Thread Alessandro Ronchi
select_related().get(name='Agency1') docs[0] = a.docs print doc.study_level if you don't set the related_name, you must use document_set: a = Agency.objects.select_related().get(name='Agency1') docs = a.document_set print docs[0].study_level -- Alessandro Ronchi Skype

Re: select_related and intermediary tables

2008-10-06 Thread Alessandro Ronchi
e model you have set to understand. if it's like: class Agency: name = TextField class Document: agency = ForeignKey(Agency, related_name="docs") study_level = IntegerField you can access to agency_docs with a = Agency.objects.select_related().get(name='Agency1')

Re: djangosnippets.org list navigation

2008-10-10 Thread Alessandro Ronchi
ets.org adds the google search the project can also receive some money for the ad search, and the user is not forcet to go out from the website to search the content of the snippets. It can be a way to support the good project. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net S

Re: related_name in filter search

2008-10-13 Thread Alessandro Ronchi
).filter(notizie__isnull=False).order_by('-id') This is the error i Get: http://dpaste.com/84076/ Thanks in advance! -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net Rispetta l'ambiente: se non ti è necessario, non stampare questa mail --~--~-~--~~-

Re: password_reset

2008-10-14 Thread Alessandro Ronchi
t; In that way I have two errors: > 1) the template doesn't load the translation. but I've changed only > the first line to {% extends "index.html" %} , to use my index > template > 2) Errors are not shown as it happens if I leave {% extends > "admin/

Duplicating sitemap dictionary with a get variable

2009-01-14 Thread Alessandro Ronchi
://www.detectorpoint.com/?lang=en http://www.detectorpoint.com/about/ http://www.detectorpoint.com/about/?lang=en I have hundreds of pages, so I cannot do that by hand... -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi

ValidationError: [u'ManagementForm data is missing or has been tampered with']

2009-01-20 Thread Alessandro Ronchi
I have this model: http://dpaste.com/111206/ and this admin.py: http://dpaste.com/111207/ but when I try to edit an existing "Impresa" i get a ValidationError: ManagementForm data is missing or has been tampered with what's the problem? -- Alessandro Ronchi Skyp

TypeError: Related Field has invalid lookup: icontains

2009-01-21 Thread Alessandro Ronchi
When one tries to make a search in admin with a model table he gets this error: TypeError: Related Field has invalid lookup: icontains is there anyway to solve it and make it returns nothings instead of 500 error? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI

Re: TypeError: Related Field has invalid lookup: icontains

2009-01-21 Thread Alessandro Ronchi
2009/1/21 Karen Tracey : > On Wed, Jan 21, 2009 at 10:21 AM, Alessandro Ronchi > wrote: >> >> When one tries to make a search in admin with a model table he gets this >> error: >> >> TypeError: Related Field has invalid lookup: icontains >> >>

Re: TypeError: Related Field has invalid lookup: icontains

2009-01-22 Thread Alessandro Ronchi
ue where to start looking. It falls on SchedaBilancioGenere model. I cannot replicate on a smaller model. They're huge, but all the fields are not important: it seems if falls on a related field. This is the trackback: http://dpaste.com/111757/ -- Alessandro Ronchi Skype: aronchi http://ww

Re: TypeError: Related Field has invalid lookup: icontains

2009-01-22 Thread Alessandro Ronchi
ple fields you need to list each explicitly, using the standard > double-underscore syntax.) You was right! Thanks a lot! -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 For

Using dinamically created tables

2009-01-23 Thread Alessandro Ronchi
this heavy work)? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'ambiente: se non ti è necessari

Re: Using dinamically created tables

2009-01-23 Thread Alessandro Ronchi
8000 tuple for every plant every day, and a dimension of 30 fields (double), i have 400kb for every plant /day. In a year I will reach 8GB of data. I will have 2 tables for a total of 60 fields, + indexes and other django fields. Is that reasonable to be handled in a single table? -- Alessa

Re: Using dinamically created tables

2009-01-24 Thread Alessandro Ronchi
ith a PGSQL command without ORM) on a save of a model? The query and inserts should be transparent, and so I could use django for everything. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggi

Someone using django trunk for production?

2009-01-31 Thread Alessandro Ronchi
I need to use aggregation features of django 1.1 (i need AVG, SUM). My production site uses 1.0.2. Can I upgrade to trunk without worrying? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via

Group By and aggregation

2009-02-10 Thread Alessandro Ronchi
quot;] but it loose the order by and the results are not the same I want. Thanks in advance! -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543

problem with PIL and Python2.5

2009-02-19 Thread Alessandro Ronchi
27;m running on a debian 4. Thanks in advance! -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'a

grouping save() queries into a single query

2009-02-20 Thread Alessandro Ronchi
x27;m using mod_python. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'ambiente: se non ti è neces

PostgreSQL case sensitive icontains

2009-02-20 Thread Alessandro Ronchi
with postgreSQL I get case sensitive filters also with icontains. Is there nothing I can do to solve this problem? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì

how to hide a field in admin

2009-03-03 Thread Alessandro Ronchi
I have a field I want to be show on web pages form for a model but not in the admin section. Is it possible? If I use editable = False it will be hidden for both. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi

Map events in space on a django app

2009-03-19 Thread Alessandro Ronchi
there any snippet or sample code to do the same? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'amb

exclude=field only for non superuser staff

2009-03-23 Thread Alessandro Ronchi
I need to set a field as escluded in admin.py only for non-superuser staff people. is it possible? how can I do that? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100

Reverse tag of safe

2009-03-24 Thread Alessandro Ronchi
I need to translate html entities on utf-8 characters, like à to à is there any template tag filter which can do that? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100

Integrity error in get_or_create

2009-06-21 Thread Alessandro Ronchi
return user called by user = User.objects.get_current() I get an integrity error: duplicate key. how it's possible? if is there already a user with that key it should return that without cause an integrity error, true? -- Alessandro Ronchi Skype: aronchi SOASI Soc.Coop. - www.soas

Re: Integrity error in get_or_create

2009-06-21 Thread Alessandro Ronchi
2009/6/21 Alessandro Ronchi > I have a very strange problem. > > With this function: > > def get_current(self): > > facebook = get_facebook_client() > user, created = self.get_or_create(id=int(facebook.uid)) > if created: >

Re: Integrity error in get_or_create

2009-06-22 Thread Alessandro Ronchi
2009/6/21 Alessandro Ronchi > > it gets into the except and tries to open another User with the same id! > It seemed to be a very big int for uid that caused a truncation when saving into database. -- Alessandro Ronchi Skype: aronchi SOASI Soc.Coop. - www.soasi.com Sviluppo S

Django Search Form in Admin

2009-07-01 Thread Alessandro Ronchi
F. (a simple link pointing to a view sending the search form filled as POST). Must I write a new app outside the admin? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~~---~--~~ You received this message because yo

Django RSS Feeds with adsense

2009-07-08 Thread Alessandro Ronchi
slot = "4803082542"; google_ad_width = 234; google_ad_height = 60; //--> http://pagead2.googlesyndication.com/pagead/show_ads.js"</a>;> Thanks in advance -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~--

Re: Django RSS Feeds with adsense

2009-07-08 Thread Alessandro Ronchi
2009/7/8 Mike Ramirez > Wrap the script code with > > See: http://www.w3schools.com/xmL/xml_cdata.asp > > Mike > > It's parsed too: <![CDATA[ -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~

Re: Django RSS Feeds with adsense

2009-08-02 Thread Alessandro Ronchi
ther account. I cannot move the feed because I've a lot of members who have subscribed the feed by email. So my only chance is to add the adsense code to django feeds, but I don't know how because it pass the code to a safe filter and that disable my script. -- Alessandro Ronchi S

Threaded comments on django 1.1

2009-08-07 Thread Alessandro Ronchi
I must add threaded comments to my django 1.1 app. Is there anything already done I can use? Any advise? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~~---~--~~ You received this message because you are

Django comments honeypot hide

2009-08-10 Thread Alessandro Ronchi
I need to hide the django-comments honeypot in my comment form, but It's visible to the user. Is there a way to do that in an easy way? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~~---~--~~ You rec

Extending Django-cms Menu

2009-08-11 Thread Alessandro Ronchi
x27;blog.utils.get_nodes', gettext('Blog')),) But it doesn't work. Any ideas? Any other working example? Is there a django-cms dedicated mailing list? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~-

Re: Extending Django-cms Menu

2009-08-11 Thread Alessandro Ronchi
2009/8/11 Alessandro Ronchi > I have a django-cms app with this menu: I've partially solved my problem. but it doesn't get get_title from the model. It's very strange, because I've followed the documentation example on http://github.com/digi

Re: Using models inside settings.py

2009-08-21 Thread Alessandro Ronchi
2009/8/21 Alessandro Ronchi : > > one thing like that : > from PROJECT_ROOT.local_settings import * > > Thanks in advance I correct myself: I need PROJECT_NAME to import, not the project root. I can then import it with exec "from " + settings.PROJECT_NAME +".lo

Using models inside settings.py

2009-08-21 Thread Alessandro Ronchi
settings import * Thanks in advance -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Get project name

2009-08-21 Thread Alessandro Ronchi
Is there any way to get the project name that's running in the code? Now I use a manual setting: PROJECT_NAME = "ambiente" but it should be useful to avoid that, because I'm working on an external app and every new unuseful configuration simplify my life a lot. -- Ales

fckeditor upload file security

2009-08-24 Thread Alessandro Ronchi
I must use fckeditor file upload but I want it to be possible only for django staff authenticated users. I'm using mod_python inside apache, is it possible ? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soas

context processors in 404 errors

2009-09-01 Thread Alessandro Ronchi
When I return a 500 error I need to have my context_processor, in which I store some important vars used in my template. Is it possible? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~~---~--~~ You received

dynamic url pattern

2009-03-26 Thread Alessandro Ronchi
licate names 3 or 4 times. Thanks in advance! -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi Open Source Sede: Via Poggiali 2/bis, 47100 Forlì (FC) Tel.: +39 0543 798985 - Fax: +39 0543 579928 Rispetta l'ambient

Django admin js loads also on lists

2009-04-21 Thread Alessandro Ronchi
Now the javascript loads also for the object list in admin, which has no "descrizione" and generates a warning popup. is it possible to load a js only on object modification form? Thanks in advance. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop

AutoField

2009-05-15 Thread Alessandro Ronchi
I want an autofield that shows the content in admin. If I put an autofield it's hidden, if I put an IntegerField it doesn't have a new automatic default value. Is there a solution? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop. - www.soasi.co

template modules like joomla

2009-09-15 Thread Alessandro Ronchi
I need to give the possibility to the administrator to manage portions of templates in pages, and let him to change that portions for every page. Joomla does this thing with modules: I need something similar. Is it possible? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source

Re: template modules like joomla

2009-09-15 Thread Alessandro Ronchi
2009/9/15 Randy Barlow : > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alessandro Ronchi declared: >> I need to give the possibility to the administrator to manage portions >> of templates in pages, and let him to change that portions for every >> pag

Flatpage on first page of a website

2009-10-16 Thread Alessandro Ronchi
I need to put a flatpage on / and make www.example.com return the flatpage. Is it possible? What url must I put in flatpage admin? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~~---~--~~ You received this

static models methods

2009-10-26 Thread Alessandro Ronchi
return self.nome @staticmethod def get_default(): try: return Settore.objects.all()[0].id except: return None ~~~~~ -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://w

Internal error on dreamhost when debug=False

2009-10-29 Thread Alessandro Ronchi
pt headers: internal_error.html What can I check to find the problem? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://www.linkedin.com/in/ronchialessandro --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Inlines and foreign key

2009-10-29 Thread Alessandro Ronchi
blem. this is my model http://dpaste.com/113759/ and this is my admin: http://dpaste.com/113758/ thanks in advance, best regards. -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://www.linkedin.com/in/r

Re: Inlines and foreign key

2009-10-31 Thread Alessandro Ronchi
to the PersonAdmin class. > > Another simple solutions may be to have a link to edit the foreign key model in another page (maybe a popup), instead of only choice existing one or add them. Is it possible? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source h

unique_for_date

2009-11-04 Thread Alessandro Ronchi
unique_for_date checks only the date in a datetime field or also for the time? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://www.linkedin.com/in/ronchialessandro --~--~-~--~~~---~--~~ You received this message

Django on Dreamhost internal server error

2009-11-16 Thread Alessandro Ronchi
ience. -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://www.linkedin.com/in/ronchialessandro -- 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...@googl

mod_wsgi django optimization

2009-11-18 Thread Alessandro Ronchi
page so I should try to optimize page loading Now I'm using processes=2 maximum-requests=500 threads=25 with no particular apache optimization. Do you have any advice? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://www.linkedin.com/in/r

Re: mod_wsgi django optimization

2009-11-18 Thread Alessandro Ronchi
think. Good advice the ngix, but If it's possible I don't want to add another webserver. So, I want to get the most out of apache, where I can. -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://www.linkedin.com/in/ronchialessandro -- You re

Internal server error 500 with mod_wsgi

2009-11-18 Thread Alessandro Ronchi
With mod_wsgi I only get error logged into apache and not on the interactive trackback in the browser, also If i set DEBUG=True in my settings. Is there any way to handle the django trackback as usual? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http

Re: Internal server error 500 with mod_wsgi

2009-11-18 Thread Alessandro Ronchi
On Thu, Nov 19, 2009 at 12:48 AM, Alessandro Ronchi < alessandro.ron...@soasi.com> wrote: > With mod_wsgi I only get error logged into apache and not on the > interactive trackback in the browser, also If i set DEBUG=True in my > settings. > > Is there any way to handle th

Re: Internal server error 500 with mod_wsgi

2009-11-18 Thread Alessandro Ronchi
On Thu, Nov 19, 2009 at 1:08 AM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > On Nov 19, 10:48 am, Alessandro Ronchi > wrote: > > With mod_wsgi I only get error logged into apache and not on the > interactive > > trackback in the browser, also I

Re: Internal server error 500 with mod_wsgi

2009-11-18 Thread Alessandro Ronchi
On Thu, Nov 19, 2009 at 2:02 AM, Karen Tracey wrote: > On Wed, Nov 18, 2009 at 7:29 PM, Alessandro Ronchi < > alessandro.ron...@soasi.com> wrote: > >> >> >> http://dpaste.com/122205/ >> is my log file. >> >> > Traceback shows it is dying

Re: Internal server error 500 with mod_wsgi

2009-11-19 Thread Alessandro Ronchi
and empty in shell. Is there something wrong? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://www.linkedin.com/in/ronchialessandro -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Internal server error 500 with mod_wsgi

2009-11-19 Thread Alessandro Ronchi
On Thu, Nov 19, 2009 at 5:28 PM, Alessandro Ronchi < alessandro.ron...@soasi.com> wrote: > >> Really, you can get both pretty debug pages and emails with mod_wsgi as >> well as you can with the development server or mod_python. I've seen both. >> The problem wit

Re: Internal server error 500 with mod_wsgi

2009-11-21 Thread Alessandro Ronchi
.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/PIL', '/usr/lib/python2.4/site-packages/gtk-2.0'] is it possible that dif

Django tag cloud

2009-11-21 Thread Alessandro Ronchi
, 50 ~>10pt and so on). How can I accomplish that? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com http://www.linkedin.com/in/ronchialessandro -- You received this message because you are subscribed to the Google Groups "Django users" grou

Translate models

2009-11-25 Thread Alessandro Ronchi
I need to make my model translatable into different languages. Is there any simple way to handle that in a transparent manner? I've fround transmeta project on google, anyone is using that? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com

Re: Django tag cloud

2009-11-26 Thread Alessandro Ronchi
ts that has that > tag. > > But in that way I must add some code to the model, wjere I can write exactly the font-size. I need something similar to widthratio but with a minimum value (or maybe there is a way to make the littler sets not to 0 font-size). -- Alessandro Ron

Re: Django tag cloud

2009-12-02 Thread Alessandro Ronchi
hp > > I'd imagine that there's a Python library or module that will do this for > you, but it's not hard to write your own. I've done a simple custom template tag to have my cloud working :) -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistem

Paginated objects in django sitemap

2009-12-05 Thread Alessandro Ronchi
I have some objects that needs to be paginated . I want to get all my pages on my sitemap. Is there any smart way to make items(self) returns all the pages for that objects and not only the get_absoute_url without page= get variable? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo

basic http authentication

2009-12-12 Thread Alessandro Ronchi
I need to make a view with a basic html authentication (because I need to use that url in a program that parse the result). I need to authenticate against the check of a permission. What's the best way to do that? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Si

ckfinder with django

2009-12-21 Thread Alessandro Ronchi
Has someone managed to use ckfinder with django ? I want only staff users of my apps to be able to upload files, is it possible? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby & Giochi, l'e-commerce del div

Generate brochure pdf

2010-04-20 Thread Alessandro Ronchi
for use in typography) with a some images (raster and bitmap) in my web application. I want to use django as web framework. Any use case? Or documentation I can read? Thanks in advance, best regards. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source -- Yo

Re: Generate brochure pdf

2010-04-21 Thread Alessandro Ronchi
need the pdf to be precise as pixels, and HTML is not the best solution for that. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source Hobby & Giochi, l'e-commerce del divertimento http://hobbygiochi.com http://www.facebook.com/pages/Forli/Hobby-Gioc

Re: Generate brochure pdf

2010-04-21 Thread Alessandro Ronchi
you know any wysiwyg javascript (jquery or prototype) like the one in stiqr.com I can re-use? I need something to let users position objects in my brochure, and get positions and other editor informations to create pdfs. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistem

Template tag to understand if a request if from a spider

2010-04-27 Thread Alessandro Ronchi
Is it possible to check in a django template if a request is from a spider/ bot or not? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source Hobby & Giochi, l'e-commerce del divertimento http://hobbygiochi.com http://www.facebook.com/pages/Fo

add custom sidebar to admin site

2010-04-29 Thread Alessandro Ronchi
I need to add some custom links to sidebar in admin section. What's the cleaner way to make that? I can only override the index.html template? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source Hobby & Giochi, l'e-commerce del div

Re: send an email to users after saving is_active=True

2010-05-08 Thread Alessandro Ronchi
from pre_save (which determines whether an email > should be sent) to post_save (which does the sending). Might be over- > engineering it, though. > I solved with this code: http://dpaste.com/192120/ and pre_save.connect(account_moderated_email, sender=Profile) -- Alessandro Ronchi

Localeurl and django-multilingual

2010-05-08 Thread Alessandro Ronchi
ere/1/ but if I open http://mydomain.com/pl/c/auto-intere/1/ all the next link will redirect back to /it/ So, I need to fix the user choice and set it to the user request language. Is it possible? How? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source

Re: Localeurl and django-multilingual

2010-05-10 Thread Alessandro Ronchi
2010/5/10 Nuno Maltez > How are you creating the url for the links? Are you using the {% url > %} tag and reverse() functions? It should work, we have sites with > localeurl and django-multilingual running fine in production. > > I solved with your solution. Thanks. -- Al

μ must be μ

2010-07-12 Thread Alessandro Ronchi
Is it possible? How? Thanks in advance, -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: μ must be μ

2010-07-13 Thread Alessandro Ronchi
2010/7/12 Martin Melin > 2010/7/12 Alessandro Ronchi : > > I want django to return μ instead of the html enscaped form μ in my > > views, because I need it to return a reportlab template wich doesn't > handle > > the escaped version. > > I already have an

ManyToMany to languages

2010-07-30 Thread Alessandro Ronchi
I need to put a manytomany that points to a list of languages. I need to create another language model or I can use a django languages one? -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this message bec

Re: Admin Inline inside another admin inline

2010-08-04 Thread Alessandro Ronchi
rees-with-more-than-2-levels-of-related-items But it doesn't work. -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this message because you are subscribed to the Google Groups "Django users&quo

Jquery-ui in admin: c is undefined

2010-08-05 Thread Alessandro Ronchi
in.js but the first come after jquery.init.js // Puts the included jQuery into our own namespace var django = { "jQuery": jQuery.noConflict(true) }; Is there a way to avoid attaching two times the same jquery library in admin? Thanks in advance, -- Alessandro Ronchi http://www.soasi.co

Re: Jquery-ui in admin: c is undefined

2010-08-05 Thread Alessandro Ronchi
ry as an implementation detail > and supply your own for your own uses. It's not possible to tell jquery-ui to use the django.query namespace? -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this

Deploying application media files

2010-08-06 Thread Alessandro Ronchi
s not possible to serve static files from inside an egg file. It would be very nice to pack a library (like, for example, filebrowser), and have python unpack it on cache and serve also javascript and image files. Is it possible? -- Alessandro Ronchi http://www.soasi.com Hobby & Gi

Re: Deploying application media files

2010-08-06 Thread Alessandro Ronchi
tion, and I hope it will become standard in next django. -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

extends templates with the same name

2010-08-06 Thread Alessandro Ronchi
/base_site.html with only {% extends "_base_site.html" %} but it's not clean. Is there any other cleaner way to do that? -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this message because

  1   2   >