My Data dont be updated with my forms

2013-03-15 Thread Rafael E. Ferrero
Hello everybody... I try to update data from a ModelForm (relevant part of code here). I search on Google but can't find any solution to my problem. This piece of code take one event from DataBase, the data are populated to the form, you can change the information

Re: how to get data from other website after login on other sites through my site?

2013-03-15 Thread Kurtis Mullins
I am going to assume that you do not own, or otherwise have access to Coursera as a developer. After a quick search, I see they offer no API. Therefore, I don't believe there would be any "ethical" way of doing this. You could have a user login through your site as a sort of gateway but I don't

Re: how do I order a selection box in admin?

2013-03-15 Thread Mike Dewhirst
On 16/03/2013 1:59am, frocco wrote: Hello, I have a product record that can be assigned multiple categories. The problem I am having is the category list is not sorted by name. how can I sort the list in admin when I try and add a new product? Have you seen ...

Performance when retrieving data from related models

2013-03-15 Thread Taras_96
My web app hits the database up to 3k per page because it has to retrieve data from lots of related models. It has a fairly normalised database with a structure similar to: - one project has many contracts - one project has many tenders (a tender is put forward by a contractor) - one contract

application warmup

2013-03-15 Thread Miguel Angel Yáñez
Hi I have various apps running on apache fine but I noticed that when time passes without requests the first request after always fail, the following already going well. I read that you have to simulate a warmup for the application but I do not see how to do this. Any idea how to solve this

Re: plugin for selecting files

2013-03-15 Thread Larry Martell
On Fri, Mar 15, 2013 at 2:15 PM, Sanjay Bhangar wrote: > Hey, > > I believe there are some jquery plugins by now to handle > asynchronously uploading multiple files, and they should contain some > examples of how to handle them on the server side - this is one thing > I

Re: plugin for selecting files

2013-03-15 Thread Larry Martell
On Fri, Mar 15, 2013 at 11:06 AM, Javier Guerra Giraldez wrote: > On Fri, Mar 15, 2013 at 10:15 AM, Tom Evans wrote: >> I'm >> fairly certain that should not throw any change >> events or make the name of the file available to JS, for reasons of >>

Re: plugin for selecting files

2013-03-15 Thread Larry Martell
On Thu, Mar 14, 2013 at 5:08 PM, Shawn Milochik wrote: > On Thu, Mar 14, 2013 at 6:03 PM, Larry Martell > wrote: >> >> I have been googing this for 2 days and trying lots of different >> things, without success. I really appreciate your help - I've

RE: "condition_dict" and "get_cleaned_data_for_step" triggers

2013-03-15 Thread Babatunde Akinyanmi
Er..actually I was suggesting that you should override get_form_kwargs but I guess I misunderstood your first mail. condition_dicts and initial_dict smell when they contain an ORM call. Your still gonna need to cache the query. Sent from my Windows Phone -- From:

Re: plugin for selecting files

2013-03-15 Thread Sanjay Bhangar
Hey, I believe there are some jquery plugins by now to handle asynchronously uploading multiple files, and they should contain some examples of how to handle them on the server side - this is one thing I found on github - https://github.com/sigurdga/django-jquery-file-upload , though I'm certain

Re: Bug in login_required?

2013-03-15 Thread chirale
Il giorno venerdì 10 luglio 2009 02:34:59 UTC+2, Manoj Govindan ha scritto: > This problem was logged as a bug and closed without fixing because the > development team thought it was not worthwhile. Time for necroposting. As of 2013, the 1.5 version of Django has nice news for us: This

Re: plugin for selecting files

2013-03-15 Thread Javier Guerra Giraldez
On Fri, Mar 15, 2013 at 10:15 AM, Tom Evans wrote: > I'm > fairly certain that should not throw any change > events or make the name of the file available to JS, for reasons of > security. it does generate change events, even if the value is a black box. > Auto

Re: plugin for selecting files

2013-03-15 Thread Tom Evans
On Fri, Mar 15, 2013 at 12:59 PM, Larry Martell wrote: > On Thu, Mar 14, 2013 at 5:08 PM, Shawn Milochik wrote: >> On Thu, Mar 14, 2013 at 6:03 PM, Larry Martell >> wrote: >>> >>> I have been googing this for 2 days and

Re: Django on Mediatemple DV (4.0) in Virtualenv

2013-03-15 Thread Tom Evans
On Thu, Mar 14, 2013 at 9:37 PM, Tim Walzer wrote: > I am currently trying to install Django on a Mediatemple DV (4.0) server and > have the installation be within a virtualenv. The django app will be run > from a subdomain, parts.domain.com, while the root domain

how do I order a selection box in admin?

2013-03-15 Thread frocco
Hello, I have a product record that can be assigned multiple categories. The problem I am having is the category list is not sorted by name. how can I sort the list in admin when I try and add a new product? Thanks -- You received this message because you are subscribed to the Google Groups

Pass information to change_list.html

2013-03-15 Thread Ramces Chirino
Hi, I'm want to extend the default change_list.html template for my application's admin site. Since most of the default functionality is going to exist, I figured it was best to ensure I can send the proper information from my view. The closest way I am able to mimic the default functionality

Re: "condition_dict" and "get_cleaned_data_for_step" triggers

2013-03-15 Thread Einsiedlerkrebs
Hello Tundebabzy, I have not overwritten* get_form_kwargs* . The queries are from the form and belong to the select fields. Without the *condition_dict* in the urls everythink is fine. After I put it in it, the querie count increase. On Friday, March 15, 2013 11:13:38 AM UTC+1, Tundebabzy

Trouble creating super user on Django 1.5 in windows

2013-03-15 Thread Nonami Animashaun
I am trying to create a super user but fjango is not accepting my keyboard inputs. After syncdb django suggest that I enter yes to create super user but no matter how I type "YES" it complains that I must type "yes" or "no". I tried doing a manage.py createsuperuser but django complains about

Re: plugin for selecting files

2013-03-15 Thread Larry Martell
On Thu, Mar 14, 2013 at 5:08 PM, Shawn Milochik wrote: > On Thu, Mar 14, 2013 at 6:03 PM, Larry Martell > wrote: >> >> I have been googing this for 2 days and trying lots of different >> things, without success. I really appreciate your help - I've

Re: Problems install/download Django 1.5

2013-03-15 Thread Daniel Roseman
On Friday, 15 March 2013 10:05:48 UTC, br...@kanka.de wrote: > Because the 'brand' comprises a package manager? > Of course you can ignore it, but once you have, you can not easily go back > to the package-administration. > With the package manager, after having installed apache2, you would >

RE: "condition_dict" and "get_cleaned_data_for_step" triggers

2013-03-15 Thread Babatunde Akinyanmi
multiple queries in FormWizard MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_Part_1231_5010369.1363309645685" --=_Part_1231_5010369.1363309645685 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Einsiedlerkrebs, If the problem is

Re: Problems install/download Django 1.5

2013-03-15 Thread breg
Hello, On Thursday, March 14, 2013 9:17:22 PM UTC+1, Lachlan Musicman wrote: > > > Apart from my question, it would really make sense to have Django > install > > instructions for a debian/ubuntu server in the django docs. ... > > I disagree - the docs are very well written and work across

Re: Can anyone give me a suggestion or a recommendation as to how I can access the current user's username in the models.py?

2013-03-15 Thread Mike Dewhirst
On 15/03/2013 4:56pm, Russell Keith-Magee wrote: On Fri, Mar 15, 2013 at 11:58 AM, Mike Dewhirst > wrote: What is the right way to design a system whereby on every save for every model the updated_by column is changed to the user.id

how to get data from other website after login on other sites through my site?

2013-03-15 Thread Avnesh Shakya
Hi, Actually I want to get data from other website, for example-- i have my django wesite, and one user login on my site then he click on link of other site(like coursera), which is given on my site, and login on coursera, then i want to get user's data from coursera site,not secure data, only