Re: edit model properties in the admin

2018-02-14 Thread Gonzalo Delgado
oject.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 django-users+unsubsc

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

2018-02-13 Thread Gonzalo Delgado
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 unsubscribe from this group and stop receiving emails from it, send an email

Re: Hiding models from certain UserAdmin

2014-07-24 Thread Gonzalo Delgado
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+MTnHYQhu7

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: Using G

Re: Using admin views "outside" of admin

2013-11-20 Thread Gonzalo Delgado
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- Version: GnuPG v1.4.15 (Darwin

Re: How to add objects from one class to another

2013-11-05 Thread Gonzalo Delgado
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+wQdh5fNUmk71laONL1bWBWizncxe

Re: How to add objects from one class to another

2013-11-04 Thread Gonzalo Delgado
max_length=20, choices=(('background', 'Background'), ('profile', 'Profile'))) and do: m.image_set.filter(image_type='background') or: m.image_set.filter(image_type='profile') Another possibility would be to make Image an abstract model. Your referenc

Re: django database cache for longtime?

2013-05-29 Thread Gonzalo Delgado
ire? 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 you are sub

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 <abo...@gmail.com> > {% url 'registo.detail' registo.id %} > -- Gonzalo Delgado -- You received this mes

Re: Caught NoReverseMatch while rendering:

2011-04-06 Thread Gonzalo Delgado
naming-url-patterns -- Gonzalo Delgado<gonzalo...@gmail.com> -- 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

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<gonzalo...@gmail.

Re: OS Error, Permission Denined

2010-10-07 Thread Gonzalo Delgado
tml -- Gonzalo Delgado <gonzalo...@gmail.com> -- 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: 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 <gonzalo...@gmail.com> -- Y

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

2010-09-30 Thread Gonzalo Delgado
at 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 <gonzalo...@gmail.com> -- Y

Re: Flexigrid

2010-08-03 Thread Gonzalo Delgado
> 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 <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Goog

Re: Flexigrid

2010-07-30 Thread Gonzalo Delgado
http://is.gd/dTrPN -- Gonzalo Delgado <gonzalo...@gmail.com> -- 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-

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 <gonzalo...@

Email login in admin site

2010-07-06 Thread Gonzalo Delgado
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 <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django user

Re: determining changes in file

2010-06-16 Thread Gonzalo Delgado
If using Linux, Pyinotify may be what you're looking for: http://trac.dbzteam.org/pyinotify -- Gonzalo Delgado <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: Resize uploaded file file with PIL

2010-05-25 Thread Gonzalo Delgado
'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 <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django us

Re: object is not iterable.

2010-05-14 Thread Gonzalo Delgado
want to use ManyToMany instead of ForeignKey. -- Gonzalo Delgado <gonzalo...@gmail.com> -- 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 gr

Re: object is not iterable.

2010-05-14 Thread Gonzalo Delgado
logue.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 image in

Re: open()

2010-03-03 Thread Gonzalo Delgado
g Django's template module render_to_string function: from django.template.loader import render_to_string contents = render_to_string('test.html', {}) -- Gonzalo Delgado <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django use

Re: Serving https with runserver

2010-03-01 Thread Gonzalo Delgado
sembling 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 <gonzalo...@gmail.com>

Re: Serving https with runserver

2010-03-01 Thread Gonzalo Delgado
w the site behaves under certain conditions or with new features, etc. [0] http://en.wikipedia.org/wiki/Staging_site -- Gonzalo Delgado <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

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 <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups

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 <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

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 <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django users&q

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 <gonzalo...@gmail.com> --

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 <gonzalo...@gmail.com> -- You received this m

Re: Site wide configuration in admin

2010-02-06 Thread Gonzalo Delgado
Try livesettings: http://bitbucket.org/bkroeze/django-livesettings/overview/ -- Gonzalo Delgado <gonzalo...@gmail.com> -- 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...@googlegr

Re: Django or CMS.

2010-02-05 Thread Gonzalo Delgado
d 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 <gonzalo...@gmail.com> -- You received thi

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=1 -- Gonzalo Delgado <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Djang

Re: Any clues on error importing middleware?

2010-02-02 Thread Gonzalo Delgado
ot; module, is "fields" not mentioned there either (or in a module it imports, and so on)? -- Gonzalo Delgado <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: Feed not available - Syndication - Django 1.1.1

2010-01-22 Thread Gonzalo Delgado
wsing 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't that something you'd define yourself? Or what do you mean by "option for subscribing to the feed"? --

Re: django-sproutcore

2010-01-19 Thread Gonzalo Delgado
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 <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Djang

Re: Linked list of abstract objects

2010-01-18 Thread Gonzalo Delgado
hips [1] http://docs.djangoproject.com/en/1.1/ref/models/fields/#django.db.models.ForeignKey.related_name -- Gonzalo Delgado <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

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 <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Djang

Re: Namespace Security

2010-01-12 Thread Gonzalo Delgado
uld 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 <gonzalo...@gmail.

Re: Django with embedded python - module error

2010-01-11 Thread Gonzalo Delgado
on.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 root 1901 2009-12-27 15:13 validation.pyc > r...@lab:/data# > > > Everything seems OK for me... Django runs from Apach

Re: Jobs for DJango newbies?

2009-12-10 Thread Gonzalo Delgado
eld.text=django- [4] http://github.com/search?type=Repositories=python=django -- Gonzalo Delgado <gonzalo...@gmail.com> http://gonzalodelgado.com.ar/ pgpdQBeZVm1Er.pgp Description: PGP signature

Re: Django application source code

2009-11-15 Thread Gonzalo Delgado
ation in Django. > If any one 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 <gonzalodelg...@fortix.com.ar> http://gonzalodelgado.com.ar/ pgpuuJkdNcUSl.pgp Description: PGP signature

Re: computed values in templates...

2009-11-10 Thread Gonzalo Delgado
any data processing in the presentation layer. -- P.U. Gonzalo Delgado <gonzalodelg...@fortix.com.ar> http://gonzalodelgado.com.ar/ pgpVGngMDm9rd.pgp Description: PGP signature

Re: Class definition in the tutorial

2009-11-08 Thread Gonzalo Delgado
rField(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 <gonzalodelg...@fortix.com.ar> http://gonzalodelgado.com.ar/ pgpddNIlYJXZt.pgp Description: PGP signature

Re: starting a new site with django

2009-09-25 Thread Gonzalo Delgado
, Django's documentation[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/en/dev/

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

2009-09-22 Thread Gonzalo Delgado
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 > generic function.. > > Is this possible? Is this because the fields

Re: Help customizing the admin functionality

2009-09-21 Thread Gonzalo Delgado
ways there for you: http://docs.djangoproject.com/ -- P.U. Gonzalo Delgado <gonzalodelg...@fortix.com.ar> http://gonzalodelgado.com.ar/ pgp52dkxrGPQ5.pgp Description: PGP signature

Re: date inside url

2009-09-18 Thread Gonzalo Delgado
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. Gonza

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

2009-09-17 Thread Gonzalo Delgado
n/dev/topics/generic-views/#topics-generic-views -- P.U. Gonzalo Delgado <gonzalodelg...@fortix.com.ar> http://gonzalodelgado.com.ar/ pgpTo39J1DiJg.pgp Description: PGP signature

Re: django taking data from zimbra

2009-09-17 Thread Gonzalo Delgado
P, for that you may use python-ldap: http://www.python-ldap.org/ Hope it helps. -- P.U. Gonzalo Delgado <gonzalodelg...@fortix.com.ar> http://gonzalodelgado.com.ar/ pgpQ7LdN9aq7V.pgp Description: PGP signature

Re: template modules like joomla

2009-09-15 Thread Gonzalo Delgado
e? If you 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 <gonzalodelg...@fortix.com.ar> http://gonzalodelgado.com.ar/ pgphfgCNdAEvJ.pgp Description: PGP signature

Re: Syntax error

2009-09-15 Thread Gonzalo Delgado
{% endif %} > > >     {% endfor $} <<<<<<<<<<<<<<<<<<<<<<<<<<<<< ? > > > >> {% else %} > > {% endif %} -- P.U. Gonzalo Delgado <gonzalodelg...@fortix.com.ar> 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 <shuge@gmail.com> escribió: > How to get current URL ? http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.path -- P.U. Gonzalo Delgado <gonzalodelg...@fortix.com.ar> http://gonzal

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
vance. > > 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] http://scribes.source

Re: Choose the fields for inline editing

2008-06-11 Thread Gonzalo Delgado
annot 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
n 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
ies 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 Delgado <[EMAIL

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 > >

TemplateSyntaxError when moving from 0.96.1 to SVN

2008-04-13 Thread Gonzalo Delgado
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.objects.filter(users=

newforms ModelChoiceField queryset

2007-11-06 Thread Gonzalo Delgado
choices.. any clue? Regards. -- Gonzalo Delgado <[EMAIL PROTECTED]> pgpkCM10etD0q.pgp Description: PGP signature

Re: CSS problem

2007-11-01 Thread Gonzalo Delgado
mod_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