Re: Can I use Components and Classes in Django for views/controllers?

2009-04-01 Thread Ariel Mauricio Nunez Gomez
Yes, Class Based Views are nice, here is a fresh blog post about it: http://www.screeley.com/entries/2009/apr/01/class-based-views-and-reusable-apps/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: mp3 converstion

2009-03-31 Thread Ariel Mauricio Nunez Gomez
On Tue, Mar 31, 2009 at 7:44 PM, oregon10 wrote: > > DISCLAMER: I'm not a program - only an end user and part-time admin > > I'm trying to upload a mp3 file to our my list of documents - so our > views can assess it online. It goes through the motions of uploading >

Re: Django critter helps us code at the speed of light.

2009-03-17 Thread Ariel Mauricio Nunez Gomez
I already have my critter magic wallpaper on 3 out of my 4 desktops. He is truly a helpful little fellow. Ariel. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Creating KML files for use in Google Maps

2009-03-15 Thread Ariel Mauricio Nunez Gomez
> > > view > > > > def generateKml(request): > > > > locations = Location.objects.all().values('name','lat','longt') > > > > result= render_to_response('locations.kml',{ > > 'locations': locations > > }) > > > > return

Re: Upload ZIP-File into Database

2009-02-09 Thread Ariel Mauricio Nunez Gomez
I did that once and had no problem customizing GalleryUpload for my needs. Try start writing some code and get back to us if it fails. http://code.google.com/p/django-photologue/source/browse/trunk/photologue/models.py#194 Ariel. --~--~-~--~~~---~--~~ You

Re: Geodjango polygon object

2009-01-26 Thread Ariel Mauricio Nunez Gomez
> > This is because that is the string representation of the geometry field. {{ gemetry}} > > > The truth is that i would rather have a numeric format...How could i > parse my polygon objects and extract the coordinates? > > for example i have: > > fromDB = polygons.objects.all() > coordArray =

Re: Favorite Front-End Dev Environment?

2009-01-26 Thread Ariel Mauricio Nunez Gomez
Joshua, take a look at pinaxproject.com it may suit your needs. Ariel. --~--~-~--~~~---~--~~ 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: Geodjango POST and WKT

2009-01-23 Thread Ariel Mauricio Nunez Gomez
Adonis: >geometria = GEOSGeometry('POLYGON(('%s))' % coords) Have you tried this? Ariel. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Deployment of apps with 3rd party code

2009-01-19 Thread Ariel Mauricio Nunez Gomez
> > What approaches have been popular for deploying projects and applications > with 3rd party python modules (code usually found in site-packages). Should > the packages always be installed when possible or is it acceptable within > the community to have a "lib" directory within a application or

Re: how/where to constrain the relationships in a model?

2009-01-14 Thread Ariel Mauricio Nunez Gomez
Margie, My best bet would be to override the model's save method and do your validation there. http://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#overriding-default-model-methods Ariel On Wed, Jan 14, 2009 at 3:37 PM, Margie wrote: > > Supose I

Re: GeoDjango: Extract Latitude and Longitude from PointField

2009-01-14 Thread Ariel Mauricio Nunez Gomez
... point = models.PointField()... Longitude: {{point.x}} Latitude: {{point.y}} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: ForeignKey

2009-01-12 Thread Ariel Mauricio Nunez Gomez
Miguel, Puedes tratar de reescribir tu pregunta, preferiblemente en ingles ya que esta es una lista angloparlante. Creo que quieres decir: Como hago para actualizar automaticamente la lista de opciones en en campo 'grupo_pregunta' de la clase Pregunta basado en el valor del campo 'script' en la

Re: Related articles based on keywords.

2009-01-09 Thread Ariel Mauricio Nunez Gomez
> > In the view for a single article, I would like to be able to pull up >> related articles based on shared keywords. Just pulling up all the >> articles that share at least one keyword would be to imprecise. What >> I'd like to do is use some sort of weighting algorithm, so that if >> there are

Re: Related articles based on keywords.

2009-01-09 Thread Ariel Mauricio Nunez Gomez
If I were you I would start by writing down the description, pros and cons of the approaches you've thought about. Then you'll be closer to solving your problem and it'll be more likely that someone steps up and helps you. Ariel. On Fri, Jan 9, 2009 at 3:09 PM, Rodrigo Culagovski

Re: best way to do tabs?

2009-01-08 Thread Ariel Mauricio Nunez Gomez
ls so I at least > understand what they provide. > > And secondly, what about creating dynamic tabs? Ie, if the usr is > going to click on something that ends up creating a new tab, how can > css address this at all? I mean, in the css one needs to up front > have knowledge of th

Re: best way to do tabs?

2009-01-08 Thread Ariel Mauricio Nunez Gomez
Margie, I agree the current metod for adding new tabs in Pinax is kind of cumbersome. I also think ther is no need for javascript for that kind of simle stuff (i.e. This would be an overkill http://blog.evaria.com/wp-content/themes/blogvaria/jquery/index-multi.php) Perhaps you may want to search

FormWizard: Setting up a ChoiceField.choices based on previous forms,

2008-12-30 Thread Ariel Mauricio Nunez Gomez
Hello list, Today I started using FormWizard and could not find a clean way to populate a choices field based on previously submitted forms, I ended up overriding the render method like this(The only changed line is the one highlited): {{{ class CountryForm(forms.Form): country =

Re: Django newbie observation

2008-12-17 Thread Ariel Mauricio Nunez Gomez
> Hello Ariel, > > I will check this out. However the point of the starter site that I > was thinking of is something ships with Django releases that uses up > to date best practices(performance, security, etc...), syntax, etc... > Is pinax project always in sync with the latest Django release? >

Re: Django newbie observation

2008-12-15 Thread Ariel Mauricio Nunez Gomez
I think pinax basic_site is pretty much what you want/need for a sample_website. I would be +1 for a link to Pinax project at the end of the tutorials. Ayayalar: pinax-0.5.0.tar.gz Once the download is complete, uncompress it and you should

Re: Django revision for ORM aggregation patch

2008-11-30 Thread Ariel Mauricio Nunez Gomez
> I should be in a position to publish a git repository with my work in > progress in the next day or so, which will remove the need for anyone > to apply the patch manually. When I push the repository, I'll announce > on the ticket and on django-developers. Watch this space. That'd be great,

Django revision for ORM aggregation patch

2008-11-30 Thread Ariel Mauricio Nunez Gomez
Does anybody know which revision of django works with the latest patch in the ticket #3566 http://code.djangoproject.com/ticket/3566 I tried unsuccesfully with django 1.0rc, 1.0 and 1.0.2, everytime different rejections, and when I try to fix them by hand I always get a 'SELECT FROM ...' invalid

Re: Help with GeoDjango and Google Maps, please...

2008-11-21 Thread Ariel Mauricio Nunez Gomez
ChrisK, I use: * from django.contrib.gis.geos import fromstr gpoly=GPolygon(fromstr(poly.wkt, srid=4326))* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: geodjango importing existing data - pointfields

2008-11-17 Thread Ariel Mauricio Nunez Gomez
> > 1,1,'Edinburgh Castle','Edinburgh','Lothian','EH1 2NG','POINT > (-3.20277400 55.95415500)' > > I've tried multiple variations on the POINT syntax (GeomFromText > etc...) but no joy. > > What am I doing wrong!!? > > Thanks in advance Have you tried the following EWKT?

Re: GeoDjango - Difficulty placing vector marker from DB

2008-10-21 Thread Ariel Mauricio Nunez Gomez
There are many ways to fix the projection issue, this is one (probably not the best) On your view code: sites_list=sites_list.transform(900913) Best, Ariel. On Tue, Oct 21, 2008 at 1:57 PM, Alfonso <[EMAIL PROTECTED]> wrote: > > Hey, > > Having great trouble getting geodjango/openlayers to

Re: Multiple ManyToMany relations with the same class

2008-10-07 Thread Ariel Mauricio Nunez Gomez
Por cierto, cuando ya este la base de datos llena de actuaciones nos invitas a escuchar a los samberos. Ariel. On Tue, Oct 7, 2008 at 12:05 PM, Pablo Catalina <[EMAIL PROTECTED]>wrote: > # python manage.py validate > Error: One or more models did not validate: > concerts.concert: Accessor for

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Ariel Mauricio Nunez Gomez
Thanks a lot!! BTW: Bryan, you've gotta redo the commits visualization[1] for another big explosion!! [1] http://oebfare.com/blog/2008/jun/24/django-code_swarm/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Django as front-end for php- and zope2-based apps?

2008-06-29 Thread Ariel Mauricio Nunez Gomez
I have 'integrated' django and moodle in the past. For authentication I would suggest using a single source (In my case is imap auth using google apps for your domain) and both moodle and django validate credentials against it. It is very easy to write django models to get access to moodle

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-21 Thread Ariel Mauricio Nunez Gomez
+1 --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: click download, click install, go! no....

2008-06-01 Thread Ariel Mauricio Nunez Gomez
http://s3.amazonaws.com/instant.django/django.exe (No I am not a spambot and no, it is not a fake ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Installing GeoDjango help

2008-05-22 Thread Ariel Mauricio Nunez Gomez
BTW, you still have to follow the postgis database and user creation parts. --~--~-~--~~~---~--~~ 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: Installing GeoDjango help

2008-05-22 Thread Ariel Mauricio Nunez Gomez
If you have ubuntu you can: sudo apt-get install mercurial hg clone http://geodjango.org/hg/where2.0/ cd where2.0/ubuntu more ubuntu_install.txt (Follow the instructions from step 5) Regards, Ariel. --~--~-~--~~~---~--~~ You received this message because you are

Re: Django learning management application

2008-05-14 Thread Ariel Mauricio Nunez Gomez
Moodle and Django can coexist happily (Using same database and writing django models for some of the tables), That way you can take advantage of all the moodle functionality (Quizzes, lessons, forums) and have some business related code on django (Class scheduling, CRM, Billing). If you like the

[nf-admin] Accessing field initial values on change_form.html

2008-04-27 Thread Ariel Mauricio Nunez Gomez
Hi everyone, I am trying to access the fields values on then admin/includes/fieldset.htmltemplate. I know I can access the verbose label name with {{ field.label_tag

Re: Multi DB question

2008-04-17 Thread Ariel Mauricio Nunez Gomez
On Thu, Apr 17, 2008 at 6:00 AM, shabda <[EMAIL PROTECTED]> wrote: > > I have a forum(non-Django) and a Django app both are in different > databases. Can you install django on the forum database? It would probably make your life a lot easier as you could write custom django models to use the

Re: Django en Dreahost

2008-04-16 Thread Ariel Mauricio Nunez Gomez
> :( Is the one I have hired a time ago and I can't move easily. Is there > a free hosting where I can try my django applications (not for > production sites). > Go with alwaysdata http://djangofriendly.com/hosts/alwaysdata/ Since you understand spanish and english, I'd think you won't have much

Re: django.newforms and AJAX

2008-03-28 Thread Ariel Mauricio Nunez Gomez
David, Good luck on what you are trying to achieve. Jump in, I think your list is just enough for a proof of concept. We are waiting eagerly to try what you come up with. Dive in. Regards, Ariel --~--~-~--~~~---~--~~ You received this message because you are

Re: "Presales" questions

2008-02-17 Thread Ariel Mauricio Nunez Gomez
Phoenix, I suggest you take a look at Jeff Croft's post [1], it is supposed to be for non-programmers, but I guess it also applies to "I don't want to learn another language"-progammer. That said, I am pretty sure you'll start loving python once you go start walking the django path. [1]

Re: transaction.commit_manually

2008-02-13 Thread Ariel Mauricio Nunez Gomez
I hit the same wall when writing a loaddata variant to load json on geodjango. I couldn't find a solution either. :( I hope someone can give us light in this regard. Ariel. On Feb 12, 2008 5:34 PM, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > Are people using the transaction.commit_manually

Re: Loading fixtures from views

2008-01-22 Thread Ariel Mauricio Nunez Gomez
Russ, Thanks for the solution you suggested, I am about to implement it, but something came to my mind: how would I know if the fixture loading was successful or failed? I know it writes to the standard error output the result if I set verbosity higher, but it would be nicer if an exception was

Re: setting up a new django site (mod_python)

2008-01-14 Thread Ariel Mauricio Nunez Gomez
> > the path to the actual project itself is located at /home/www/ > django..com/htdocs/mysite/ There it is. It is generally not a good idea to put your project's files on a public folder (htdocs , www) for security reasons. The short advice, without knowing all the other details on your

Re: setting up a new django site (mod_python)

2008-01-14 Thread Ariel Mauricio Nunez Gomez
comike01, 1. Please post the whole django-related config you have on apache. 2. Tell us what's the name of your project and where it is located on your filesystem. I really don't think the problem is related to the settings value, instead it must be a path configuration problem as Karen

Re: loaddata without pk

2007-10-22 Thread Ariel Mauricio Nunez Gomez
>I think you're misunderstanding. There's no bug or issue here, at least >as far as you've explained it. Django's loaddata simply isn't designed >for data that isn't fully specified, which includes the pk value. >Instead, it's designed to handle the stuff written out by dumpdata. The issue I was

Re: RESTful Geodjango

2007-10-20 Thread Ariel Mauricio Nunez Gomez
team for your excelent work. On 10/20/07, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > > Thanks Justin, > > I'll try later and let you know. > > Ariel. > > On 10/20/07, Justin Bronn <[EMAIL PROTECTED] > wrote: > > > > > > I quickly gla

Re: RESTful Geodjango

2007-10-20 Thread Ariel Mauricio Nunez Gomez
nice to have GeoJSON serializers for the GEOS/OGR > geometry objects. The best way to confirm compatibility is experiment > yourself! > > -Justin > > On Oct 20, 8:57 am, "Ariel Mauricio Nunez Gomez" > <[EMAIL PROTECTED]> wrote: > > Is it possible/planne

Re: loaddata without pk

2007-10-20 Thread Ariel Mauricio Nunez Gomez
. On 10/20/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Sat, 2007-10-20 at 10:15 -0500, Ariel Mauricio Nunez Gomez wrote: > > Is it possible to use loaddata without a pk field and let database set > > the proper value? > > No. The difficulty here is that

loaddata without pk

2007-10-20 Thread Ariel Mauricio Nunez Gomez
Is it possible to use loaddata without a pk field and let database set the proper value? Ariel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

[gis] RESTful Geodjango

2007-10-20 Thread Ariel Mauricio Nunez Gomez
Is it possible/planned to use django-rest-api [1]in geodjango [2] ? Ariel [1] http://code.google.com/p/django-rest-interface/ [2] http://code.djangoproject.com/wiki/GeoDjango

Re: can't install...

2007-10-15 Thread Ariel Mauricio Nunez Gomez
Phwaxmon, the painless way to get django working is to follow cjl advice: 1. Uninstall python 2. http://www.instantdjango.com/ Note: After you have played a little, you are going to have to go again and try to install django with postgres, apache and all the crew, but hopefully you'll have more

Re: disguising a django app as php?

2007-09-28 Thread Ariel Mauricio Nunez Gomez
Web 2.8: About what would omat have decided? --~--~-~--~~~---~--~~ 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 unsubscribe from this group,

Re: GeoDjango : Error in admin site with geom fields

2007-09-16 Thread Ariel Mauricio Nunez Gomez
Did you have a previous geos installation?? Maybe you have some old .so's that are being linked instead of the new ones. Ariel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Django deployment à lá Capistrano

2007-09-11 Thread Ariel Mauricio Nunez Gomez
Just some names: There is a genre called Jazz Fusion ( http://en.wikipedia.org/wiki/Jazz_fusion) Here's a very long list of names that belong to that category: http://en.wikipedia.org/wiki/List_of_jazz_fusion_artists --~--~-~--~~~---~--~~ You received this

Debugging ?e=1 on admin search

2007-09-09 Thread Ariel Mauricio Nunez Gomez
Hi, recently i have been having problems with django-admin search on some models. (Searching in a django.contrib model like auth.User works flawlessly. But when I try other models (Integer and Charfields with some foreign keys) nothing happes after i click the search button, and the error "?e=1"

Re: admin site and parent/child relationship

2007-08-31 Thread Ariel Mauricio Nunez Gomez
Have you looked at the admin filter option, it's not exactly waht you're asking for, but could do the job? In the admin view (change_list for call ) if you append: ?client=MyClient to the url, the data get's filtered. --~--~-~--~~~---~--~~ You received this

Admin search does not work in my models

2007-08-29 Thread Ariel Mauricio Nunez Gomez
Hello people, Summary: Django admin search returns all results in my models. (in auth.user, search works ok) Context: I'm using revision 6023 from trunk, using Postgresql 8.2 with psycopg2 on an Ubuntu Feisty 7.04 Box. Model: Using a simple model: from django.db import models # Create your

Re: Newbie: How to create different person models that share a profile model?

2007-08-27 Thread Ariel Mauricio Nunez Gomez
Thanks a lot for pointing that out. My apologies. So, for other readers of the thread: class UserProfile(models.Model): user = models.ForeignKey(User, unique=True, edit_inline=models.TABULAR, num_in_admin=1,min_num_in_admin=1, max_num_in_admin=1,num_extra_on_change=0) : Makes the profile

Re: Newbie: How to create different person models that share a profile model?

2007-08-26 Thread Ariel Mauricio Nunez Gomez
I can't think of any "clean solutions" right now. Dirty one's include adding a Role class, or applying the constraints on the database. If you come up with something, please let me know. Ariel. On 8/25/07, Ed Hagen <[EMAIL PROTECTED]> wrote: > > > > That will work -- assigning roles to Users

Re: Newbie: How to create different person models that share a profile model?

2007-08-24 Thread Ariel Mauricio Nunez Gomez
Hi Ed. I recommend you link all your people roles to a User (It already has Full name and e-mail fields) -- from django.contrib.auth.models import User class Student(models.Model): user = models.ForeignKey(User, unique=True) class Teacher(models.Model): user = models.ForeignKey(User,