Re: Visibility images/css from another directories

2012-05-21 Thread Stone
No the URLs are different and storage on the filesystem is also different. E.g. URL /public/js/.. are stored on /opt/public/htdocs URL /common/js/.. are stored on /opt/common/htdocs URL appl application /appl/js is stored on /opt/appl/htdocs/media/js/ (Django) In the development case I can copy

Re: django on jb ipad

2012-05-21 Thread Derek
I'm not an iPad user, but I see you can install Python from iTunes: http://itunes.apple.com/us/app/python-for-ios/id485729872?mt=8 (BTW, SQLite library and the pysqlite language binding are built into Python) I'm assuming you can then install and run normal Python modules (of which Django is

Re: Add Language menu in Admin

2012-05-21 Thread kenneth gonsalves
On Fri, 2012-05-18 at 09:19 +0200, BadStorm wrote: > I want to add a language value to my model, to permit to user the > ability to add content in different languages that I configurated in > the > setting.py. try out djangomodeltranslation -- regards Kenneth Gonsalves -- You received this

Re: Django graphical query interface?

2012-05-21 Thread Derek
I also have searched for such a beast in the past... The only one I have found recently that might be close is: http://plugins.jquery.com/project/SQL_QUERY_BUILDER (This site is down now - look at the archived view:

Re: where do you host your django app and how to you deploy it?!

2012-05-21 Thread kenneth gonsalves
On Fri, 2012-05-18 at 13:18 +0100, Cal Leeming [Simplicity Media Ltd] wrote: > On top of this, I am yet to come across a decent django specific host > (there's plenty out there, but none that I would consider recommending > at > this time). not even webfaction? -- regards Kenneth Gonsalves --

Links between App and Docs

2012-05-21 Thread Thomas Guettler
Is there already a prefered django way to link between the application and it's documentation? I have documentation for users of an application written in sphinx. Up to now the documentation are static HTML pages which can be accessed by the user. I want to create link between the app and

Re: Nested Foreign Key relationships in Admin?

2012-05-21 Thread Matt Schinckel
The admin.*Inline objects will not render nested inlines. See https://code.djangoproject.com/ticket/9025 Matt. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Where are the women?

2012-05-21 Thread Daniele Procida
On Tue, Apr 24, 2012, Daniele Procida wrote: > - >and then I had a closer look at the names of this year's speakers. > >There are *two* women out of the 24 or so speakers listed, and only one >is doing a solo

Re: django forms - overriding constructor for changing field type depending by input

2012-05-21 Thread bruno desthuilliers
On May 20, 5:28 pm, luke lukes wrote: > thanks Paul and DR, your solution worked. anyway now i have a problem with > the validation of that form (her's the view): (snip) Sorry, your code's indentation get messed up so it's hard to tell where the problem ise exactly.

Re: My context variables don't show in templates

2012-05-21 Thread bruno desthuilliers
On May 20, 12:29 am, Mohamed Turki wrote: > > def home(request): >     var = "" >     n = None Better to use readable names. >     if request.method == u'GET': >         GET = request.GET >         if GET.has_key(u'name'): >             n = GET[u'name'] >             try: >  

Re: user.set_password('new password')

2012-05-21 Thread bruno desthuilliers
On May 19, 5:49 pm, Timothy Makobu wrote: > user.save returns the function object, actually it evals to a method object ;) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: DB joining 3 tables in django admin, while searching on the primary table

2012-05-21 Thread Aditya Sriram M
Some one there can answer!? On Sunday, 20 May 2012 13:12:17 UTC+5:30, Aditya Sriram M wrote: > > Ooo.. Nice. > > Hmm.. I tried this but it failed? Can you pls correct me? > > def queryset(self, request): > result = super(CustomerAdmin, > self).queryset(request).prefetch_related() >

Re: user.set_password('new password')

2012-05-21 Thread Timothy Makobu
And a method is a function only accessible through a class. On Mon, May 21, 2012 at 3:39 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On May 19, 5:49 pm, Timothy Makobu > wrote: > > user.save returns the function object, > > > actually it

Re: Trying to Edit Existing Post; Can't Get Form to Display

2012-05-21 Thread DF
Thanks for that insight. It's always good to reinforce best practices for newcomers like myself. On Monday, May 21, 2012 7:47:33 AM UTC-4, bruno desthuilliers wrote: > > On May 19, 5:41 pm, Jonathan Baker > wrote: > > Just a note about best practises: > > > > >

Inserting HTML5 Coordinates Into Django Form

2012-05-21 Thread DF
I'm wading – carefully – into some basic geolocation using HTML5. I currently have a meta form that has space for lat and long coordinates and have found the proper code to obtain those coordinates using the Google Maps API (pretty simple stuff). Next step: inserting those coordinates

Re: Nested Foreign Key relationships in Admin?

2012-05-21 Thread Mike Dewhirst
On 21/05/2012 2:55pm, Mike Dewhirst wrote: On 21/05/2012 2:45pm, Mike Dewhirst wrote: On 21/05/2012 1:57pm, Aditya Sriram M wrote: I'd like to represent foreign key relationships inside the Admin interface when there are multiple nested one-to-many relationships. Provided you have the admin

Time zone support enabled in Django 1.4, yet "Django does not support timezone-aware times"

2012-05-21 Thread Arthur
Hello, I recently upgraded one of my machines to Django 1.4 to patch a bug related to the use of PostGIS 9.1. I read the documentation on the new support for time zones and added USE_TZ=True to my settings.py file. Nonetheless, when I attempt to load data into my PostGIS database in one of the

ordering m2m query based on through table

2012-05-21 Thread KentH
I am trying to configure a m2m relationship to be ordered based on data in the through table. I assumed an 'order' attribute in the through-table's Meta class would be honored, but it's not. Bug #11850 (closed: wontfix) relates to this problem, but with no pointer as to a work-around. As

Python Web Development with Django by Wesley Chun

2012-05-21 Thread Ali Shaikh
Hey Django.!! Please can anyone share Python Web Development with Django by Wesley Chun E-Book?? Thank Yooo -- 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.