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

Related articles based on keywords.

2009-01-09 Thread Rodrigo Culagovski
I am developing a site for an academic publication that contains a few thousand articles. Each Article has a ManyToMany relationship with one or more Keywords from a controlled vocabulary. In the view for a single article, I would like to be able to pull up related articles based on shared

Re: Whither Validators?

2008-09-25 Thread Rodrigo Culagovski
ECTED]> wrote: > On Thu, Sep 25, 2008 at 12:30 AM, Rodrigo Culagovski > > <[EMAIL PROTECTED]> wrote: > > > Validators (django.core.validators) seem to have been removed from > > 1.0. What replaces them? > > Well... validators weren't ever really there to begin

Re: Whither Validators?

2008-09-24 Thread Rodrigo Culagovski
So, do you have to override the model's save method and do your validation there? On Sep 24, 3:20 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 24 sep, 18:30, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > Validators (django.core.validators) seem to have b

Whither Validators?

2008-09-24 Thread Rodrigo Culagovski
Validators (django.core.validators) seem to have been removed from 1.0. What replaces them? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: django-recommender 0.2, with content based recs

2008-09-24 Thread Rodrigo Culagovski
Looks nice. Which of the algorithms in Programming Collective Intelligence are you using, specifically? Thanks, Rodrigo On Sep 24, 11:36 am, bcurtu <[EMAIL PROTECTED]> wrote: > Hi, > > I have just updated my django-recommender to 0.2, including Content > Based Recommendations using django

Re: Unsaved object when passing a callable to "upload_path"

2008-09-24 Thread Rodrigo Culagovski
oices=choices((0,"Text"),(1,"Figure"), (2,"Table"))) number= models.IntegerField() file= models.FileField(upload_to=file_path) On Sep 24, 11:51 am, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > I'm trying to use the new ability to pass a callab

Re: An academic journal's site

2008-09-24 Thread Rodrigo Culagovski
> However, you might also wish to consider whether storing the text in the > database is really necessary or useful. Maybe just storing the files on > disk and storing the filenames in the database is a simpler approach. > That way people can download/upload as they have always done and you >

Unsaved object when passing a callable to "upload_path"

2008-09-24 Thread Rodrigo Culagovski
I'm trying to use the new ability to pass a callable to "upload_to" in fieldfields. I'm having problems with the object not being saved before the callable is called. Model: def file_path(instance, filename): return "uploads/files/%s/%s/%s_%s%s" % (

An academic journal's site

2008-09-23 Thread Rodrigo Culagovski
I'm starting work on a site for an academic journal that will both publish the articles from the paper version and also allow authors to submit new articles for review and publication. Looking for specific advice as well as general experience with this kind of site. Question 1 The articles' text

Using model instances as dictionary keys

2008-09-01 Thread Rodrigo Culagovski
I have a weird dictionary key issue: I have an 'Article' model, with textfields for Year and Country and foreignkeys for Magazine and Author. I generate a frequency list for each criteria (e.g.: Year=2005) which I use to keep the count. To do this, I subclassed dictionary like so: class

Django 1.0 and Textmate

2008-08-30 Thread Rodrigo Culagovski
Has anybody taken a crack at updating the Textmate Django bundles (python and template) for version 1.0? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread Rodrigo Culagovski
tings. > custom env scripts work well (and I recommend virtualenv) > > hope this helps. > >     -Doug > > On Jul 19, 9:26 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > I'm looking foward to trying out the merged newforms-admin on my > > upcoming pr

How to have both newforms-admin and previous version on the same machine?

2008-07-19 Thread Rodrigo Culagovski
I'm looking foward to trying out the merged newforms-admin on my upcoming projects. However, I have a few ongoing projects already developed using pre-newforms-admin django. I make changes to the projects on my local machine and test them before comitting them to the remote production sites, so,

Re: Great work with newforms-admin

2008-07-19 Thread Rodrigo Culagovski
Thanks! Super fast, too. On Jul 19, 8:54 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> > wrote: > > > > > Is there a complete reference for newforms-admin (not a FAQ, tutorial &g

Re: Great work with newforms-admin

2008-07-19 Thread Rodrigo Culagovski
Is there a complete reference for newforms-admin (not a FAQ, tutorial or changelist) other than the code itself? On Jul 19, 4:46 pm, "Tom Badran" <[EMAIL PROTECTED]> wrote: > Yes the first link is the one i used. > > Tom > > On Sat, Jul 19, 2008 at 6:21 PM, James Punteney <[EMAIL PROTECTED]>

ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

2008-07-08 Thread Rodrigo Culagovski
In a production site, all of a sudden while trying to edit the site via the admin interface I get: ProgrammingError: (2014, "Commands out of sync; you can't run this command now") This is when trying to access the record list: "/admin/core/pagina/" This is only while trying to edit this one

Re: FileField not working, however ImageField is.

2008-06-11 Thread Rodrigo Culagovski
; same issue. Using the RequiredIfOtherFieldEquals validator with an > ImageField. > > On May 19, 10:16 am, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > I commented out the  validator_list = [is_archivo] , and it'sworking > > now, albeit sans validation, of course. Th

Re: Different time zone for server and editors screwing up show_from__lte = datetime.now()

2008-06-03 Thread Rodrigo Culagovski
Forgot: timezone is set correctly: TIME_ZONE = 'America/Santiago' The server is in Houston, USA: On Jun 3, 9:16 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > I have a Banner model with a show_from DateTimeField, which I filter > to make sure I'm only showing them after they'

Different time zone for server and editors screwing up show_from__lte = datetime.now()

2008-06-03 Thread Rodrigo Culagovski
I have a Banner model with a show_from DateTimeField, which I filter to make sure I'm only showing them after they're due, like so: from datetime import datetime current_banners = Banner.objects.filter(show_from__lte = datetime.now()) However, the server is not in the same time zone as the

Re: A for B C as D in templates

2008-06-01 Thread Rodrigo Culagovski
etrieves the comments and stores the number of > comments in the variable 'comment_count', which you can then use as > follows: > > There are {{ comment_count }} comment{{ comment_count|pluralize }} for > this entry. > > On Jun 1, 12:02 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrot

A for B C as D in templates

2008-05-31 Thread Rodrigo Culagovski
Looking through documentation for the FreeComment app, I came across this template syntax: {% get_free_comment_count for blog.entry object.id as comment_count %} Where can I find documentation for use of the "A for B C as D" syntax in Django templates?

Re: Really, realy strange MySQLdb problem, cycling through error messages.

2008-05-20 Thread Rodrigo Culagovski
For future reference: fixed, it stabilized to the 3rd error message. I added this to __init.py__ in the application's directory: import os os.environ['PYTHON_EGG_CACHE'] = '/tmp' Apparently there was some permission error on '/root/.python-eggs'

Really, realy strange MySQLdb problem, cycling through error messages.

2008-05-20 Thread Rodrigo Culagovski
I'm setting up a django site on the production server and ran into a MySQLdb problem. The server is cycling through a series of error messages: 1) ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb 2) ImproperlyConfigured: Error loading MySQLdb module: bad local file

Re: FileField not working, however ImageField is.

2008-05-19 Thread Rodrigo Culagovski
I commented out the validator_list = [is_archivo] , and it's working now, albeit sans validation, of course. This seems odd, as the other 2 validator lists (is_texto & is_link) work fine. > Have you tried uploading files with more than one browser? Is the html > code in the forms set up

FileField not working, however ImageField is.

2008-05-17 Thread Rodrigo Culagovski
I have a FileField in a model that's not working. When I try to upload a file via the admin site, nothing is uploaded and I get a validation error (as if I hadn't filled in the field). In the same application but different model, I have ImageFields that work fine. I changed the 'upload_to'

Re: New to django and python. error following tutorial w/ the shell

2008-05-06 Thread Rodrigo Culagovski
Can you post the code 5 lines before and after the one that's giving you the error? Many times python will report a syntax error in one line that's actually caused by a missing parenthesis, semicolon, etc., in a line before. On May 6, 9:58 am, Jason Ourscene <[EMAIL PROTECTED]> wrote: > I tried

Row-level permissions, recommendations?

2008-05-06 Thread Rodrigo Culagovski
What's the state of the art for row-level permissions in Django? I'm working on an application where I need to allow users to edit their own personal info but nobody else's. What app, hack, patch or branch should I use in order to be able to do this via the admin site? Thanks, Rodrigo

Re: Page-trees in admin system

2008-04-28 Thread Rodrigo Culagovski
Matthias, that looks like what I'm looking for. Does it work in trunk? thanks! Rodrigo On Apr 28, 3:13 pm, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > Hi, > > > > On Mon, 2008-04-28 at 12:03 -0700, Rodrigo Culagovski wrote: > > I am starting to develop a si

Page-trees in admin system

2008-04-28 Thread Rodrigo Culagovski
I am starting to develop a site with Django. I will need to implement a 'pagetree' that serves static pages, (similar to the contrib.flatpages), with 3 or 4 levels of depth. I have already done this for previous Django driven sites, but wonder if there is a better way. My model looks like:

Re: Search with Stemming, Accents and Entities

2008-04-24 Thread Rodrigo Culagovski
Jarek, it looks like Solr has its own database. The application is in Django, so it wouldn't make any sense to replicate the database in the search engine. Thanks, Rodrigo On Apr 24, 5:37 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Rodrigo Culagovski napisał(a): > > >

Search with Stemming, Accents and Entities

2008-04-23 Thread Rodrigo Culagovski
I am implementing an academic publications database, and am looking for a search solution. I need at the very least Stemming and Accented Characters support (i.e.: searching for "alvarez" returns "álvarez" and v.v.). Some of the fields have a tinymce editor, so the data is stored with html

Re: Missing help_text for ManyToManyFields with filter_interface

2008-04-15 Thread Rodrigo Culagovski
n Mon, Apr 14, 2008 at 4:07 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> > wrote: > > > The help_text for my ManyToManyFields dissapears when I use > > "filter_interface=models.HORIZONTAL" (or "=models.VERTICAL"). > > I figure that it's the Jav

Re: Dynamically limiting choices in admin.

2008-04-14 Thread Rodrigo Culagovski
nd > self.issue_number (or whatever) in its __unicode__() function so when you > created an article, you would make one selection: the issue the article was > in. If the articles could be in multiple issues, make the Article.issues a > [EMAIL PROTECTED] > hth, > -richard

Missing help_text for ManyToManyFields with filter_interface

2008-04-14 Thread Rodrigo Culagovski
The help_text for my ManyToManyFields dissapears when I use "filter_interface=models.HORIZONTAL" (or "=models.VERTICAL"). I figure that it's the JavaScript in the filter_interface, as the help_text is there before the JavaScript modifies the field. Using trunk.

Dynamically limiting choices in admin.

2008-04-14 Thread Rodrigo Culagovski
I have 3 models: Magazine, Issue and Article. Each Magazine has 1 or more Issues and each Issue has 1 or more Articles. Article has models.ForeignKey(Issue) and models.ForeignKey(Magazine). Issue has models.ForeignKey(Magazine)). In the admin, when creating a new article, I choose which Magazine

Re: Cleaning up Word's mess in text areas using tiny_mce

2008-04-09 Thread Rodrigo Culagovski
Thanks for the answers. I ended up using Pilgrim & Swartz's 'sanitize.py' [1], and adding a custom 'save' function to the classes where I need it, like so: def save(self): self.summary=util.SomeTags(self.summary,'utf8') self.body=util.SomeTags(self.body,'utf8')

Cleaning up Word's mess in text areas using tiny_mce

2008-04-07 Thread Rodrigo Culagovski
I am using tiny_mce to help the editors on a site edit text areas[1]. However, I worry that they will paste in text from Word and make a mess. Is there a way to strip out all the Word-generated crap (font tags, colors, etc.) while maintaining basic html tags like p, br, ul, etc? 1:

Re: Counting over a ManyToManyField of a ManyToManyField, a question of style.

2008-03-27 Thread Rodrigo Culagovski
On Mar 27, 3:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Well, books can be redefined as: > > def books(self): > progs = self.programs.all() > return sum([prog.publications.all().filter(type=u'Book').count() > for prog in progs]) > > and likewise for the other methods.

Counting over a ManyToManyField of a ManyToManyField, a question of style.

2008-03-27 Thread Rodrigo Culagovski
My application has the following models: Researcher, Program and Publication. Each Researcher has 0 or more Programs as a ManyToManyField, and each Program has 0 or more Publications also as a ManyToManyField. Publication has a 'type' attribute which is a CharField, and has choices: Book, Article

Re: Error accessing "'/media" directory

2008-01-17 Thread Rodrigo Culagovski
Thanks, that did the trick! Cheers, Rodrigo On Jan 17, 8:35 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 17, 2008 6:24 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > > > > > I am using the following in my urls.py: > &g

Error accessing "'/media" directory

2008-01-17 Thread Rodrigo Culagovski
I am using the following in my urls.py: (r'^media_/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media').replace('\\','/')}), Notice the '_' after 'media. This allows me to access my media folder using for example:

Django shared hosting

2008-01-17 Thread Rodrigo Culagovski
Can anybody recomend a shared-hosting that: a) is Django ready, with the svn-version installed or installable b) is as good or better and as cheap or cheaper then Webfaction c) gives you an insane amount of space (like Dreamhost) Basically, I need a host for a new project, and am thinking of

Maximum ImageFIeld width

2008-01-08 Thread Rodrigo Culagovski
How can you validate that an ImageField's width is <= a maximum 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 django-users@googlegroups.com To

Re: Error: (1241, 'Operand should contain 1 column(s)')

2008-01-07 Thread Rodrigo Culagovski
Malcolm, you're right, of course. That did the trick! Thanks, Rodrigo On Jan 7, 9:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-01-06 at 17:24 -0800, Rodrigo Culagovski wrote: > > I am getting the following error: > > > OperationalError at /li

Re: Passing a form via a generic view

2008-01-07 Thread Rodrigo Culagovski
Ramiro, got it, thanks! Rodrigo On Jan 7, 3:20 pm, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > Rodrigo, > > On Jan 7, 2008 4:05 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > [...] > > > Since this parameter is not passed from the

Passing a form via a generic view

2008-01-07 Thread Rodrigo Culagovski
I am using a generic view to view an individual item ('articulo') like so: urlpatterns = patterns('', (r'^articulos/(?P\d+)/$', list_detail.object_detail, articulo_detail_info) The 'articulo_detail.html' template imports a "base.html" template, which expects a 'form' parameter, like so:

Error: (1241, 'Operand should contain 1 column(s)')

2008-01-06 Thread Rodrigo Culagovski
I am getting the following error: OperationalError at /lista/ (1241, 'Operand should contain 1 column(s)') Request Method: POST Request URL:http://127.0.0.1:8000/lista/ Exception Type: OperationalError Exception Value:(1241, 'Operand should contain 1 column(s)')

Re: Replicating admin behavior in front end

2008-01-04 Thread Rodrigo Culagovski
> If I am understanding your requirement correctly you are looking for > databrowse. I actually tried that, but it doesn't really have the structure I need, and too many options. Basically, I want what the admin interface has: a paginated grid with various fields across the top allowing you to

Replicating admin behavior in front end

2008-01-03 Thread Rodrigo Culagovski
I am making a site that will handle and display a magazine article database. I would like for front end (anonymous, not logged in) users to be able to use some of the same functionality the admin interface offers, namely the ability to sort by column (and reverse the order), and filter by year,

Re: Rendering ManyToManyField in template

2008-01-03 Thread Rodrigo Culagovski
Fixed it, in the class definition: @property def ids(self): return ' - '.join([a['identificador'] for a in self.identificadores.values()]) On Jan 3, 6:36 pm, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > I forgot to show the identificadores class: > > --- > c

Re: Rendering ManyToManyField in template

2008-01-03 Thread Rodrigo Culagovski
I forgot to show the identificadores class: --- class Identificador(models.Model): identificador = models.CharField(max_length=200,unique=True) def __unicode__ (self): return self.identificador class Admin: pass class Meta: verbose_name_plural =

Re: UnicodeEncodeError

2007-12-26 Thread Rodrigo Culagovski
Thanks so much, that did the trick. Rodrigo On Dec 26, 3:05 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Dec 26, 2007 12:47 PM, rodrigo <[EMAIL PROTECTED]> wrote: > > > > > > > I am getting a "UnicodeEncodeError" when trying to add data containing > > accented characters (or 'ñ') via the