Re: Dev & Production difference: escaping html in admin

2008-11-01 Thread Ramiro Morales
ckwardsIncompatibleChanges#Auto-escapingintemplates to see if you are being affected by it. -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: Model inheritance question

2008-11-02 Thread Ramiro Morales
is traverse only the Posts objects instead o N tables (1 for > each kinkd of post) > See this thread for some ideas: http://groups.google.com/group/django-users/browse_thread/thread/f4241bc16455f92d/dcd2bfcc91d99cc9 -- Ramiro Morales --~--~-~--~~~---~--~~ You receiv

Re: syncdb problem with standalone applications

2008-11-06 Thread Ramiro Morales
luton functionality: south, dmigrations, django-evolution, dbmigrations, deseb, django-schemaevolution Google for them. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: don't escape html tags

2008-11-06 Thread Ramiro Morales
quot; gives this http://docs.djangoproject.com/en/dev/topics/templates/ as the first hit. Unsurprisingly, one of the sections in that document is "Automatic HTML escaping" Try reading it to know how you can control the feature. Regards, -- Ramiro Morales --~--~-~--~~-

Re: Foreignkey field in admin list_filter, Django 1.0

2008-11-13 Thread Ramiro Morales
ev/ref/contrib/admin/#list-filter it doesn't talk about fields of related models being supported at all. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Caching and I18n

2008-11-16 Thread Ramiro Morales
@vary_on_headers(''Accept-Language', 'Cookie') See the following posts for related discussions: http://groups.google.com/group/django-developers/browse_thread/thread/740f8d434e0660ff/5033945a4cdde102?hl=en&lnk=gst http://groups.google.com/group/django-users/browse_threa

Re: validate fields in the admin as some local flavor form fields

2008-11-19 Thread Ramiro Morales
/admin/#adding-custom-validation-to-the-admin Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ 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.

Re: Caching and I18n

2008-11-20 Thread Ramiro Morales
ni Aloy that was the OP in one of these threads. He pointed me to [1]ticket 5691 he opened back then. You might want to take a look at it (to know propossed solutions, code devs opinions and perhaps to post feedback and enhance the patch si it can be applied?). HTH --

Re: Using list_filter with a foreign key field in the Admin

2008-11-20 Thread Ramiro Morales
oups.google.com/group/django-users/browse_thread/thread/cb18... >> Note that in the referenced thread I understood [1]you were [2]asking for being able to filter on fields of the FK-related model instead of by the FK iself. Regards, -- Ramir

Re: Caching an image in Django

2008-11-20 Thread Ramiro Morales
uld I be doing a special encoding/ > compression before placing the image file into the cache? > See tickets #9180 and #5589 for related reports and proposed workarounds/fixes when using the memcache backend. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ Yo

Re: Problem with i18n in tests

2008-11-22 Thread Ramiro Morales
7;nombre' on form 'responsable_form' in > context 0 does not contain the error 'Ya existe un responsable con > este nombre' (actual errors: [u'Responsable with this Nombre already > exists.']) > Does the settings file being used for the tests have USE_

Re: How can I set column headers in AdminSite?

2008-12-12 Thread Ramiro Morales
mentation: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#list-display (Strangely enough the attribute is only described in the code examples and is mentioned in part 2 of the tutorial. Maybe it's a good time to submit patch for the documentation to remediate this.) HTH, -- Ramiro M

Re: problem with make-messages.py russian language

2008-12-15 Thread Ramiro Morales
evision that worked (r7496) and 1.0.2 (r9503) to try to find the commit that broke things for you. The functionality was moved from make-messages to django-admin at revision 7844. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you

Re: Simple ManyToManyField/Model question

2008-12-25 Thread Ramiro Morales
diary and m2m_through example: http://www.djangoproject.com/documentation/models/m2m_intermediary/ (tests/modeltests/m2m_intermediary/models.py in the Django source tree.) and the m2m_through example (tests/modeltests/m2m_through/models.py in the Django source tree.) HTH -- Ramiro Morales --~-

Re: Why doesn't syncdb ever modify or drop tables anymore?

2008-12-25 Thread Ramiro Morales
#x27;t clear the > tables, even though it printed appropriate DROP TABLE statements, it > just didn't issue the statements. Thanks. That's exactly the intended behavior (and always has been. Please read the fine documentation for more details: http://docs.djangoproject.com/en/de

Re: I would like to report a bug but I can't log in

2009-01-03 Thread Ramiro Morales
user name and password I got redirected to the djangoproject.com site and going back to code.djangoproject still didn't show me as logged in. So I had to log in again using the 'Login' link located at the upper right corner of the page (in the light green strip),

Re: Does using the IPython shell add "LIMIT" to Django ORM discussion (using SQLite)

2009-01-08 Thread Ramiro Morales
isn't caused by that LIMIT part as it isn't sent to the DB in other 'normal' conditions. Regards, -- Ramiro Morales 1. http://code.djangoproject.com/browser/django/trunk/django/db/models/query.py#L146 2. http://code.djangoproject.com/changeset/9202 --~--~-~--~

Re: forms/widgets media: position of 'class' directive

2009-01-11 Thread Ramiro Morales
t to see if, adding details from your own case to it, you can reproduce what you are seeing?. Of course, the only way I could reproduce what you report is using: js = 'prototype.js' -- Ramiro Morales --~--~-~--~~~---~--~~ You receiv

Re: Path problem with jsi18n - internationalization

2009-01-11 Thread Ramiro Morales
at deployment method? Does the web server show a 404 error in its logs when the /jsi18n/ URL is accessed from the browser? What happens if you manually open with your browser the http:///jsi18n/ URL?. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You receive

Re: Path problem with jsi18n - internationalization

2009-01-11 Thread Ramiro Morales
; URL. > That's strange, are you succesfully using another component of Django i18n infrastructure in the same application?. De you have USE_I18N set to True in the settings file you are using? -- Ramiro Morales --~--~-~--~~~---~--~~ You received this mess

Re: SVN checkout for users without access to SVN

2008-07-18 Thread Ramiro Morales
of the distributed version control mirrors of Django's SVN repo (Git, Mercurial, Bazaar), the URLs are published at: http://code.djangoproject.com/wiki/DjangoBranches#Distributedversioncontrolmirrors some of these provide tarballs with snapshots of the tree. HT

Re: Django svn 8631

2008-08-27 Thread Ramiro Morales
IncompatibleChanges#Mergednewforms-adminintotrunk Good luck 1. http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Template tag i18n failing

2008-08-31 Thread Ramiro Morales
ong. > This is a bug and has been reported as ticket |1] #7027, you can track the advance of the issue there. Also, you can help by applying the latest patch attached to it and posting you experience there as a comment if you find some problem with it. Regards, 1. http://code.djangoproject.com

Re: Template tag i18n failing

2008-08-31 Thread Ramiro Morales
On Sun, Aug 31, 2008 at 2:09 PM, Ramiro Morales <[EMAIL PROTECTED]> wrote: > > This is a bug and has been reported as ticket |1] #7027, you can track > the advance of the issue there. > This is fixed as of revision 8769. cheers, -

Re: i18N with templates in separate directory

2008-09-07 Thread Ramiro Morales
o take a look at http://docs.djangoproject.com/en/dev/topics/i18n/#message-files (Yes, we need to refactor and enhance that document.) Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: i18N with templates in separate directory

2008-09-08 Thread Ramiro Morales
file located in the same directory). > > And the django.po file has longer paths to everything. The paths in the PO file comments have no effect. HTH, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: Django 1.0 lighttpd FastCGI redirect issue

2008-09-12 Thread Ramiro Morales
; > Page not found (404) > Request Method: GET > Request URL:http://labs.lamepunch.org/labs.fcgi/ > > Trying to access the admin I get: > > The current URL, labs.fcgi/labs.fcgi/admin/, didn't match any of these. > > Any clues? I've been asking aroun

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Ramiro Morales
ving static files with the Django development server". to avoid helping people making wrong assumptions based in the generality of the document title. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Installing the development version of Django on Windows XP - Environment Variable?

2009-01-16 Thread Ramiro Morales
on how to update PATH that could be of help to you: http://docs.djangoproject.com/en/dev/topics/i18n/#gettext-on-windows > > After setting this variable will the trunk version of Django be > "installed"? I don't have to run the setup.py file after, right - this > will repla

Re: django searching wrong package for 'static.serve'

2009-01-17 Thread Ramiro Morales
prefixes. See http://docs.djangoproject.com/en/dev/topics/http/urls/#the-view-prefix and http://docs.djangoproject.com/en/dev/topics/http/urls/#multiple-view-prefixes for details. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: syncdb error

2009-01-18 Thread Ramiro Morales
s you need to download and execute an .exe installer for your version of Python. HTH -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: ManyToManyField.through for what?

2009-01-18 Thread Ramiro Morales
ou were able to do but in a clearer way. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ 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

Re: ManyToManyField.through for what?

2009-01-18 Thread Ramiro Morales
xt person stumbling the same doubts are welcome 8) -- Ramiro Morales --~--~-~--~~~---~--~~ 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

Re: Possible to see sql for queryset before database gets it?

2009-01-18 Thread Ramiro Morales
uld print the complete SQL query generated by the QuerySet. Both the query attribute and as_sql() method are internal implementation details of QuerySet. That's why they are not documented, but you can count on them being present for the foreseeable future. HTH -- Ramiro Morales --~--~-

Re: Raw SQL parameters

2009-01-19 Thread Ramiro Morales
-like parmeter maker style with a list or tuple of actual parameters. If you want to use the pyformat parameter marking style (as described in PEP 249), you' ll need to use the native DB-API driver API as you've already discovered.

Re: Raw SQL parameters

2009-01-19 Thread Ramiro Morales
ngeset/9418 Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ 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: Related Field has invalid lookup error

2009-01-24 Thread Ramiro Morales
ar(models.Model): > college = models.ForeignKey(College) >year = models.IntegerField() >wins = models.IntegerField(default=0) -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

Re: Queryset unexpectedly turning into list

2009-01-24 Thread Ramiro Morales
bug... but > it sure cost me some time because in my eyes it was something complete > out of the blue. > > Django version 1.0.2 > Python 2.5.2 > What DB backend are you using?. -- Ramiro Morales --~--~-~--~~~---~--~~ You received this mes

Re: in what namespace do widgets reside?

2009-01-27 Thread Ramiro Morales
umentation page, which took me to this page: http://docs.djangoproject.com/en/dev/modindex/ and then searching for 'widget'. HTH, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: docs: Problem with 'make html'

2009-02-01 Thread Ramiro Morales
ges/sphinx/ > application.py", line 120, in setup_extension > mod.setup(self) > File "/Users/benjamin/Code/django/django-trunk/docs/_ext/ > djangodocs.py", line 15, in setup > app.add_crossref_type( > AttributeError: 'Sphinx' object has no attribute

Re: models created from database table

2009-02-03 Thread Ramiro Morales
On Tue, Feb 3, 2009 at 9:29 AM, Waruna de Silva wrote: > Hi, > > In Django is it possible to created models automatically from > existing database. Yes, see http://docs.djangoproject.com/en/dev/howto/legacy-databases/#howto-legacy-databases -- Ra

Re: Wierd FileField behavior

2009-02-03 Thread Ramiro Morales
; > Sorry, made a mistake; On 9781 the problem is still there. > On 9084 (also quite randomly chosen) it seems to be allright. Revision 9766 introduced some changes related to file fields, can you try to refine your tests and see if it is the one that broke things in your case and repor

Re: looking for patch to user.messages that adds a category

2009-02-06 Thread Ramiro Morales
ionality and avoids the need to patch Django, it includes a new type property for the messages. The author also posted a link to a [4]blog entry describing it. Regards, -- Ramiro Morales 1. http://code.djangoproject.com/ticket/4604 2. http://code.djangoproject.com/wiki/Version1.1Features#Must-ha

Re: syncdb Issue: OneToOneField with User model from contrib.admin

2009-02-07 Thread Ramiro Morales
hor = models.OneToOneField(User, verbose_name=_('author')) the verbose_name option for the relationship type fields is currenty documented in the model topics document but not in the field options refererence. HTH, -- Ramiro Morales --~--~-~--~~~---~--~~

Re: Pretty admin pages

2009-02-10 Thread Ramiro Morales
; > > what am i doing wrong or what have i missed? > This is described in the documentation: http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id3 You should be sure the django/contrib/admin/media/ directory from the Django source code tree is pub

Re: Pretty admin pages

2009-02-10 Thread Ramiro Morales
Apache document root." blurb suggests, copying the django/contrib/admin/media tree to your document root would be one way of achieving this. Another option would be to use the Alias and Directory apache configuration directives (http://httpd.apache.org/docs/2.2/mod/mod_alias

Re: date error

2009-02-10 Thread Ramiro Morales
he django.views.generic.date_based.archive_index generic views is matching. Fix these problems first and then post again if you are still experimenting problems. HTH, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Another thread about static content

2009-02-10 Thread Ramiro Morales
n blocks/directives above?. It is really better for you and for anybody trying to help you if you follow some basic common sense practices because it isn't very practical having to set up a test Django app under one's Apache document root just to reproduce your setup. -- Ramiro Morales

Re: Verbose field name DjangoUnicodeDecodeError

2009-02-11 Thread Ramiro Morales
org/dev/peps/pep-0263/ Also, make your to wrap your Portuguese literals with a call to the django.utils.translation.ugettext_lazy() function as described in the Django I18n documentation: http://docs.djangoproject.com/en/dev/topics/i18n/#lazy-translation R

Re: Another thread about static content

2009-02-11 Thread Ramiro Morales
0200] "GET /media/foo.gif HTTP/1.1" 404 211 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020409 Iceweasel/3.0.6 (Debian-3.0.6-1)" error.log: [Wed Feb 11 15:13:00 2009] [error] [client 192.168.190.2] File does not exist: /var/djapps/dtests/template

Re: Verbose field name DjangoUnicodeDecodeError

2009-02-11 Thread Ramiro Morales
encoding, and it isn't the one you expect, you can re-code it using the iconv utility or re-create the models.py file from scratch making sure you tell from the beginning your text editor you want the file to use UTF-8 encoding. HTH (sorry for not making this cle

Re: Python Versions and manage.py

2009-02-18 Thread Ramiro Morales
Django installed under both Python versions) Yo can create your own .BAT files containing just that if you want to save some keystrokes. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: OT: hide directory listing on server

2009-02-18 Thread Ramiro Morales
a given file. You can disable Apache mod_autoindex http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html for that directory. But the easiest way to avoid the generation of the directory content listing is simply creating an empty index.html file there. -- Ramiro Morales --~--~

Re: problem about "You appear not to have the 'sqlite3' program installed or on your path."

2009-02-26 Thread Ramiro Morales
fashion). The dbshell Django management command uses this utility. So you need to download sqlite3.exe if you want to use it. Regards, -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: Cookie problem on multiple sites

2009-03-03 Thread Ramiro Morales
, or a debugging proxy, or a Firebug equivalent for IE and see if the cookie is arriving to the browser at all and if it does, why IE is ignoring it. -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: Cookie problem on multiple sites

2009-03-04 Thread Ramiro Morales
search in the relevant mailing lists archives with sensible terms. With pieces of code like IE probabilities are high somebody has already suffered the same problems. -- Ramiro Morales --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: translating app name ... again

2009-03-08 Thread Ramiro Morales
e %} I've opened [1]ticket 10436 for this , please test the patch attached and/or post feedback about it or the ticket description notes. > > All of those are bugs (the same bug: not marking app name for > translation). If you'd like to open a ticket and drop in a patch, it's > an

Re: Different Database object behavior on Production and Development servers.

2009-03-09 Thread Ramiro Morales
gt; > Any clues why my development server fetches and filters will not > return coherent > data? > It's not cleat to me what does the development server have to do with this. Could you explaining it a bit further. -- Ramiro Morales http://rmorales.net --~--~-~--~~---

Re: Forms: label translation fails

2009-03-10 Thread Ramiro Morales
ss Meta: >        model  = models.MyModel >        fields = ('name', 'description') > > models.py: > class MyModel (models.Model): >    name = models.CharField(max_length=50,verbose_name=_("Name")) >    description = models.CharField(max_length=200,              

Re: fastcgi can not send url to my backend server

2009-03-15 Thread Ramiro Morales
I access http://www.ziyoudu.com/login/ > I enabled the debug information then and found it seems that the url is > translated to a static file path. The debug infomation is: That's because you aren't really following the documentation example, you are missing the "check-loca

Re: Poll Tutorial regarding __unicode__

2009-03-17 Thread Ramiro Morales
ive shell (manage.py shell) you need to restart it to see the efefct of the changes you perform in model.py. HTH -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: ImportError with Django rev. 10087

2009-03-18 Thread Ramiro Morales
eful is to also know which revision you had been (successfully) using before so we can search for a commit in the range, not necessarily 10087. -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: ImportError with Django rev. 10087

2009-03-18 Thread Ramiro Morales
74 is the revision where your problems started? Can you reduce your problematic models to a minimal test case? and paste it to dpaste.com? Do the problematic models have circular references among them?. Regards, -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~

Re: Test Client doesn't populate request.META["HTTP_HOST"] ...

2009-03-19 Thread Ramiro Morales
request: > > >>> client.get('/foo/bar/',extra={'HTTP_HOST':'example.com'} actually results in a 'extra' key whose value is a nested dictionary in the request.META dictionary. Use >>> client.get('/foo/bar/', HTTP_HOST='e

Re: can't connect with dbshell

2009-03-20 Thread Ramiro Morales
to the equivalent SQLite and MySQL command line tools and this would increase the chances of it or a similar fix getting applied to solve this problem with dbshell on Windows. HTH, -- Ramiro Morales http://rmorales.net 1. http://code.djangoproject.com/ticket/10357 --~--~-~--~~-

Re: Gettext needs iconv.dll but I only have libiconv2.dll

2009-06-20 Thread Ramiro Morales
dated instructions would be a documentation change worth doing. Regards, -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: NameError: name 'Job' is not defined

2009-07-10 Thread Ramiro Morales
;d like to keep them in different files. One solution to this is described in the relevant documentation: http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http:

Re: syncdb doesn't updated database after adding null=True to an IntegerField

2009-07-16 Thread Ramiro Morales
e FAQ: http://docs.djangoproject.com/en/dev/faq/models/#if-i-make-changes-to-a-model-how-do-i-update-the-database -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http://ar.pycon.org/2009/about/ --~--~-~--~~~---

Re: Accessor for field clashes with related field

2009-07-17 Thread Ramiro Morales
r more details: http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey http://docs.djangoproject.com/en/dev/topics/db/queries/#backwards-related-objects HTH. -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http://ar.pycon

Re: A question about reverse url lookups for admin site in svn version

2009-07-19 Thread Ramiro Morales
ces http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse will help you solve your problem. -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http://ar.pycon.org/2009/about/ --~--~-~--~~~---~--~~ Y

Re: Django admin doesn’t show translated enumerations in list view under Python 2.3

2009-07-21 Thread Ramiro Morales
his a bug? > I haven't acceso to a system with Python 2.3 anymore so I can't do the following tests myself: Would it be possible to run your test case both under: * A checkout of Django from the 1.0.x SVN branch. * A checkout of Django from the SVN trunk. and see if there is any dffe

Re: Question on the ticket #11563

2009-07-27 Thread Ramiro Morales
f The tile of the section is "Hooking AdminSite instances into your URLconf" HTH -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Septiembre Buenos Aires, Argentina http://ar.pycon.org/2009/about/ --~--~-~--~~~---~--~~ You received

Re: Editing model based forms.

2009-07-27 Thread Ramiro Morales
a subset of fields on the form" that describes the techniques (and the relevant caveats) for doing what you describe. 1. http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ 2. http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-a-subset-of-fields-on-the-form HTH -- Ramiro

Re: Django and related_name

2009-07-29 Thread Ramiro Morales
explain the problem you describe: > def __inicode__(self): >return self.precio This isn' t correctly indented to be considered a method of your Tarifas model, it is being interpreted as a module level function. Obviously, the name is wrong too, it should be __unicode__ Regards,

Re: limit_choices_to

2009-08-01 Thread Ramiro Morales
t.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_foreignkey you can write your own and further filter the queryset used for the FK field UI there, an example is included in the documentation. HTH -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina - Vie 4 y Sab 5 Setiembr

Re: subclassed ModelForms initial values behavior changed from 1.1beta to 1.1

2009-08-01 Thread Ramiro Morales
ttp://dpaste.de/Yr0f/ Please modify these tests to describe what you are seeing if I've missed anything. Regards, PS: Maybe you are not seein the difference in behavior at model instance save time as per what's described in the docs in the note right above this?: http://docs.djangoproject

Re: Setting tzinfo for DateTimeFields with Postgresql - workaround

2009-08-16 Thread Ramiro Morales
om/ticket/10587 > I've took the liberty of adding this to the Version1.2Features wikipage that is currently being used as a bag of potential 1.2 modifications: http://code.djangoproject.com/wiki/Version1.2Features?action=diff&version=55 Feel free to fix the description if the one

Re: Admin add / list / etc links broken?

2009-08-17 Thread Ramiro Morales
nt in the following documentation code excerpts: http://docs.djangoproject.com/en/1.0/intro/tutorial02/#activate-the-admin-site (Django < 1.1) http://docs.djangoproject.com/en/dev/intro/tutorial02/#activate-the-admin-site (Django 1.1) -- Ramiro

Re: explanation of: {{ action.action_time|date:_("DATETIME_FORMAT") }}

2009-08-18 Thread Ramiro Morales
om/en/dev/topics/i18n/#id2 (last item in the list). If I understand things correctly, if/when Marc's GSoC work on this front gets merged, in 1.2 this will be replaced by similar but more explicit ways to specify the same info. HTH -- Ramiro Morales http://rmorales.net PyCon 2009 Argentina

Re: how to make admin app use templates from app templates folder?

2009-09-01 Thread Ramiro Morales
der? AFAIK You can't. And it is described in the documentation: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model HTH -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this mes

Re: xgettext under osx

2009-09-02 Thread Ramiro Morales
herwise won't be able to find the xgettext binary. -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ 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

Re: xgettext under osx

2009-09-02 Thread Ramiro Morales
t, msgmerge, msgfmt) available when running the different i18n-related django-admin.py commands (makemessages, compilemessages) -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: Incorrect {{root_path}} in classes derived from AdminSite

2009-09-09 Thread Ramiro Morales
nelogout/), Change Password (http:// > 127.0.0.1:8000/admin/Nonepassword_change/), etc. (examples are from > index page). I am not sure whether it is mistake at my site or > somewhere else. We'll need to know what released version or SN revision of Django you are using to be able to he

Re: Incorrect {{root_path}} in classes derived from AdminSite

2009-09-09 Thread Ramiro Morales
nerate admin in urls.py : > > from django.conf.urls.defaults import * > from sites import admin_site > urlpatterns = patterns('', >   (r'^admin/', include(admin_site.urls)), > ) > > Although there are no registered mode

Re: Incorrect {{root_path}} in classes derived from AdminSite

2009-09-09 Thread Ramiro Morales
ing a a single value). This new capability was added in Django 1.1 core as part of the URL namespacing changes and and is described both here: http://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces and in the Django 1.1 release notes. HTH, -- Ramiro

Re: Model A imports Model B imports Model A - I'm completely lost as to how to get around circular imports

2009-04-05 Thread Ramiro Morales
ny-relationships http://docs.djangoproject.com/en/dev/topics/db/models/#models-across-files http://docs.djangoproject.com/en/dev/ref/models/fields/#lazy-relationships HTH -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because

Re: syncdb adding extra table from models

2009-04-10 Thread Ramiro Morales
models/options/#db-table class Country(models.Model): # ... class Meta: db_table = ' country' HTH, -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: django and i18n what's wrong???

2009-04-13 Thread Ramiro Morales
0,_('Inactive')), > ) > > this is a really strange behaviour ... > To which one of the *gettext* function(s) are the _ alias defined in both models.py and views.py? -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this messa

Re: Django doesn't validates CharFields before gitting the DB?

2009-04-17 Thread Ramiro Morales
tual DLL definition of the image_content_type field? (i.e. does it contain 'NULL' or 'NON NULL'). Has the table been generated by Django itself from the model or is it a legacy database that you've generated the models from by introspecting it?. -- Ramiro Morale

Re: Turning password reset

2009-04-21 Thread Ramiro Morales
to a specification similar to the one used to specify the test to run, then it can be of some help. I've also been told nose has similar functionality. Regards, -- Ramiro Morales http://rmorales.net 1. http://code.djangoproject.com/ticket/8363 --~--~-~--~~~---~

Re: Turning password reset

2009-04-21 Thread Ramiro Morales
>> I've also been told nose has similar functionality. > > I don't get this one. Is it some kind of a sarcastic or ironic remark > I won't understand unless I'm native speaker? > Not at all http://somethingaboutorange.com/mrl/projects/nose/

Re: admin area language settings

2009-04-25 Thread Ramiro Morales
erhaps you can put the admin site in a separate website (and its own settings with LANGUAGE_CODE='en-us' ) Malcolm Tredinnick has written a good decription of the idea in a blog post: http://www.pointy-stick.com/blog/2009/03/26/django-tip-controlling-admin-or-other

Re: ManyToMany with a "through" attribute in the admin profile

2009-05-03 Thread Ramiro Morales
> a bug or is there a reason for this? See http://docs.djangoproject.com/en/dev/ref/contrib/admin/#working-with-many-to-many-intermediary-models -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: i18n of words that switch place in a sentence

2009-05-11 Thread Ramiro Morales
I would like to keep using the '18 minutes' part as a > variable so I can't just translate the whole sentence. Read http://docs.djangoproject.com/en/dev/topics/i18n/#standard-translation Good luck -- Ramiro Morales http://rmorales.net --~--~-~--~~~

Re: referencing the object id from clean validation methods

2009-05-16 Thread Ramiro Morales
the same as > djangos. > For Django, there is a ticket ([1]8861) open that asks for a documentation enhancement: adding a mention about self.instance in the relevant model form validation sections. -- Ramiro Morales http://rmorales.net 1. http://code.djangoproject.com/ticket/8861 --

Re: Temporary urls for tests

2009-05-30 Thread Ramiro Morales
pics/testing/#urlconf-configuration > > -- > Filip Gruszczyński > -- Ramiro Morales http://rmorales.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Bug in admin related to django.root

2009-06-03 Thread Ramiro Morales
hen I click Save it takes me to a URL that is > missing the django.root (of course the page doesn't exist on the > server so I get a 404). > > This seems like a django bug to me; does anybody know what I can do > about it? > Please tell us what version or revision of Dja

Re: Related Managers and use_for_related_fields strangeness

2009-06-06 Thread Ramiro Morales
esn't say nor imply that there will be any automatic (magic?) per-Project filtering of Release querysets generated by your manager just because you have set its use_for_related_fields to True. Even further, it recommends against returning filtered query

Re: Related Managers and use_for_related_fields strangeness

2009-06-10 Thread Ramiro Morales
(self) class Release(models.Model): project_fk = models.ForeignKey(Project) title = models.CharField(max_length=141) objects = ReleaseManager() Then you would be able to use the planning_backlog() method of your p Project instance to get what you need. I don't know if use_for_related_

Re: I think my filter problem should be a common one...

2009-06-10 Thread Ramiro Morales
to go, using e.g. > http://stackoverflow.com/questions/431628/how-to-combine-2-or-more-querysets-in-a-django-view, > but I think this is a rather common problem, so maybe someone knows > how to solve this more elegantly. > > Can anyone help me ? > > Cheers, > > Steve >

  1   2   3   4   >