Re: edit model properties in the admin

2018-02-14 Thread Gonzalo Delgado
ttps://docs.djangoproject.com/en/2.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form -- Gonzalo Delgado -- 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

Re: Basic note/trello app - how to link model object IDs

2018-02-13 Thread Gonzalo Delgado
rward. When in doubt, revisit the Django tutorial. This part is a good one for where you're at: https://docs.djangoproject.com/en/2.0/intro/tutorial03/ -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Hiding models from certain UserAdmin

2014-07-24 Thread Gonzalo Delgado
that. [0] https://docs.djangoproject.com/en/1.6/topics/auth/default/#topic-authorization - -- Gonzalo Delgado -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlPRAK0ACgkQzbfdFL5JoUmA3AD/etZo/zjdFK+q0n+

Re: Question about including CSRF token.

2014-07-21 Thread Gonzalo Delgado
6/ref/contrib/csrf/#ajax It uses a custom "X-CSRFToken" header in the AJAX query from the client. You can probably implement something similar in your app (if it isn't implemented in javascript). - -- Gonzalo Delgado -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Us

Re: Using admin views "outside" of admin

2013-11-20 Thread Gonzalo Delgado
ns you want to it. I think you can even use autodiscover with a custom AdminSite instance too if you need to have all models from settings.INSTALLED_APPS attached to it. [0] https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#adminsite-objects - -- Gonzalo Delgado -BEGIN PGP SIGNATURE-

Re: How to add objects from one class to another

2013-11-05 Thread Gonzalo Delgado
ango-polymorphic can definitely do that. - -- Gonzalo Delgado -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.15 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlJ5JpgACgkQzbfdFL5JoUnlKAD+LljmaN7XpFTdQtcZx4i9e43c 7hAZ8Y2XOv0tH5TljKcA+wQdh5fNUmk71laONL1bWBWi

Re: How to add objects from one class to another

2013-11-04 Thread Gonzalo Delgado
e.now) image_type = models.CharField( max_length=20, choices=(('background', 'Background'), ('profile', 'Profile'))) and do: m.image_set.filter(image_type='background') or: m.image_

Re: django database cache for longtime?

2013-05-29 Thread Gonzalo Delgado
; expire? You want to use Redis[0]. There's also this django-redis[1] app that uses Redis as a cache backend. It allows you to set keys with infinite timeout :-) [0] http://redis.io/ [1] https://github.com/niwibe/django-redis -- Gonzalo Delgado -- You received this message because y

Re: NoReverseMatch at /app/

2013-05-09 Thread Gonzalo Delgado
Try this instead in your template: {% url 'detail' registo.id %} When referencing named urls, the name must be exactly as defined in the url pattern. 2013/5/9 Carlos Aboim > {% url 'registo.detail' registo.id %} > -- Gonzalo Delgado -- You received this message

Re: Caught NoReverseMatch while rendering:

2011-04-06 Thread Gonzalo Delgado
naming-url-patterns -- Gonzalo Delgado -- 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 django-users+unsubscr...@googlegroups.c

Re: All views require login?

2011-03-17 Thread Gonzalo Delgado
El 17/03/11 09:30, galgal escribió: I need to make an application in which all views require login. Is there any good way to do that and not to use @login_required() decorator with all methods? Yes there is: http://djangosnippets.org/snippets/1220/ -- Gonzalo Delgado -- You received this

Re: OS Error, Permission Denined

2010-10-07 Thread Gonzalo Delgado
tml -- Gonzalo Delgado -- 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-users+unsubscr...@googlegroups.com. For more o

Re: OS Error, Permission Denined

2010-10-07 Thread Gonzalo Delgado
add/ > > [Errno 13] Permission denied: '/myproject'. Myproject is root folder > of my django website. I have pasted traceback below. > You need to allow the http process user (most likely apache) to write in that folder. -- Gonzalo Delgado -- You received this message

Re: Can you make a subclass of a model just to alter behavior?

2010-09-30 Thread Gonzalo Delgado
ubclass that to create most of the models in my > application. Is this possible? > Hmm.. I can't think of any caveats off the top of my head. Did you try that? The only thing that smells a little like trouble to me is setting a default manager. -- Gonzalo Delgado -- You rece

Re: Flexigrid

2010-08-03 Thread Gonzalo Delgado
elp. > The first result I get searching with Google turns up a snippet for integrating Flexigrid into Django[0], did you try that? [0] http://snippets.dzone.com/posts/show/6917 -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django u

Re: Flexigrid

2010-07-30 Thread Gonzalo Delgado
http://is.gd/dTrPN -- Gonzalo Delgado -- 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-users+unsubscr...@googlegr

Re: Django IDE

2010-07-18 Thread Gonzalo Delgado
El 18/07/10 06:09, Antoni Aloy escribió: > Actually the best productive "IDE" for me, and I'd like to remark the > for me, is Vim/gVim with lots of plugins. For me too, this link is useful: http://code.djangoproject.com/wiki/UsingVimWithDjango -- Gonzalo Delgado -- You

Email login in admin site

2010-07-06 Thread Gonzalo Delgado
site for only getting that error message right, but I don't see any other way (don't want to hack Django's code either, unless this is considered to be a bug). Does anybody know of a better way to handle this? Thanks! -- Gonzalo Delgado -- You received this message because you ar

Re: determining changes in file

2010-06-16 Thread Gonzalo Delgado
t; If using Linux, Pyinotify may be what you're looking for: http://trac.dbzteam.org/pyinotify -- Gonzalo Delgado -- 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...@googleg

Re: Resize uploaded file file with PIL

2010-05-25 Thread Gonzalo Delgado
o it's hard to > figure out what's the right way to achieve this. > > Any ideas? > You want to take a look at easy-thumbnail: http://github.com/SmileyChris/easy-thumbnails -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Group

Re: object is not iterable.

2010-05-14 Thread Gonzalo Delgado
case). You may want to use ManyToMany instead of ForeignKey. -- Gonzalo Delgado -- 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

Re: object is not iterable.

2010-05-14 Thread Gonzalo Delgado
from photologue.models import Gallery,Photo > ... > class CarDetail(models.Model): > images = models.ForeignKey(Gallery, null=True, blank=True) > When car.images is null (which is allowed by your model definition) it is not iterable. Try something like: {% if car.images %} {% for

Re: open()

2010-03-03 Thread Gonzalo Delgado
ou can fetch its contents using Django's template module render_to_string function: from django.template.loader import render_to_string contents = render_to_string('test.html', {}) -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups

Re: Serving https with runserver

2010-03-01 Thread Gonzalo Delgado
erver in anything resembling a production environment. It's intended only for use while developing. (*We're in the business of making Web frameworks, not Web servers*.) """ ( http://docs.djangoproject.com/en/1.1/intro/tutorial01/#the-development-server ) -- Gonzalo Delgado --

Re: Serving https with runserver

2010-03-01 Thread Gonzalo Delgado
r but for testing how the site behaves under certain conditions or with new features, etc. [0] http://en.wikipedia.org/wiki/Staging_site -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: schema migration

2010-02-24 Thread Gonzalo Delgado
El 24/02/10 09:16, dj_vishal escribió: > plz suggest me which is the better one for the schema > migration for django apps > http://south.aeracode.org/ -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: mouse events and view.py

2010-02-20 Thread Gonzalo Delgado
El 20/02/10 19:11, gintare escribió: > Is it possible with python or i need java script? You need javascript. -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Any CRM based on django?

2010-02-19 Thread Gonzalo Delgado
El 19/02/10 06:58, Massimiliano della Rovere escribió: > Does anybody here know any CRM based on django? http://tinyurl.com/ygcl4fw -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Slugify() and Clean form data Questions

2010-02-18 Thread Gonzalo Delgado
lives in django.template.defaultfilters. -- Gonzalo Delgado -- 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-users+unsubscr.

Re: A model's property in a form?

2010-02-18 Thread Gonzalo Delgado
El 18/02/10 10:18, Boris Schaeling escribió: > > This replaces the setter but not the getter. To replace the getter, you'd have to override the modelform's __init__ method and set the corresponding field value from the instance getter. -- Gonzalo Delgado -- You received this

Re: Django Mailing List Manager

2010-02-08 Thread Gonzalo Delgado
ok at Lamson[0] for building something like that or Librelist[1] for something already built. They're not Django apps, but they sure are Django friendly ;) [0] http://lamsonproject.org/ [1] http://support.librelist.com/index -- Gonzalo Delgado -- You received this message because you are

Re: Site wide configuration in admin

2010-02-06 Thread Gonzalo Delgado
ed? > Try livesettings: http://bitbucket.org/bkroeze/django-livesettings/overview/ -- Gonzalo Delgado -- 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 unsubs

Re: Django or CMS.

2010-02-05 Thread Gonzalo Delgado
s you mention and we pretty much build what would be specialized CMSs using Django and opensource Django apps. I can suggest you take a look at these links: http://code.djangoproject.com/wiki/CMSAppsComparison http://pinaxproject.com/ Best! -- Gonzalo Delgado -- You received this message

Re: Ajax with Django

2010-02-04 Thread Gonzalo Delgado
El 04/02/10 18:19, Rohan Shah escribió: > Any good documentation available on how to implement AJAX with Django ? http://lmgtfy.com/?q=django+ajax&l=1 -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Any clues on error importing middleware?

2010-02-02 Thread Gonzalo Delgado
How about in the "changehat" module, is "fields" not mentioned there either (or in a module it imports, and so on)? -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Feed not available - Syndication - Django 1.1.1

2010-01-22 Thread Gonzalo Delgado
on URL you have to use. > --- > PROBLEM > --- > > Now as mention earlier, when browsing to http://localhost:8000/blog/ > there's no option for subscribing to the feed. > I've compared a lot of configurations and I cannot see the problem. > Well, isn&

Re: django-sproutcore

2010-01-19 Thread Gonzalo Delgado
ore itself), but googling a bit turns out this: http://code.google.com/p/django-sproutcore/wiki/BasicTutorial Possibly outdated, but it's better than nothing. -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Linked list of abstract objects

2010-01-18 Thread Gonzalo Delgado
http://docs.djangoproject.com/en/1.1/ref/models/fields/#recursive-relationships [1] http://docs.djangoproject.com/en/1.1/ref/models/fields/#django.db.models.ForeignKey.related_name -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: multiple database on django please helpme..

2010-01-12 Thread Gonzalo Delgado
El 12/01/10 11:02, Shawn Milochik escribió: > This will help you get help: > > http://catb.org/~esr/faqs/smart-questions.html > +1 -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Namespace Security

2010-01-12 Thread Gonzalo Delgado
I would ask first so I don't end up re-inventing the wheel if > something has already been started. > I'm facing similar requirements and came across this app: http://packages.python.org/django-authority/ but haven't tried it out yet. -- Gonzalo Delgado -- Yo

Re: Django with embedded python - module error

2010-01-11 Thread Gonzalo Delgado
> > /usr/share/pyshared/django/db/backends/mysql/introspection.py > -rw-r--r-- 1 root root 4699 2009-12-27 15:13 introspection.pyc > lrwxrwxrwx 1 root root58 2009-12-27 15:12 validation.py -> > /usr/share/pyshared/django/db/backends/mysql/validation.py > -rw-r--r-- 1 root r

Re: Jobs for DJango newbies?

2009-12-10 Thread Gonzalo Delgado
t=django- [4] http://github.com/search?type=Repositories&language=python&q=django -- Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpdQBeZVm1Er.pgp Description: PGP signature

Re: Django application source code

2009-11-15 Thread Gonzalo Delgado
have source code of account managing web application in > Django, please share with me for reference. http://lmgtfy.com/?q=django+account+app :) -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpuuJkdNcUSl.pgp Description: PGP signature

Re: computed values in templates...

2009-11-10 Thread Gonzalo Delgado
n the presentation layer. -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpVGngMDm9rd.pgp Description: PGP signature

Re: Class definition in the tutorial

2009-11-08 Thread Gonzalo Delgado
max_length=200) => [my guess: this defines the type of the > data in the column "question"] Yup, more on that here: http://docs.djangoproject.com/en/dev/ref/models/fields/#ref-models-fields Good luck! -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpddNIlYJXZt.pgp Description: PGP signature

Re: starting a new site with django

2009-09-25 Thread Gonzalo Delgado
entation[1] explains how to connect to a hosting server! Not only that, Django provides its own mail API[2]!!! Good luck with your site! [0] http://pinaxproject.com/ [1] http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index [2] http://docs.djangoproject.com

Re: Django templated: iterating through fields in a database record

2009-09-22 Thread Gonzalo Delgado
s are, they're different type of objects) > I can access the fields using the field names > > {% for projectItem in projList %} > {{ projList.projectName }} > : > {% endfor %} > > This produces an output but this gets away from the point of making a &

Re: Help customizing the admin functionality

2009-09-21 Thread Gonzalo Delgado
docs.djangoproject.com/ -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgp52dkxrGPQ5.pgp Description: PGP signature

Re: date inside url

2009-09-18 Thread Gonzalo Delgado
text values as parameters. So I'm guessing the obvious way to do it is handing what datetime.datetime.now() returns (you'll probably need to convert it to a string) to the template context from your view. You could also write a "datetime" context processor to hand current datetime data to all your templates. -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpeYovwlP0TK.pgp Description: PGP signature

Re: urls.py to directly call method on instance of FooModel

2009-09-17 Thread Gonzalo Delgado
ric-views/#topics-generic-views -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpTo39J1DiJg.pgp Description: PGP signature

Re: django taking data from zimbra

2009-09-17 Thread Gonzalo Delgado
se python-ldap: http://www.python-ldap.org/ Hope it helps. -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpQ7LdN9aq7V.pgp Description: PGP signature

Re: template modules like joomla

2009-09-15 Thread Gonzalo Delgado
don't need revision > control, then you can simplify this, but I think it's pretty simple as is! Or.. you could just use django-dbtemplates[0]. [0] http://bitbucket.org/jezdez/django-dbtemplates/wiki/Home -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgphfgCNdAEvJ.pgp Description: PGP signature

Re: Syntax error

2009-09-15 Thread Gonzalo Delgado
;<<<<<<<<<<<<<<<<<<<<< ? > > > >> {% else %} > > {% endif %} -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpybCgIPfG82.pgp Description: PGP signature

Re: get current URL

2009-09-13 Thread Gonzalo Delgado
El Sun, 13 Sep 2009 17:12:41 -0700 (PDT) Shuge Lee escribió: > How to get current URL ? http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.path -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/ pgpcJxfIZ1MCG.pgp Description: PGP signature

Re: Calculating on generic view

2008-07-08 Thread Gonzalo Delgado
jango-tips-get-most-out-generic-views/ especially the "Getting more out of a generic view" part. Hope it helps. Hope it helps. -- P.U. Gonzalo Delgado <[EMAIL PROTECTED]> http://djangopeople.net/gonzalo/ pgpot6SShJfO3.pgp Description: PGP signature

Re: Development environment

2008-06-25 Thread Gonzalo Delgado
anks in advance. > > I used Eclipse+PyDev for a while, but now I'm only using scribes[0], which is awesome! I love minimalistic software. Using the console for anything that isn't coding (debugging, testing, version control) is much better/faster than Eclipse IMHO. [0] h

Re: Choose the fields for inline editing

2008-06-11 Thread Gonzalo Delgado
t I cannot find it. Really > appreciate if someone can help me out. > Thanks > Cliff You're probably looking for this: http://www.djangoproject.com/documentation/model-api/#id4 -- P.U. Gonzalo Delgado <[EMAIL PROTECTED]> http://djangopeople.net/gonzalo/ pgpMf8HiTv4IF.pgp Description: PGP signature

Re: Total newbie question

2008-06-10 Thread Gonzalo Delgado
le (or even separate departments). Designers and HTML/CSS coders shouldn’t have to edit Python code to get their job done; they should deal with HTML. """ [1] http://www.djangobook.com/en/1.0/chapter04/ -- P.U. Gonzalo Delgado <[EMAIL PROTECTED]> http://djangopeople.net/gonzalo/ pgpqLmJBDV0Ca.pgp Description: PGP signature

Re: Django experts wanted

2008-05-19 Thread Gonzalo Delgado
under the right circumstances. I am not a recruiter > > - I'm a regular developer who sometimes gets asked for referrals when > > I'm not personally available. > > The site you're looking for is djangogigs.com. > Also, djangopeople.net -- P.U. Gonzalo Delg

Re: TemplateSyntaxError when moving from 0.96.1 to SVN

2008-04-14 Thread Gonzalo Delgado
El Sun, 13 Apr 2008 19:42:19 -0300 "Ramiro Morales" <[EMAIL PROTECTED]> escribió: > > On Sun, Apr 13, 2008 at 7:36 PM, Gonzalo Delgado > <[EMAIL PROTECTED]> wrote: > > Hi there, I'm trying to move my django projects to 0.97-pre (trunk). The > &g

TemplateSyntaxError when moving from 0.96.1 to SVN

2008-04-13 Thread Gonzalo Delgado
Is there a guide for this kind of migration? Thanks! -- Gonzalo Delgado <[EMAIL PROTECTED]> pgpNOe1gkT19T.pgp Description: PGP signature

Re: Django automatic admin creation

2008-02-25 Thread Gonzalo Delgado
ooglegroups.com > To unsubscribe from this group, send email to [EMAIL PROTECTED] > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en > -~--~~~~--~~--~--~--- > expect[0] should do the trick. Although there has to

Re: newforms ModelChoiceField queryset

2007-11-06 Thread Gonzalo Delgado
El Tue, 06 Nov 2007 10:28:39 -0800 Chris Brand <[EMAIL PROTECTED]> escribió: > > Gonzalo Delgado wrote: > > > > The question is: why doesn't something like this work: > > > > ticketform.fields['server'].queryset = > > Server.object

newforms ModelChoiceField queryset

2007-11-06 Thread Gonzalo Delgado
rendered form doesn't filter out the server choices.. any clue? Regards. -- Gonzalo Delgado <[EMAIL PROTECTED]> pgpkCM10etD0q.pgp Description: PGP signature

Re: CSS problem

2007-11-01 Thread Gonzalo Delgado
d_python? > (since iam a newbie to mod_python also i prefer using the development > server for sometime) > > Goutham > http://www.djangoproject.com/documentation/0.96/static_files/ -- Gonzalo Delgado <[EMAIL PROTECTED]> pgpgJU7MKhjNx.pgp Description: PGP signature

Problems with XMLField+Jing

2007-10-02 Thread Gonzalo Delgado
Hello there, I'm using an XMLField in one of my models. I've downloaded jing for compilation with gjc from http://www.thaiopensource.com/relaxng/jing.html (I got the link from Djano documentation), compiled it and installed it fine. But when I create a new object from that model, using the admin