Re: Management command scheduling options

2023-10-23 Thread Alessandro Madruga Correia
Django-celery Em seg., 23 de out. de 2023 às 07:08, Mike Dewhirst escreveu: > Django docs suggest cron or Windows scheduler for running management > commands. > > I would like instead to build an internal Django based scheduler - because > after migrating to a new server, setting up the new cro

Re: Reference data while testing

2023-10-03 Thread Alessandro Madruga Correia
xtures are unworkable and I need to respond to the actual reference > data. > > How can i do real lookups (read-only) during tests? > You can use Factory Boy https://factoryboy.readthedocs.io/en/stable/ -- ,= ,-_-. =. [] Alessandro Madruga Correia ((_/)o o(\_)) [http://

Re: Looking for a Learning Buddy

2023-06-19 Thread Alessandro Madruga Correia
/msgid/django-users/CAP7pJ3gsn_bkOfP-8k-SNZ%2BmmJ8riuc1cdUVXzoQXN31BS4W4g%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAP7pJ3gsn_bkOfP-8k-SNZ%2BmmJ8riuc1cdUVXzoQXN31BS4W4g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- ,= ,-_-. =. [] Ales

Re: costum user in Django 3.2

2021-11-11 Thread Alessandro Carmignotto
May be the reason is on the refuse? Custom, not Costum... Il giorno gio 11 nov 2021 alle ore 05:00 David Nugent ha scritto: > On Tue, Nov 9, 2021 at 10:15 PM DJANGO DEVELOPER > wrote: > >> have you added AUTH_USER_MODEL = 'my_app.custommodel' in your settings.py? >> > > And note the lower case

Re: Migration of database

2020-12-15 Thread Alessandro Madruga Correia
everything_else.json -- ,= ,-_-. =. [] Alessandro Madruga Correia ((_/)o o(\_)) [http://counter.li.org] Debian User# 342751 `-'(. .)`-'"O fanatismo é a única forma de força de vontade \_/acessível aos fracos." (Friedrich Nietzsche) --

Re: Bootstrap not found

2020-02-16 Thread Alessandro D' Oronzo
> > > > On Sun, Feb 16, 2020 at 8:36 PM Alessandro D' Oronzo <mailto:doronz...@gmail.com>> wrote: > Hi everyone, > I have a problem with load bootstrap on my generic_template. > > This is error output: > [16/Feb/2020 14:57:37] &quo

Bootstrap not found

2020-02-16 Thread Alessandro D' Oronzo
Hi everyone, I have a problem with load bootstrap on my generic_template. This is error output: [16/Feb/2020 14:57:37] "GET / HTTP/1.1" 200 2239 [16/Feb/2020 14:57:37] "GET /static/vendor/bootstrap/css/bootstrap.min.css HTTP/1.1" 404 1740 [16/Feb/2020 14:57:37] "GET /static/vendor/bootstrap/js/bo

Re: Problem with Admin Page

2020-02-10 Thread Alessandro D' Oronzo
http://]about.me/maninder.s.kumar >>> <http://about.me/maninder.s.kumar?promo=email_sig> >>> >>> >>> >>> >>> On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 >>> wrote: >>> >>>> Also, traceback would be awes

Re: Problem with Admin Page

2020-02-10 Thread Alessandro D' Oronzo
Maninder Kumar > [image: http://]about.me/maninder.s.kumar > <http://about.me/maninder.s.kumar?promo=email_sig> > > > > > On Mon, Feb 10, 2020 at 2:32 PM onlinejudge95 > wrote: > >> Also, traceback would be awesome >> >> On Mon, Feb 10, 2020 at 12:09 AM

Problem with Admin Page

2020-02-09 Thread Alessandro D' Oronzo
Hi everyone, I have a problem with local web server and admin page. When I try to connect to admin page the web server of Django close without errors. Do you have any ideas? Thanks so much! -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: Django REST in Docker

2019-04-09 Thread Alessandro Madruga Correia
ibed 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 group at h

Re: DEFAULT_FILE_STORAGE and tests

2018-09-26 Thread Alessandro Dentella
Ciao Luca! On Tue, Sep 25, 2018 at 12:29:45PM -0700, Luca Bocchi wrote: >Already tried with: >class GeneraliDiscoverRunner(DiscoverRunner): >def setup_test_environment(self, **kwargs): >settings.DEFAULT_FILE_STORAGE = 'web.storage.TestStorage' >super().setup

Re: DEFAULT_FILE_STORAGE and tests

2018-09-20 Thread Alessandro Dentella
Hi Raffaele, On Thu, Sep 20, 2018 at 03:36:11PM +0200, Raffaele Salmaso wrote: >On Thu, Sep 20, 2018 at 3:25 PM sandro dentella ><[1]sandro.dente...@gmail.com> wrote: > >from django.conf import settings >from django.test.runner import DiscoverRunner >class GeneraliDiscoverRun

Re: about book

2018-07-11 Thread Alessandro Madruga Correia
-Using-WebSockets-Backbone/dp/149194594X -- ,= ,-_-. =. [] Alessandro Madruga Correia ((_/)o o(\_)) [http://counter.li.org] Debian User# 342751 `-'(. .)`-'"O fanatismo é a única forma de força de vontade \_/acessível aos fracos." (Friedr

Re: Revert database scheme based on django migrations

2017-09-12 Thread Alessandro Madruga Correia
Hi there To go to a specific migration just run $ python manage.py migrate About your data I think is better you make backup. Em 11 de set de 2017 20:11, "Luis Zárate" escreveu: Hello people, I really would like you to help me with some thing I need to solve. I have an app that do autom

Re: Problem with Django and python social auth

2016-12-06 Thread Alessandro Bispo dos Santos
Please ignore the capital letters. The code is correct. social_auth = models.OneToOneField ( 'default.UserSocialAuth', related_name = 'social_influence') Em 05-12-2016 14:38, Alessandro Bispo dos Santos escreveu: Hello. I'm new in Django. Ha

Problem with Django and python social auth

2016-12-05 Thread Alessandro Bispo dos Santos
Hello. I'm new in Django. Has anyone here worked with python-social-auth? I have an application here that was made using version 1.6 of Django, and I am trying to migrate to version 1.10. It turns out I'm going through some problems, and I'm not sure if it's because of differences between versi

Re: No module named MySQLdb

2016-09-20 Thread Alessandro Madruga Correia
BFeTqU3dz6mO5E1Zm0gqeEN4Vw% > 40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAA8yBMxrhHZfw5j_agwUD_24%2BFeTqU3dz6mO5E1Zm0gqeEN4Vw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. >

Re: How to send parameters in url tag?

2016-09-20 Thread Alessandro Madruga Correia
> > {%url url_name url_params%} > > where url_params as 'pk=object.id' or 'page=page.number' > Here have an example https://docs.djangoproject.com/en/1.10/topics/http/urls/#reverse-resolution-of-urls -- ,= ,-_-. =. [] Alessandro Madruga Correia ((

Re: cannot import name SortedDict

2016-09-20 Thread Alessandro Madruga Correia
the Django cache backend ? > > I have replaced the only occurence of SortedDict by > collections.OrderedDict in app_plugins.library.py. > > Is there something obvious I'm missing ? > I don't know this lib, but did you can try this https://github.com/aljosa/django-tinymce/

Problem with migration to Django 1.8

2016-09-13 Thread alessandro . henrique
Hello, I'm currently trying to migrate a project from django 1.5.1 to the newest version. I got stuck in the version 1.7. The only test that is not passing was made to try to get the e-mail from an admin: @pytest.mark.django_db @pytest.mark.admin_client def test_url_to_edit_object_admin(admin_c

Issue: get user type in custom submit_line.html template

2015-12-02 Thread Alessandro Peretti
Hi folk, I added a submit button in submit_line.html. I want to show it just for staff users and not for superusers. So I inserted {% if request.user.is_superuser %} but it doesn't work. It seems that the django variable user is outside this scope. How can I fix it? Thanks in advance. -- You

Problem to retrieve user type in custom submit_line.html template

2015-12-02 Thread Alessandro Peretti
;t work. It seems that the variable user is outside the scope. How can I fix this? Thanks in advance, Alessandro. :) -- 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, sen

contrib admin changeform_view and atomic

2015-03-19 Thread Alessandro Pasotti
nge view should be configurable in the settings, is there any chance to get this in the core if I file a ticket and provide a patch? -- Alessandro Pasotti w3: www.itopen.it -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsub

Different user profile associated to a each user group

2015-03-11 Thread Alessandro Pasotti
Hi, I've used custom user profiles in the past, but they were associated to all users, now I need to associate a different custom profile for each user group (for example: "corporate", "private"). Any hint about the best approach? -- Alessandro Pasotti w3: www.it

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-04 Thread Alessandro Caruso
I've moved the forms definition into a separated forms.py file (as suggested by a member of the italian group) and it seems to work. I'll do some tests in the next days then post the correct version. Il giorno venerdì 4 aprile 2014 12:36:17 UTC+2, Alessandro Caruso ha scritto: &

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-04 Thread Alessandro Caruso
orm, self).__init__(*args, **kwargs) > self.fields['managers'] = > forms.ModelMultipleChoiceField(choices=self.managers, required=False) > self.fields['viewers'] = > forms.ModelMultipleChoiceField(choices=self.viewers, required=False) > > Sor

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-03 Thread Alessandro Caruso
Thanks Liam Il giorno giovedì 3 aprile 2014 19:05:28 UTC+2, Liam Thompson ha scritto: > > Hi Alex > > Let me have another look through your code and I'll try to come up with > something useful. > > Liam > > > > > On 03/04/2014 18:20, Alessandro Carus

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-03 Thread Alessandro Caruso
I got the traceback (thanks to a middleware which collects it and a send it back to the ajax request even if DEBUG=False) Environment: Request Method: POST Request URL: http://server:8080/assets/edit/videoconference/30 Django Version: 1.4.5 Python Version: 2.7.3 Installed Applications: ('djang

Re: Problems with ManyToManyFields from Base and Derived Classes

2014-04-02 Thread Alessandro Caruso
= ModelMultipleChoiceField(queryset = User.objects.all().order_by( > 'username')) > > from the shell ? > > Liam > > > > > On Wednesday, 2 April 2014 15:12:42 UTC+2, Alessandro Caruso wrote: >> >> Hi all. >> >> >> the code: >> model

Different ManyToManyFields to the User Table cause problem when editing form

2014-04-02 Thread Alessandro Caruso
Hi all, I have a (strange) problem. When trying to edit the VideoconferenceForm (see code later) Django returns an error "Cannot resolve keyword 'videoconference' into field. Choices are:… " It happens only when running the code on Apache (on Django dev server it works without problems, I can't

Problems with ManyToManyFields from Base and Derived Classes

2014-04-02 Thread Alessandro Caruso
Hi all. the code: models.py https://gist.github.com/karuso/9766764 views.py (edit function) https://gist.github.com/karuso/9766806 the problem: When editing a Videoconference record through the VideoconferenceForm, Django returns an error: "Cannot resolve keyword 'videoconference' into field.

Best way to implement translations overrides ?

2014-03-13 Thread Alessandro Pasotti
is called, the DB table is queried for SITE_ID, LANG_CODE and the translation string * if a record is returned that tranlation is used instead of the "normal" translations (the one stored in language folder) Is this possible? Any hint would be highly appreciated. -- Alessandro Pasotti

Problem with authentication middleware, session and cache

2013-09-19 Thread Alessandro Pasotti
ached). Any suggestion about how to allow caching of my pages for anonymous users? -- Alessandro Pasotti w3: www.itopen.it -- 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

Re: Django 1.5.1, gdal 1.9.2: segmentation fault on DataSource import

2013-05-13 Thread Alessandro Candini
On 05/13/2013 03:03 PM, Fernando Rocha wrote: I find weird pygame reference there, do you also have pygame installed)? I've just tested on a env without pygame and: In [4]: In [6]: lgdal['GDALVersionInfo'](b'RELEASE_NAME') zsh: segmentation fault (core dumped) python manage.py shell Indeed I

Django 1.5.1, gdal 1.9.2: segmentation fault on DataSource import

2013-05-13 Thread Alessandro Candini
I cannot import gdal utilities anymore. I was working on a project on an Arch Linux machine, using Django 1.5.1 and GDAL 1.9.2. Today I have updated my distro and the DataSource failed its import: from django.contrib.gis.gdal import DataSource ... Exception Value: cannot import name DataSource

SpatialRefSys as foreign key?

2013-04-03 Thread Alessandro Candini
, which has either not been installed or is abstract. Is there a way to solve this? Thanks in advance, Alessandro -- 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, s

Django and Jenkins, and django-jenkins

2013-03-07 Thread Alessandro Pelliciari
Hi guys, help me to resolve this problem. I'll tell you the whole story :) A week ago i've set up a Jenkins server, installed django-jenkins, and set up a job for my tests and pylint, pep8 etc. In my tests i have selenium tests, with setup and teardown methods. Everything worked smooth until,

Re: Why i can't get the debug informations (in case of error) when i run LiveServerTestCase tests?

2013-02-09 Thread Alessandro Pelliciari
febbraio 2013 20:38:58 UTC+1, Ron Elliott ha scritto: > > > > On Tuesday, January 29, 2013 2:39:58 AM UTC-6, Alessandro Pelliciari wrote: >> >> Hi, I'm writing some tests with Selenium. >> >> When i run my selenium tests (LiveServerTestCase type) and i have s

Re: Why i can't get the debug informations (in case of error) when i run LiveServerTestCase tests?

2013-01-30 Thread Alessandro Pelliciari
logging at this moment. Alessandro Il giorno mercoledì 30 gennaio 2013 03:18:46 UTC+1, Ramiro Morales ha scritto: > > Ramiro Morales > On Jan 29, 2013 12:33 PM, "Alessandro Pelliciari" > > > wrote: > > > > thanks for the link! > > > > So Isn'

Re: Why i can't get the debug informations (in case of error) when i run LiveServerTestCase tests?

2013-01-29 Thread Alessandro Pelliciari
thanks for the link! So Isn't there a way to set DEBUG=True in tests? I have tried with @override_settings, but it didn't worked. Il giorno martedì 29 gennaio 2013 15:12:50 UTC+1, Ramiro Morales ha scritto: > > > On Jan 29, 2013 9:57 AM, "Alessandro Pelliciari"

Why i can't get the debug informations (in case of error) when i run LiveServerTestCase tests?

2013-01-29 Thread Alessandro Pelliciari
Hi, I'm writing some tests with Selenium. When i run my selenium tests (LiveServerTestCase type) and i have some error in my code (not in the test, i mean in the code executed, like the homepage view i reach with selenium) i get the 500 public template (that usually i get when i have DEBUG =

Re: Upload Image and pdf file

2012-09-04 Thread Dott. Tegagni Alessandro
The file settings.py is: http://dpaste.com/796111/ But the result is page not found, when i click on media file, that i upload. any ideas? Il giorno domenica 2 settembre 2012 15:53:48 UTC+2, Dott. Tegagni Alessandro ha scritto: > > The file urls.py is: http://dpaste.com/795211/ > If

Re: Upload Image and pdf file

2012-09-02 Thread Dott. Tegagni Alessandro
The file urls.py is: http://dpaste.com/795211/ If it is the help. Il giorno domenica 2 settembre 2012 14:51:21 UTC+2, Dott. Tegagni Alessandro ha scritto: > > The folder is empty. > > Il giorno venerdì 31 agosto 2012 08:47:55 UTC+2, Amyth ha scritto: >> >> Do you actual

Re: Upload Image and pdf file

2012-09-02 Thread Dott. Tegagni Alessandro
The folder is empty. Il giorno venerdì 31 agosto 2012 08:47:55 UTC+2, Amyth ha scritto: > > Do you actually see anyfiles uploaded under static/finale if you manually > browse the folder? or is it empty ? > > On Thu, Aug 30, 2012 at 7:54 PM, Dott. Tegagni Alessandro < > tefar

Upload Image and pdf file

2012-08-30 Thread Dott. Tegagni Alessandro
image or pdf file, that i uploaded, the browser tell me Page not found (404). The current URL, home/alessandro/Scrivania/progetto/static/finale/header_blog.jpg, didn't match any of these. I have verifed the permission, but i have in default chmod 777. Any ideas? I have follow also this tut

Re: Extend user model: class inheritance or OneToOneField?

2012-07-17 Thread Alessandro De Noia
s (links, books, etc..) where I can have a look? Thanks (and thanks Ernesto as well for his answer) Alex -- Alessandro De Noia -- 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@google

Re: Django Egypt

2012-07-13 Thread Dott. Tegagni Alessandro
Hi! I'm a Italian User of django. If possible join in your groups, I believe in cooperation of different culture, We work in technology and the share is fundamental. Can I enter in this group? Best regards Aless

Re: Static File - help, for a question

2012-07-12 Thread Dott. Tegagni Alessandro
Ok, but Static_root in settings.py is empty, so i import static_url or staticfiles_dirs ? In static_url there is define '/static/' In staticfiles_dirs are define: ( '/home/alessandro/Scrivania/progetto/media/photos/custodia/', '/home/alessandro/Scrivania/

Static File - help, for a question

2012-07-11 Thread Dott. Tegagni Alessandro
Hi! I do see the static files (images and pdf), I added STATIC_DIRS, the directories when I upload that files: STATICFILES_DIRS = ( '/home/alessandro/Scrivania/progetto/media/photos/custodia/', '/home/alessandro/Scrivania/progetto/media/definitiva/', '/

Error with permissions update file

2012-07-05 Thread Dott. Tegagni Alessandro
I wrote a django app, but i have a problem with the file permissions of the uploads files from a web form. Basically I can upload a image and a pdf file but it always keep chmod 600. I have add in settings.py: FILE_UPLOAD_PERMISSIONS = 0777, but when i upload a image/pdf file the permissions

Re: Thread local storage issue under Apache

2012-02-10 Thread Alessandro Candini
On 02/10/2012 01:11 PM, Tom Evans wrote: On Fri, Feb 10, 2012 at 11:00 AM, Alessandro Candini wrote: Hi everyone. … But if I run the same application under the Apache web server, I get the following error: Fatal Python error: Couldn't create autoTLSkey mapping … I'm using Apache

Thread local storage issue under Apache

2012-02-10 Thread Alessandro Candini
Hi everyone. I have a django project in where I've added a custom .py file which launches a shell command (a GDAL utility to manipulate shapefiles): subprocess.call(["ogr2ogr", "-t_srs", "EPSG:900913", shpGoogle, shpOrig]) If I run the function containing this command using django web server

Import a custom py file into views.py

2012-02-09 Thread Alessandro Candini
Hi list. In my project named STO I have the 'jsonopenlayers' app with the following structure: STO ├── __init__.py ├── jsonopenlayers │ ├── ingestion │ │ └── ingestShp.py │ ├── __init__.py │ ├── models.py │ └── views.py ├── manage.py └── settings.py What I would like to do is to import the fun

Re: south create_table doesn't work

2012-02-02 Thread Alessandro Candini
Nobody who has experience with south? On Feb 2, 5:14 pm, Alessandro Candini wrote: > I'm trying to use django-south-0.7.3 API's to create a table, following > this:http://south.aeracode.org/docs/databaseapi.html#accessing-the-api > > This is my code: > from sout

south create_table doesn't work

2012-02-02 Thread Alessandro Candini
I'm trying to use django-south-0.7.3 API's to create a table, following this: http://south.aeracode.org/docs/databaseapi.html#accessing-the-api This is my code: from south.db import dbs dbs['lc'].create_table('test', [ ('id', models.AutoField(primary_key=True)), ('name',

Re: Dynamic runtime modeling: which is the best choice?

2012-02-01 Thread Alessandro Candini
>         This sounds more like a need for shapefile translators (codecs, if > you will)... On input you'd convert the contents into a common database > format; reverse the process on output. What is a "common database format"? If a shape file has 5 fields and another one 10 (and I dont' know the

Re: Dynamic runtime modeling: which is the best choice?

2012-01-31 Thread Alessandro Candini
shape your user inserts? Most likely you need to design a generic models in which you would insert new rows for every shape. I mean generic in the sense that it is designed to contain different shapes not any special Django or Python stuff 2012/1/31 Alessandro Candini: Hi list. I need to create

Dynamic runtime modeling: which is the best choice?

2012-01-31 Thread Alessandro Candini
here: http://stackoverflow.com/questions/7933596/django-dynamic-model-fields/7934577#7934577) But I'm very confused about what could be the best solution for my needs. Has anybody experience with this kind of tools? Thanks in advance. Alessandro -- You received this message because yo

Re: Parse a javascript file having django template variables

2011-11-25 Thread Alessandro Candini
On 11/25/2011 03:06 PM, Tom Evans wrote: On Fri, Nov 25, 2011 at 11:25 AM, Alessandro Candini wrote: Hi everybody. I have an application with the following structure: STO ├── __init__.py ├── jsonopenlayers │ ├── __init__.py │ ├── models.py │ ├── static │ │ ├── css │ │ │ └── STO.css

Parse a javascript file having django template variables

2011-11-25 Thread Alessandro Candini
│ └── jsonopenlayers │ └── index.html └── urls.py Static files are found, but I have the problem that inside renderMaps.js I have some Django template tag to be interpreted. How can I tell Django to parse also that, in addition to my index.html? Thanks in advance. -- Alessandro Candini MEEO S.r.l

Re: Multitenant in Django

2011-09-11 Thread Alessandro Pasotti
ave any problem. We have been using the middleware hack with Django 1.2.6 from more than one year. The midleware run first and set settings.SITE_ID according to the current site, something like http://dpaste.com/612953/ Currently running nginx + uwsgi but we used mod_wsgi for the last couple o

django comments: CSRF failure (randomly)

2011-09-07 Thread Alessandro Pasotti
ling the cache middleware doesn't seems to change anything. Any hint about what I can further check ? This is the order of my middlewares: http://dpaste.com/610460/ Deployment is with apache/mod_wsgi: WSGIDaemonProcess mysite.com user=www-data group=www-data processes=10 threads=1 display-

Re: i18n django models

2011-01-08 Thread Alessandro Pasotti
ng an unknown command, > > > Cheers, > > > I dont' know... did you add transmeta to the installed app in settings.py ? -- Alessandro Pasotti w3: www.itopen.it -- You received this message because you are subscribed to the Google Groups "Django users"

Re: i18n django models

2011-01-08 Thread Alessandro Pasotti
it to suit my needs but it works well and I found it an elegant solution. http://code.google.com/p/django-transmeta/ some migration/maintenance commands are also available within the lib. -- Alessandro Pasotti w3: www.itopen.it -- You received this message because you are subscribed to the G

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

2010-10-12 Thread Alessandro Pasotti
2010/10/12 tee > Hello users, > > What would you say are the weaknesses of django framework?? > Recently, we have seen a very interesting discussion on this list: search on Google for "Why Django Apps Suck" very interesting is also: http://blip.tv/file/4112452/ --

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

Re: How to check for m2m orphans before deleting an object?

2010-08-14 Thread Alessandro Pasotti
an exception will display 500 error page and I couldn't find a way to redisplay the change_list template with a nice message. -- Alessandro Pasotti w3: www.itopen.it -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: How to check for m2m orphans before deleting an object?

2010-08-13 Thread Alessandro Pasotti
with MPTT (code.google.com/p/django-mptt/), perhaps this app override delete() ? In my test the TrackCategory I'm deleting has no subcategories and has no parent category. -- Alessandro Pasotti w3: www.itopen.it -- You received this message because you are subscribed to the Google Groups

How to check for m2m orphans before deleting an object?

2010-08-13 Thread Alessandro Pasotti
x27;m using Django 1.2 -- Alessandro Pasotti w3: www.itopen.it -- 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 unsubscribe from this group, send email to django

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: ordering objects in the admin area

2010-06-08 Thread Alessandro Pasotti
ethod is just one: insert_at called with the new position as argument). -- Alessandro Pasotti w3: www.itopen.it -- 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 un

Re: Upload code from development server to local server

2010-05-14 Thread Alessandro Pasotti
s you will see, you have many different possibilities, mod_wsgi being the recommended one: docs.djangoproject.com/en/1.1/howto/deployment/#howto-deployment-index -- Alessandro Pasotti w3: www.itopen.it -- You received this message because you are subscribed to the Google Groups "Django

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

  1   2   3   4   >