Re: Management command scheduling options

2023-10-23 Thread Rodrigo Bistolfi
Use devops for setting up cron jobs as part of the deployment process. You could also use something like https://apscheduler.readthedocs.io/en/3.x/ if you wanna something OS independent. El lun, 23 oct 2023 a las 7:08, Mike Dewhirst () escribió: > Django docs suggest cron or Windows scheduler

preciso trazer como informações que não há banco de dados para renderizar no index.html

2022-07-07 Thread Rodrigo Alves
Bom Dia, Estou usando o django, e preciso trazer como informações que não há banco de dados para renderizar no index.html, mas esta apresentando erro… (env) PS E:\crudpython> & e:/crudpython/env/Scripts/python.exe e:/crudpython/core/views.py Traceback (última chamada mais recente): Arquivo

cannot assign to literal

2021-05-07 Thread Rodrigo Alves
Boa tarde amigos! alguém pode me ajudar? esta aparecendo este erro! cannot assign to literal o meu codigo é este: def form(request): data = {} data = ['form'] = CarrosForm() return render(request, 'form.html', data) -- You received this message because you are subscribed to the

Re: Help needed

2021-02-23 Thread Rodrigo Delfino
Such as others have said, you should remove ```auto_now=True```, after that, you cant forget to run ```makemigrantions``` and ```migrate``` Em terça-feira, 23 de fevereiro de 2021 às 03:04:24 UTC-3, bhurk...@gmail.com escreveu: > Hello everyone, > > I am trying to select the custom date but

Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Culagovski
Not looking for a general intro to geodjango, but rather what I asked. Thanks anyway. Saludos, *Rodrigo Culagovski* Director +569 7667 0402 H98R+8C Santiago On Fri, 20 Nov 2020 at 17:55, Dhruvil Shah wrote: > I don't think. so, it's basic project on how to use it and also find > di

Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Culagovski
Great, thanks. Saludos, *Rodrigo Culagovski* Director +569 7667 0402 H98R+8C Santiago On Fri, 20 Nov 2020 at 18:26, Mohammed Alnajdi wrote: > Yes it does. It connects to the Esri WMS. if you actually read the docs > enough you will find it. > > On Fri, Nov 20, 2020 at 9:3

Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Culagovski
Does it connect to ESRI services? I can't find any reference to that in the video, and that's what I specifically need. Saludos, *Rodrigo Culagovski* Director +569 7667 0402 H98R+8C Santiago On Fri, 20 Nov 2020 at 15:43, Dhruvil Shah wrote: > You can follow this YouTuber he has m

Re: Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Culagovski
Does it connect to ESRI services? I can't find any reference to that on their site, and that's what I specifically need. Saludos, *Rodrigo Culagovski* Director +569 7667 0402 H98R+8C Santiago On Fri, 20 Nov 2020 at 14:37, Mohammed Alnajdi wrote: > You might want to check out the GeoN

Integrating GeoDjango with Esri API

2020-11-20 Thread Rodrigo Cea
I'm developing a mapping website. I will be consuming map layers from ESRI Online. I see they have a fairly sophisticated Python API. The site will be django based. I wonder how easy it would be to use GeoDjango for local storage and editing of geographical data as well as other, not

Migration problems when using intermediate (through) table on many-to-many relationship

2020-06-18 Thread 'Rodrigo Estevão' via Django users
Applying dataload.0001_initial...Traceback (most recent call last): File "/home/rodrigo/Workspace/fgv/sacvbackend/src/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute return self.cursor.execute(sql, params) psycopg2.errors.UndefinedObject: constr

Re: Trouble after create a pool

2020-02-14 Thread Rodrigo Silva
> > I got it! > There were a typing error. Thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view

Trouble after create a pool

2020-02-13 Thread Rodrigo Silva
Hi, I'm starting in django and learning about the tutorials. After I have been created and set up, when I run the server the shell show me a error Someone can help me? Than you! C:\Users\carva\mysite>python manage.py runserver Watching for file changes with StatReloader Performing system

Django channels raises TypeError on close: An asyncio.Future, a coroutine or an awaitable is required

2019-03-23 Thread Rodrigo Bistolfi
FIRST_COMPLETED, ) finally: self._pop_message_waiter = None In websockets/protocol.py line 410 and ss, `self.trasfer_data_task` is `None`. If I remove it from the wait list it seems to work. Any ideas? Thanks in advance, Rodrigo -- You received this message because you are subscribed to the Goog

django install

2018-09-07 Thread gonzalo rodrigo pereyra
saludos. soy nuevo en el increible mundo de la programacion, primero comence leyendo mucho y me gusto python., asi que lo instale ( la version 3.6.5.) y me gusta mucho dibujar asi que me incline para hacer diseño de paginas con django. si no es mucha molestia me podrian ayudar a instalar el

Re: Not able to install mysql for pyhton.

2018-09-06 Thread Rodrigo Zayit
Try: pip install mysqlclient==1.3.4 and if this command does not work, try it: pip install --only-binary :all: mysqlclient Att., Rodrigo de Oliveira On Thu, 6 Sep 2018 at 09:04, Rodrigo Zayit wrote: > Have you installed MySQL? > > Att., > Rodrigo de Oliveira > > > On

Re: Not able to install mysql for pyhton.

2018-09-06 Thread Rodrigo Zayit
Have you installed MySQL? Att., Rodrigo de Oliveira On Thu, 6 Sep 2018 at 09:01, Django Lover wrote: > *I am getting following error when i am running pip install > mysql-python Comand . Please help??* > > > > [image: asd.png] > > -- > You received this message

Tests broken when I have two database in settings

2017-09-04 Thread Rodrigo Braga
Hello, I have troubles when I try running tests with two databases configured. I have migrations with RunPython (where the problem occurs). I opened a thread on Stackoverflow [1] but without answers yet. * sorry my English [1]

How to change a language's label in Django language specific URLs using i18n_patterns?

2017-01-06 Thread Rodrigo Cea
I'm using Django's i18n_patterns, so my URLs look like www.domain.com/pt/title. I want to change the language code in the URL to a different string, say, for example 'br' instead of 'pt', so the same url above would be rendered www.domain.com/*br*/title. I only want to change the language's

Re: Best django domain host for signup page

2015-02-26 Thread Rodrigo Zayit
If you know how to setup a server, I recommend DigitalOcean <https://www.digitalocean.com/?refcode=1a0a61e97dd5> - They have tutorials to help you to setup the server. Cheers, Rodrigo Atenciosamente, Rodrigo de Oliveira On Thu, Feb 26, 2015 at 10:25 AM, Harish Pentapalli <

Re: how to put files in different dirs

2015-02-26 Thread Rodrigo Zayit
Yeah! Or you can write your own method to upload_to. It is easy too. I've made a simple example: https://gist.github.com/rodrigo-zayit/604da297d9c30e7d This example save the pictures in: media/images/products/1/product-slug/randomstring.ext Where "1" is the id of the product'

Re: Using Signals - request_finished

2015-02-26 Thread Rodrigo Zayit
put on your __init__.py file: from signals import request_finished_callback I guess it'll work. Atenciosamente, Rodrigo de Oliveira On Wed, Feb 25, 2015 at 6:21 PM, Rootz <arc4g...@gmail.com> wrote: > Still not working > > > On Wednesday, February 25, 2015 at

Re: Using Signals - request_finished

2015-02-25 Thread Rodrigo Zayit
If it is being loaded and it is not working, try to do by this way: from django.core.signals import request_finished from django.dispatch import receiver @receiver(request_finished) def request_finished_callback(sender, **kwargs): # . . . On Wednesday, 25 February 2015 14:01:24 UTC-3, Rootz

Re: django deployment in a virtual machine.

2015-02-25 Thread Rodrigo Zayit
anywhere Atenciosamente, Rodrigo de Oliveira On Wed, Feb 25, 2015 at 2:19 PM, dk <demi...@gmail.com> wrote: > thanks guys, I installed Apache and I am setting everything, does my > project really need to be in /etc/www/ > > or I can put anywhere in the computer

Re: how to put files in different dirs

2015-02-25 Thread Rodrigo Zayit
Hi! I didn't understand your question. You don't need to put all your files in the same dir... you can create folders like "images", "images/products", "css", "js", etc Or are you asking about "media files"? I mean, files that will be uploa

Re: Delete the file related on the FileField

2015-02-25 Thread Rodrigo Zayit
method: def delete(self, *args, **kwargs): self.field_name.storage.delete(self.field_name.path) return super(ModelName, self).delete(*args, **kwargs) Best regards, Rodrigo Zayit On Tuesday, 24 February 2015 22:30:53 UTC-3, Karim Gorjux wrote: > > I'm using a form that get an

Re: NameError name 'lang' is not defined, corresponds to name 'polls' is not defined,

2014-07-08 Thread Rodrigo Caicedo
In your INSTALLED_APPS part in the configuration file, the registered application is called 'langu', and not 'lang'. If you copied your code, that's your problem. On Sunday, July 6, 2014 2:26:15 AM UTC-5, gintare wrote: > > I am trying to create a project "lang" according Django documentation

Re: Can Django do this?

2013-03-20 Thread Rodrigo Morgado
I prefer not using flash and developing agile. Without problem you can do that :) Cheers, El 20/03/2013 22:26, "Harry Ord" escribió: > Hello > > Can i create a website just like this with Django? > > http://www.hbn.cl/ > > -- > You received this message because you are

Re: Happy new year

2012-12-31 Thread Rodrigo Morgado
Happy New Year to all of you from Santiago, Chile! El 31/12/2012 21:28, "Victor Manuel Quiñones Victor" < quinonesvic...@gmail.com> escribió: > Happy New Year!! Have a good year to all you. > > Cheers > > On Mon, Dec 31, 2012 at 9:10 PM, Raphael wrote: > >> ** >>

Re: Happy new year

2012-12-31 Thread Rodrigo Martins
Happy new year to all of Django users worldwide. -- * Atenciosamente* ___ Rodrigo Martins www.rrmartins.com <http://rrmartins.github.com> tel: (28) 9882-6202 (27) 9601-9573 (21) 9942-2016 My profiles: [image: Facebook] <http://pt-br.fac

Re: Changing the index page

2012-10-29 Thread Rodrigo Morgado
e web visit > https://groups.google.com/d/msg/django-users/-/NcMX0qVYXTcJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at &

Re: Installing Djando and tutor polls app

2012-10-26 Thread Rodrigo Morgado
Stefan and Lachian, I really appreciate your help. I didn't see spelling mistake. Thank you and have a nice day. Rodrigo 2012/10/26 Stephen Anto <charvigro...@gmail.com> > Hi, > > as Lachian said, It is spelling mistake for ForeignKey. Just correct your > word. > > >

Installing Djando and tutor polls app

2012-10-25 Thread Rodrigo Morgado
9 class Choice(models.Model): 10 poll = models.ForeingKey(Poll) 11 choice = models.CharField(max_length=200) 12 votes = models.IntegerField() 13 Thank you for helping me. Cheers, Rodrigo -- You received this message because you are subscribed to the Google Groups &q

How can I limit a 'list_filter' to a certain subset of objects?

2011-11-03 Thread Rodrigo Cea
e Projects assigned to the Client. Thanks, Rodrigo -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/xO-ARZBOXp4J. To post to this group, send e

Re: Django views

2011-06-28 Thread Rodrigo Gomes
Hi, Did you try to do what the docs said about static files? https://docs.djangoproject.com/en/dev/howto/static-files/ On Tue, Jun 28, 2011 at 5:17 AM, sandeep kaur wrote: > Hello all, > I want to include background images and gallery images to my django project >

Re: Helper methods like rails or taglibs/tagfiles like java

2011-06-17 Thread Rodrigo Gomes
param_str = context['param_str'] ... But this give me the error: TemplateSyntaxError at /my/url/ my_tag takes 0 arguments Am I using the 'with' tag wrongly? thanks, Rodrigo Gomes On Fri, Jun 17, 2011 at 5:31 AM, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Jun 16, 2011

Re: Helper methods like rails or taglibs/tagfiles like java

2011-06-16 Thread Rodrigo Gomes
positional. But is works []'s Rodrigo Gomes On Wed, Jun 15, 2011 at 10:29 PM, Kenneth Gonsalves <law...@thenilgiris.com>wrote: > On Wed, 2011-06-15 at 11:01 -0300, Rodrigo Gomes wrote: > > But I think that I'm missing something. Is it so hard to write a > > simple > > c

Re: Helper methods like rails or taglibs/tagfiles like java

2011-06-15 Thread Rodrigo Gomes
Hi Tom, thanks for your reply. Inclusion tag seems to be better (to write) than the other kinds of tags. But I think that it is still too many things to do just to write a tag. But it works, and I'm doing this way right now :) Thanks, Rodrigo Gomes On Wed, Jun 15, 2011 at 11:11 AM, Tom Evans

Helper methods like rails or taglibs/tagfiles like java

2011-06-15 Thread Rodrigo Gomes
to do that? What I want is just write some custom html components (inputs) with specific behavior. Any tips? Thanks, Rodrigo Gomes -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: How to build a social network

2011-04-20 Thread Rodrigo Ruiz
Thank you very much, haven't looked up on your links yet, but it was very enlightening. On Thu, Apr 21, 2011 at 12:06 AM, Dug_the_Math_Guy <dugthemath...@gmail.com>wrote: > Hi Rodrigo, > I'm new to Django too. I started with the tutorial, then bought a book > called "Pract

Re: How to build a social network

2011-04-20 Thread Rodrigo Ruiz
in a lot of different places. What I'm looking for is, for example, one book that covers all I need to build a social network, or one tutorial. On Wed, Apr 20, 2011 at 11:53 PM, Kenny Meyer <knny.m...@gmail.com> wrote: > On Wed, Apr 20, 2011 at 8:09 PM, Rodrigo Ruiz <rodrigo.ru...@gmail.

Re: How to build a social network

2011-04-20 Thread Rodrigo Ruiz
network with django in three minutes, but I doubt you > can make one as popular or as well designed as Facebook in that little time > (and a lot of other things) > > Well, good luck... > > George > > On Wed, Apr 20, 2011 at 9:09 PM, Rodrigo Ruiz <rodrigo.ru...@gmail.com>

Re: How to build a social network

2011-04-20 Thread Rodrigo Ruiz
Another thing I still haven't decided is between python with Django or ruby on rails. I know it's a Django group, so I know i must expect the good aspects on Django, but why should I use Django instead of ruby on rails? I don't know any, so I can't defend any, but one thing I had trouble with

Re: How to build a social network

2011-04-20 Thread Rodrigo Ruiz
Can I learn how to make a socicial network website like facebook just with those Django tutorials? On Wed, Apr 20, 2011 at 9:02 PM, Ruturaj Dhekane <rutura...@gmail.com>wrote: > Hi Rodrigo, > > I feel Social network is a hype term that has come into picture in recent >

How to build a social network

2011-04-20 Thread Rodrigo Ruiz
about pinax, didn't really understand what that is and couldn't find any tutorias/books as well about social network with pinax. Thank you for your time, Rodrigo -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

What apps or snippets to use for Facebook and Twitter registration, login and posting?

2011-03-02 Thread Rodrigo Cea
to the local one (crossposting to their FB and Twitter account, pulling in their posts on FB and TW, etc.) Thanks, Rodrigo -- 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: Looking for IDE + FTP

2011-02-08 Thread Rodrigo
If you work in Windows I would recommend PyScripter. It is lightweight and the fastest IDE I've tested so far (and I've used others like PyDev, Wing or NetBeans) It also features code completion, debugging, etc. I've used it to debug several Django applications and it worked like a charm. --

Problem with 'resolve' in non-root Apache installations

2011-02-08 Thread Rodrigo
. Is this a normal behavior, or am I misunderstunding reverse and resolve? Thanks in advance. Kind regards, Rodrigo. -- 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

Django on IIS randomly changing LANGUAGE_CODE

2011-01-19 Thread Rodrigo Cea
I hava a Django production site on IIS 6.0. The LANGUAGE_CODE is set to 'es-cl' There are forms on the site. Sometimes the site seems to switch to English, returning validation errors on dates written in dd/mm/ format. The errors themselves are in English (whereas they're normally in Spanish).

Re: Need a tip on how to architect this code to be more extensible

2010-12-05 Thread Rodrigo "OreiA" Chacon
Hi. There's a really good talk by James Bennett at the Google I/O 2008 that may help you. James talk mostly about the best practices when writing a "Reusable App". http://www.youtube.com/watch?v=A-S0tqpPga4 I'm sorry for my rusty english. -- Rodrigo Chacon On Dec 5, 3:53 am, S

Re: Key 'buscar' not found in "

2010-11-26 Thread Rodrigo "OreiA" Chacon
: buscar = request.GET['buscar'] ;-) -- Rodrigo Chacon On Nov 25, 12:42 pm, Nick Arnett <nick.arn...@gmail.com> wrote: > On Thu, Nov 25, 2010 at 6:35 AM, bvcelari <bvcel...@gmail.com> wrote: > > Hy, > > I'm trying to deploy my first django app, and I'm trying to use > &g

May I use an html form outside django to login?

2010-10-21 Thread Rodrigo
I have my doubts that csrf protection won't allow me, in that case I'd like to discuss how to circumvent that fact (if it's the correct way to do it) or which other kind if changes should I do to fullfill my needs. Thanks in advance. -- You received this message because you are subscribed to

hosting django applications

2010-08-27 Thread Rodrigo Lombardo
if anyone here is happy with the Amazon's service. * The FreeBSD in this case will be a vps with 512mb of ram from rootbsd.net Thanks, Rodrigo Nicola Twitter: http://www.twitter.com/rodnic -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: readonly form field

2010-08-25 Thread Rodrigo Lombardo
Great answers, thanks! I'd like to complement this thread remembering the importance of overriding the save method to save just the desired fields and in this way, avoiding Django to validate read-only fields. Rodrigo Nicola Twitter: http://www.twitter.com/rodnic On Wed, Aug 25, 2010 at 5:29

readonly form field

2010-08-24 Thread Rodrigo Lombardo
-a-field-readonly-or-disabled-so-that-it-cannot-be My question is: Nowadays, there's a better way to do the same thing? Thanks, Rodrigo Nicola Twitter: http://www.twitter.com/rodnic -- You received this message because you are subscribed to the Google Groups "Django users" grou

Odd error on trunk

2010-05-11 Thread Rodrigo Cea
I have a project that works OK using v1.1.1. However, if I try to run it on trunk, I get this error: "Error: cannot import name DateField". Just that, no traceback, etc. I have no reference to "DateField" in my project. There was 1 in django_extensions, but removing it and even not loading

Re: coltrane sample at "practical django projects" book has a templates error

2010-04-22 Thread Rodrigo
could you post your urls.py ? On Apr 21, 6:51 pm, xota wrote: > Or I do something bad, I was searching in google and some pepople have > same/similar error without replies, can you help me, this is my error: > > Caught an exception while rendering: Reverse for >

Row Level Permissions?

2010-03-11 Thread Rodrigo Cea
if there's a more standard way to do it. Rodrigo -- 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-user

Re: Django not reading the URLConf (urls.py)

2010-02-28 Thread Rodrigo
I checked the ROOT_URLCONF and it was fine, and deleted all the *.pyc, without good results, but finally I found the problem. There was a copy of the same project in some other folder under the PYTHONPATH, so there was some kind of collision. Thanks everybody for helping me out. On Feb 28, 1:57 

Django not reading the URLConf (urls.py)

2010-02-27 Thread Rodrigo
If I update any line on the urls.py, this doesn't reflect on the server. I can even DELETE the file, and all the urls are still working. I've tried restarting runserver many times, even restarting the computer, and nothing happens. The last test I did was deleting settings.py, to see if there was

Re: Cannot add inlines to Flatpages

2010-01-30 Thread Rodrigo
Ok, just restarted (I actually restarted many times) and it magically started working. On Jan 31, 12:47 am, Rodrigo <kewl...@gmail.com> wrote: > I'm following the tutorial on the book "Practical Django Projects", > and I just can't inline the SearchKeywords to Flatpages, ma

Cannot add inlines to Flatpages

2010-01-30 Thread Rodrigo
I'm following the tutorial on the book "Practical Django Projects", and I just can't inline the SearchKeywords to Flatpages, maybe the problem lays in the fact that I'm using the development version of django. It doesn't output any error, it just shows the flatpages standard admin page, without

Re: Thanks for (Geo)Django

2009-12-24 Thread Rodrigo Cea
Absolutely. Django and everybody who works on it has made my life richer in both the metaphoric and literal senses. Thanks! On Dec 24, 4:05 am, Gabriel Gunderson wrote: > On Wed, Dec 23, 2009 at 2:52 PM, Ariel Nunez wrote: > > Thanks one more time, I

Re: question about django-pagination

2009-12-19 Thread Rodrigo Cea
You can paginate whatever you want. From the docs: "Note that you can give Paginator a list/tuple, a Django QuerySet, or any other object with a count() or __len__() method. " On Dec 19, 3:33 am, Continuation wrote: > In the django-pagination, it uses the example: > {%

Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-12-01 Thread Rodrigo Cea
Hi Ken, thanks for your response, I get the exact same results as you, .py=Python.File and Python.File="C:\Python25\python.exe" "%1" %* Thanks, Rodrigo On Dec 1, 11:49 am, Ken MacDonald <drken...@gmail.com> wrote: > Hi, > Check this out - on my XP system anyw

Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-12-01 Thread Rodrigo Cea
Thanks for the response. Doing some more tests python programs do work, they just seem to not recieve sys.argv. The results of calling "manage.py runserver" is the same as calling just "manage.py". Other simple scripts bear this out. Thanks, Rodrigo On Dec 1, 6:32 a

Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-11-30 Thread Rodrigo Cea
Following an abortive attempt to install Python2.6 on Windows 7, I can't run the Django dev server without prepending "python" before "manage.py runserver". I tried recently to install Python2.6 on a windows 7 system that already has python 2.5 installed. I had problems running some Django

Retrieving a subclass instance when all you have is its parent class instance

2009-11-27 Thread Rodrigo Cea
I have a parent Class "ComponentBase", with abstract=False, that many other classes extend. The parent Class has a ForeignKey relation to another class, "Band". It is convenient to be able to get a list of all of a band's components without having to explicitly list each component class. I am

Problem rendering and saving pre-existing file values in a generic_inlineformset

2009-11-11 Thread Rodrigo Cea
I have a generic_inlineformset_factory instance being rendered via a bound form so that users can modify an existing object. The form renders OK, except for the File and Image fields, which show up as empty. The CharFields in the same models have their correct values. If I try to save the form, I

Crop interface for ImageFields?

2009-11-03 Thread Rodrigo Cea
Is there an app or snippet that integrates a cropping interface to image fields in the admin? Something in flash or javascript, like the one in flickr, for example? I have some photoshop-challenged users who are always uploading pictures in the wrong sizes. Said pictures get cropped

Re: How to change name for model in Admin?

2009-10-04 Thread Rodrigo Cea
Please post the actual code that's not working. This should work regardless of the value of verbose_name. Rodrigo On Oct 3, 7:51 pm, adelaide_mike <mike.ro...@internode.on.net> wrote: > Thanks for the pointer. > > I find that the verbose_name works as advertised in the case of

Returning a file from a view

2009-10-01 Thread Rodrigo Cea
I am creating a password-protected file repository. I would like to create a login_required view that returns the file without revealing it's actual location in the file system. Can I return an actual file (not it's location) from a view? --~--~-~--~~~---~--~~ You

Which compressor / packer for CSS and JS?

2009-09-29 Thread Rodrigo Cea
10 of each). It also have a lot of images on each page. I would like to use a compressor to speed things up a bit. The project is a medium sized corporate site, on a single server (Dynamic, Static and DB) with no CDN. Mostly a brochure site, with plenty of images, flash and vide

Re: HELP ME

2009-09-16 Thread Rodrigo Cea
cessfully? The Django community is very, very helpful and patient, but you're not really helping them help you. Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Remote login via XML-RPC or SOAP?

2009-09-16 Thread Rodrigo Cea
> Why do we need such a mechanism for the relationship between > client database and the master server. Maybe you need something > else entirely. Could you tell more general idea. The general idea is to allow users to register and login on our server, but store all the users information on our

Remote login via XML-RPC or SOAP?

2009-09-14 Thread Rodrigo Cea
I am creating a Django website for a client who won't give me access to their database or server, but will allow login / account creation on their server via SOAP or XML-RPC from my server, where the Django- based website will reside. I would like to get an idea beforehand about which route, SOAP

Re: PyFacebook and python-twitter

2009-09-14 Thread Rodrigo Cea
Most of the time, if you don't know how / can't install them, you can simply drop a library into your Django project directory and it will just work. On Sep 13, 1:36 pm, Chris Babcock wrote: > On Sun, 13 Sep 2009 10:21:41 -0600 > > Adam Olsen

Re: UnicodeEncodeError on admin site

2009-07-21 Thread Rodrigo Gomes
Hi Daniel, I just changed my method as you suggested, to def __unicode__(self) and the problem was solved. Thanks so much! Rodrigo On Tue, Jul 21, 2009 at 12:54 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Jul 21, 3:46 pm, Rodrigo Gomes <rgo...@gmail.com> wr

Re: UnicodeEncodeError on admin site

2009-07-21 Thread Rodrigo Gomes
self.nome_convidado + " - " + self.descricao_presente* On Tue, Jul 21, 2009 at 10:05 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Jul 21, 1:27 pm, Rodrigo Gomes <rgo...@gmail.com> wrote: > > Hi, > > > > I'm getting the error b

UnicodeEncodeError on admin site

2009-07-21 Thread Rodrigo Gomes
) File "/Library/Python/2.5/site-packages/django/utils/encoding.py", line 52, in force_unicode s = unicode(str(s), encoding, errors) UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 9: ordinal not in range(128) Thanks, Rodrigo Gomes --~--~-~--~

Re: Trouble rendering a ManyToManyField with CheckBoxSelectMultiple widget

2009-06-25 Thread Rodrigo Cea
Stupid mistake, I had to use a MultipleChoiceField instead of a plain ChoiceField. styles= forms.MultipleChoiceField (widget=forms.CheckboxSelectMultiple (), --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Trouble rendering a ManyToManyField with CheckBoxSelectMultiple widget

2009-06-25 Thread Rodrigo Cea
permutations for "choices", including choices= [(i.id,i) for i in Estilo.objects.all()], with no luck so far. Thanks, Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Django unicode model pickle problem

2009-06-22 Thread Rodrigo Cea
I am having trouble pickling, and then saving to the DB, django models with Unicode text in them. The site is for Spanish speakers, so we need our ñs, és and ös. I implemented an unlimited undo feature for a Django site, using this PickleField snippet:

Re: Make a "save and preview" button in admin.

2009-06-17 Thread Rodrigo Cea
Thanks, I'll look into it and post back if I solve this. Rodrigo On Jun 17, 1:32 pm, Liam Chasteen <liam.chast...@gmail.com> wrote: > Check out the article on developerworks: > > http://www.ibm.com/developerworks/opensource/library/os-django-admin/... > > The met

Re: Some ForeignKeys show up as list_filters, some don't.

2009-06-08 Thread Rodrigo Cea
ow up at the side of the admin screen. " On Jun 8, 12:44 am, Rodrigo Cea <rodrigo...@gmail.com> wrote: > I have a model with 4 ForeignKeys: 'autor','categoria','edicion' and > 'dossier'. In admin.py, I am trying to assign them as "list_filter". > However, onl

Some ForeignKeys show up as list_filters, some don't.

2009-06-07 Thread Rodrigo Cea
I have a model with 4 ForeignKeys: 'autor','categoria','edicion' and 'dossier'. In admin.py, I am trying to assign them as "list_filter". However, only 2 of them actually show up within the filters, 'autor' and 'categoria'. All four show up as columns without any problems. Does anybody have any

Make a "save and preview" button in admin.

2009-06-07 Thread Rodrigo Cea
I have added a "preview" button to the admin, like so: # In "templates/admin/core/change_form.html" {% extends "admin/change_form.html" %} {% load i18n %} {% block object-tools %} {% if change %}{% if not is_popup %} Preview {{ form.data}} {% trans "History" %} {% if has_absolute_url

Re: Validate image size in admin.

2009-06-07 Thread Rodrigo Cea
Beautiful, works like a charm. Also finally learned how to validate in the admin! Thanks, Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Validate image size in admin.

2009-06-07 Thread Rodrigo Cea
So if I followed this: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adding-custom-validation-to-the-admin and the field I was cleaning was called "image", would the validation function be called "clean_image"? Thanks for the super quick response, Rodrigo On

Validate image size in admin.

2009-06-07 Thread Rodrigo Cea
How can I validate, in the admin, that images uploaded by users have a minimum size in pixels? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: perfomance question

2009-05-20 Thread Rodrigo Aliste P.
OH! It does it alone! Another awesome thing to my awesomeness list of django. 2009/5/20 Rodrigo <rali...@gmail.com> > Hi users and devs > > In the next example for pagination: > >contact_list = Contacts.objects.all() >paginator = Paginator(contact_list, 25) # Sho

perfomance question

2009-05-20 Thread Rodrigo
. Wouldn't be significantly more fast to query for Contacts.objects.all() [offset:limit]? Instead of cut a big list and querying for all objects at the same time? Regards, Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Pass subdomain to a view function.

2009-04-08 Thread Rodrigo C.
le to pass the subdomain to my view function. The site will be hosted on Webfaction, if that makes a difference. Thanks, Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

problems with django+fastcgi

2009-02-09 Thread Rodrigo Lazo
dHandler fastcgi-script .fcgi | RewriteEngine On | RewriteCond %{REQUEST_FILENAME} !-f | RewriteRule ^(.*)$ engine.fcgi/$1 [QSA,L] ` -- Rodrigo Lazo (rlazo) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Limiting available fields in admin for non-superusers

2009-02-03 Thread Rodrigo C.
fields, non- superusers see some fields). Is this possible without major surgery? Thanks, Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Limiting available fields in admin for non-superusers

2009-02-03 Thread Rodrigo C.
Never mind, it was easy. Basically, overriding the "get_form": def get_form(self, request, obj=None, **kwargs): if request.user.is_superuser: self.exclude = None On Feb 3, 5:42 pm, "Rodrigo C." <rodrigo...@gmail.com> wrote: > After follow

Re: Bound Inline Formset doesn't render FileField's current value, needs to be reentered.

2009-01-28 Thread Rodrigo C.
t is showing a working example > of the kind of thing you want then, since the source is all available, the > answer is there somewhere. > > Karen Solid advice. Will look into it. Thanks, Rodrigo --~--~-~--~~~---~--~~ You received this message be

Re: Bound Inline Formset doesn't render FileField's current value, needs to be reentered.

2009-01-28 Thread Rodrigo C.
Hi Malcolm, thanks for your reply. > So, perhaps you could give a small, reduced to the minimum, example of > how you're setting all this up. Maybe it's a problem in inline formsets, > or maybe it's an oversight in your code. At the moment, hard to tell. > I included the View and Model in my

Re: Bound Inline Formset doesn't render FileField's current value, needs to be reentered.

2009-01-27 Thread Rodrigo C.
> This isn't a Django issue. It's a standard property of browsers: you > can't set an initial value for file input fields. This is a security > measure, to stop malicious pages uploading files from your hard drive > without your explicit instruction. I see. If there's no way to set the initial

Bound Inline Formset doesn't render FileField's current value, needs to be reentered.

2009-01-27 Thread Rodrigo C.
I have model that represents a file, and has a FileField, that I am rendering via an Inline Formset. When a user fills in the form it gets saved with no problems. However, I want the users to be able to continue editing the file, but when I re-display the newly created object, the data for the

Facebook-like functionality for an Intranet

2009-01-22 Thread Rodrigo C.
I need to create an Intranet for a client. I would like to include some facebook-like functionality, such as being able to create and join networks, setting permissions based on membership in said networks, being notified when a friend or someone in your network updates his status, writes

  1   2   >