admin list_filter to display only non-empty values

2010-10-21 Thread Alessandro Ronchi
Is it possible to change the list_filter in admin to show only items that have related values? I have a foreignkey to a model but I want to show only filters that points to non-empty sets. Thanks in advance, best regards. -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi

Re: Full Text Search

2010-10-01 Thread Alessandro Ronchi
On Fri, Oct 1, 2010 at 3:35 AM, Steve Holden wrote: > On 9/30/2010 8:26 PM, Nick Arnett wrote: > > Brain is mush, though. > > Thank you. I'm waiting with hope :) -- Alessandro Ronchi http://www.soasi.com -- You received this message because you are subscribed to the Go

Full Text Search

2010-09-30 Thread Alessandro Ronchi
Is there any way to make a FULL TEXT search not in BOOLEAN MODE? I've found only http://docs.djangoproject.com/en/1.1/ref/models/querysets/#search It says it uses BOOLEAN MODE as a default, but doesn't tell how to avoid default... -- Alessandro Ronchi http://www.soasi.com Hobby &am

images in sitemap.xml

2010-08-27 Thread Alessandro Ronchi
I want to add my images on sitemap objects: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=178636 is it possible with sitemap framework? how? -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi

Re: order of middleware

2010-08-27 Thread Alessandro Ronchi
. Yes, I've varnish and I use a minimizer to combine and compress js and css. Thank you! -- 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 Group

order of middleware

2010-08-26 Thread Alessandro Ronchi
eware', "django.contrib.flatpages.middleware.FlatpageFallbackMiddleware", 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You

save inline models when saving the father in admin

2010-08-26 Thread Alessandro Ronchi
brary. Is it possible? -- 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

Django models to SOAP

2010-08-24 Thread Alessandro Ronchi
... -- 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 email to django-us...@googlegroups.com. To unsubsc

limit a view for an ip address only

2010-08-12 Thread Alessandro Ronchi
I want to limit a django view to be accessible for staff users or free (without autentication) for a single ip. Is it possible? -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this message because you

pyfacebook

2010-08-11 Thread Alessandro Ronchi
any hint? -- 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 email to django-us...@g

I need a middleware to add language to urls in my templates

2010-08-11 Thread Alessandro Ronchi
s to href a lang=en, lang=fr, if the request.language is respectively en, fr. So all my links should be ok. Is it possible? -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi -- You received this message because you are

Re: Admin Inline inside another admin inline

2010-08-07 Thread Alessandro Ronchi
On 4 Ago, 16:11, Alessandro Ronchi wrote: > It's not possible to make nested inline. > I'm trying to do the same thing, with this > solution:http://packages.python.org/django-easymode/tree/index.html?highlight=... I solved my issue: I didn't notice the related things

Re: extends templates with the same name

2010-08-06 Thread Alessandro Ronchi
to have a tag to enable those extends without empty templates, for DRY principle and because usually you don't want to change a library template at all, and with this you have to move to realbase.html. -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com ht

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

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

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: 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

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: 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

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: μ 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

μ 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: 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

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: 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

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

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

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

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

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: Django-registration with django-profile

2010-04-04 Thread Alessandro Ronchi
x27;s simply a matter of choice what pieces are useful to achieve the needed registration workflow. I found that django-profile was unuseful, because it add another registration step with a form you can include in registration. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo So

Re: Django-registration with django-profile

2010-04-03 Thread Alessandro Ronchi
2010/4/3 shacker : > On Apr 3, 2:39 am, Alessandro Ronchi > wrote: >> I've made a profile model and attached it to django-profile app that >> works correctly  (it shows /profiles/create/ with the form). >> >> I need to put together that profile model with dja

send an email to users after saving is_active=True

2010-04-03 Thread Alessandro Ronchi
I need to notify users when an admin activate them saving their profile with is_active=True. Is it possible? How? I need also to avoid email duplication when admin changes something different from is_active. thanks in advance! -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo

Django-registration with django-profile

2010-04-03 Thread Alessandro Ronchi
ustom profile values. I've searched for some documentation but I didn't find nothing. Is it possible? Thanks in advance, best regards. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source Hobby & Giochi, l'e-commerce del divertimento htt

Re: [Django] Error (EXTERNAL IP): /xml/cat/da-vinci-games

2010-03-08 Thread Alessandro Ronchi
0/3/3 Alessandro Ronchi > I have a lot of this unicode error I didn't get before use varnish: > http://dpaste.com/167139/ > > ~~~ > handler.addQuickElement(u"pubDate", > rfc2822_date(item['pubdate']).decode('utf-8'

Re: template dir locale

2010-03-04 Thread Alessandro Ronchi
2010/3/4 Alessandro Ronchi : > I have a template dir in common with different projects, outside the > projects dir. > > Those templates have a locale dir with translations. > > In my projects  I have only the templates that differs from the common. > > The problem is that

template dir locale

2010-03-04 Thread Alessandro Ronchi
make a simbolic link from /common/templates/locale to /myproject/templates/locale it works. it is possible to avoid the simbolic link, and have in each dir only translations of its contents? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http

Fwd: [Django] Error (EXTERNAL IP): /xml/cat/da-vinci-games

2010-03-02 Thread Alessandro Ronchi
I have a lot of this unicode error I didn't get before use varnish: http://dpaste.com/167139/ ~~~ handler.addQuickElement(u"pubDate", rfc2822_date(item['pubdate']).decode('utf-8')) File "/usr/lib/python2.4/encodings/utf_8.py", line 16, in decode return codecs.u

Page expired with IE

2010-03-01 Thread Alessandro Ronchi
y to avoid this? I need Explorer to come back as Firefox do, and let the user select one of the other links. 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 divertimento -

Re: Django + Varnish. Keepalive?

2010-03-01 Thread Alessandro Ronchi
2010/2/25 Alessandro Ronchi : > I am using Varnish as a frontend proxy for my django apps. I usually > disable keepalive on apache, but in this case I've only one client (the > proxy on localhost) for apache, isn't it good to avoid closing and opening > connections? Isn&

Django + Varnish. Keepalive?

2010-02-25 Thread Alessandro Ronchi
I am using Varnish as a frontend proxy for my django apps. I usually disable keepalive on apache, but in this case I've only one client (the proxy on localhost) for apache, isn't it good to avoid closing and opening connections? Thanks in advance, best regards. -- Alessandro Ro

Re: Check if django is getting a page from memcache

2010-02-13 Thread Alessandro Ronchi
2010/2/13 Alessandro Ronchi > Thank you. > It seems it's working. > It's strange because some time requests waits 300ms to be processed > (calculated by firefox firebug plugin), and other times (few seconds after) > the same page waits 1.5seconds to begin downloading.

Re: Check if django is getting a page from memcache

2010-02-13 Thread Alessandro Ronchi
che or mysql? I've several sites connecting to the same memcached (with 8 threads), but together they don't do more than 2000 pageviews a day... -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby & Giochi, l'

Check if django is getting a page from memcache

2010-02-13 Thread Alessandro Ronchi
I am not sure django is getting a page from memcached. Is there a way to check it? Thanks in advance, -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby & Giochi, l'e-commerce del divertimento -- You received thi

Re: Wp-super-cache clone for django

2010-02-04 Thread Alessandro Ronchi
On Sun, Jan 3, 2010 at 2:22 PM, Alessandro Ronchi < alessandro.ron...@soasi.com> wrote: > In wordpress there is a plugin that caches in a file (gzipped) a page > and returns it instead of recalculate all from database, directly from > apache. > A garbage collector removes cache

eProcurement

2010-02-01 Thread Alessandro Ronchi
Is there any GPL eProcurement software made in django? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby & Giochi, l'e-commerce del divertimento -- You received this message because you are subscribed to the Goog

Filter objects by reference

2010-01-30 Thread Alessandro Ronchi
ata (i.e. doesn't have manutenzioni in that periods). Is it possible to make a filter for manager or I have to make a custom SQL query? Thanks in advance, best regards. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby &

Recursive model

2010-01-20 Thread Alessandro Ronchi
I tried to make a resursive model: http://dpaste.com/147941/ but in admin I cannot see dipende_da widget. In shell I have. segnalazione.dipende_da (,) My admin is : http://dpaste.com/147940/ Do you know what's wrong? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Softw

Re: Send and Receive SMS from a django app

2010-01-18 Thread Alessandro Ronchi
On Sun, Jan 17, 2010 at 7:18 PM, Chris Withers wrote: > Alessandro Ronchi wrote: > >> I cannot use an SMS gateway for my app (I must use a SIM and an hardware >> modem). >> > > Why? This is not a sane requirement for a web app... > > Chris Because of the numb

Re: Send and Receive SMS from a django app

2010-01-14 Thread Alessandro Ronchi
On Thu, Jan 14, 2010 at 12:26 PM, Daniel Hilton wrote: > > You'll need a GSM modem though. > Perfect! Are all RSR232 GSM modems compatible with pygsm, or everyone needs a proprietary or different library to be used? -- Alessandro Ronchi http://www.soasi.com SOASI - Svilu

Re: Send and Receive SMS from a django app

2010-01-14 Thread Alessandro Ronchi
a provider that advertisises two way > I cannot use an SMS gateway for my app (I must use a SIM and an hardware modem). Does RapidSMS include SMS receiving? Thanks in advance. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com H

Send and Receive SMS from a django app

2010-01-13 Thread Alessandro Ronchi
Is it possible with linux and django to send and receive data from SMS from a django APP? Did anyone managed to do that? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby & Giochi, l'e-commerce del divertimento

Re: Django Gantt Chart

2010-01-05 Thread Alessandro Ronchi
gt; -- >> Hinnack >> >> 2010/1/4 Daniel Hilton >> >> 2010/1/4 Alessandro Ronchi : >>> > I need to make a simple chart with a list of projects and a grafic >>> > display of the end date with a link to the project page. >>> >

Django Gantt Chart

2010-01-04 Thread Alessandro Ronchi
I need to make a simple chart with a list of projects and a grafic display of the end date with a link to the project page. It's simpler than a gantt chart. Is there any library / snippet I can use to simplify my work? -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Softw

Wp-super-cache clone for django

2010-01-03 Thread Alessandro Ronchi
more expensive cache? I'm using memcached, but the speed of a wordpress wp-super-cache page is higher that a django memcached one. -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Software e Sistemi Open Source http://hobbygiochi.com Hobby & Giochi, l'e-commerce del diverti

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

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

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

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

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

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

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

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

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-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-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-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 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

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: 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 --~--~-~--~~-

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

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

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

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 --~--~-~--~~

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 --~--~-~--~--

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

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

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: >

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

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

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

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

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

  1   2   >