Re: Django + ajax waiting page, can not redirect to result page

2011-12-15 Thread yun li
Since I am really know nothing about ajax, I am not sure if I understand "try changing the return value from the view to a string " the right way. I changed the definition of run_DHM this way def run_DHM(request): xx = {'ok':true} return(xx) but still the same as before. and how

Re: Admin Change List: Display Foreign Keys as Links to Related Change Form

2011-12-15 Thread Lee
This solution did not work out of the box but it helped me figure out a simple but tedious solution: In models.py: - class AppParent(models.Model): ... def get_url(self): return urlresolvers.reverse('admin:myapp_appparent_change',args=(self.id,)) class AppChild

Re: Django Persistent DB connections - A different approach

2011-12-15 Thread nipun batra
Thanks.Yes understood the flaw in my approach On Thu, Dec 15, 2011 at 12:15 AM, Alec Taylor wrote: > No reason you can't ACID the whole thing > > Important info: http://en.wikipedia.org/wiki/Concurrency_control#Methods > > On Thu, Dec 15, 2011 at 5:18 AM, akaariai

Re: Japanese Text Sort Order

2011-12-15 Thread Tetsuya Morimoto
Hi, After my previous post, I found a library named Unihandecode which resolves the "multiple reading" problem. This library is intended Kanji to Kana in ascii for Japanese. It might be your help. http://www.slideshare.net/miurahr/unihandecode-a-transliterate-library-for-unicode

Re: Django a Turnkey Linux -- I need your experience.

2011-12-15 Thread Petr Přikryl
Thanks Brett for the info.   > I prefer Ubuntu Server, but your choice of distro isn't that important > as long as it is new-ish.     If I understand it well, then TurnKey Linux 11.3 is actually based on Ubuntu 10.04... plus the selected neccessary packages for the chosen purpose. > You'll want

Re: Decorator aware Django

2011-12-15 Thread Bernardo
> Use Class-based views[1] and subclass them as needed? Earlier today I saw a blog talking about that. I haven't read everything, but seems that it is what I want. I still need to see how to combine multiple Class based views to treat my data. Thanks! Bernardo On Dec 15, 3:48 pm, Andre Terra

User Profile Creation

2011-12-15 Thread bazaarsoft
In all the examples I've seen of creating the user profile at the time a User is created, I always see the use of the signal and the profile table's fields (except for user) have to be nullable. I don't see a way to break in to the creation process using the signal scheme such that you can pass in

Re: Newbie question on forms using ChoiceField and "choices" field...

2011-12-15 Thread Tom Evans
On Thu, Dec 15, 2011 at 8:27 PM, J. Marc Edwards wrote: > OK...I have the following model and form. > > class CmdString(models.Model): > >     name    = models.CharField(max_length=50) >     cmd = models.CharField(max_length=200) >     eda_app =

Newbie question on forms using ChoiceField and "choices" field...

2011-12-15 Thread J. Marc Edwards
OK...I have the following model and form. *class CmdString(models.Model): name= models.CharField(max_length=50) cmd = models.CharField(max_length=200) eda_app = models.OneToOneField(EDA_App, primary_key=True) def __unicode__(self): return self.cmd *

Re: Japanese Text Sort Order

2011-12-15 Thread JohnA
I just joined this group and this is the first thread I’m responding to so please bear with me as a newbie. The question posed by Denys Poulat on Dec 14 2011 is mostly answered at the beginning of the long thread that it now appears at the end of, particularly the responses of Tetsuya Morimoto

Re: Django 1.2.1 strange problem

2011-12-15 Thread Ian Clelland
On Thu, Dec 15, 2011 at 5:56 AM, Sells, Fred wrote: > I’ve got an older app that’s been running in production for about 2 years > on RedHat 4, MySQL 5.0.77 with MyISAM tables, Django 1.2.1 and Python 2.4. > > > ** ** > > This app is used heavily by internal

Re: Iterable check boxes

2011-12-15 Thread Andre Terra
Your template doesn't match the form you provided, so I'm going to guess that what you need is {% myform.beatles.choices %} for the iterator. For the future, please try to post full tracebacks and the actual code. Good luck! Cheers, AT On Thu, Dec 15, 2011 at 12:16 PM, CrabbyPete

Re: Decorator aware Django

2011-12-15 Thread Andre Terra
On Thu, Dec 15, 2011 at 11:51 AM, Bernardo wrote: > but I > wanted a easier way to render data from multiple return points in a > same function without calling another thing multiple times... > Use Class-based views[1] and subclass them as needed? Cheers, AT [1]

Re: Django + ajax waiting page, can not redirect to result page

2011-12-15 Thread Brett Epps
I think the problem might be that you're using the getJSON function, which expects a JSON response, but your view returns 'OK', which is not valid JSON. The callback you have given to getJSON only gets called on "success" (meaning a JSON document was retrieved) - that's why nothing is happening

Re: Django a Turnkey Linux -- I need your experience.

2011-12-15 Thread Brett Epps
I prefer Ubuntu Server, but your choice of distro isn't that important as long as it is new-ish. You'll want to use Python 2.7 if possible. You should also use Django 1.3.1 (the latest release). I'd highly recommend learning how to use pip and virtualenv for installing Python packages and

Re: Django a Turnkey Linux -- I need your experience.

2011-12-15 Thread Nick Raptis
Yes, I did once, by installing the newest django in a virtualenv along with my project. Search for "apache mod_wsgi virtualenv" for relevant information. Not that hard to do. By I guess you could also get up-to-date ubuntu packages for django from a ppa in launchpad, but it's not something I

Re: Django a Turnkey Linux -- I need your experience.

2011-12-15 Thread Petr Přikryl
Thanks Nick,   By the 'application' I mean another part of the Django installation/project that does some specific function. Thanks for telling me that the wsgi_handler.py is the ".wsgi" file that I was searching for ;)   Do you have any experience with updating the version of Django?   Petr --

Re: Django a Turnkey Linux -- I need your experience.

2011-12-15 Thread Petr Přikryl
Thanks, Brett,   "Brett Epps" wrote... You'll need to do some research to find out how Turnkey Linux deploys your Django app.  There are multiple methods, but> the one recommended in the Django docs is to use Apache + mod_wsgi.> If Turnkey Linux uses this method, Apache should be configured

mobile sitemap

2011-12-15 Thread het.oosten
Google recommends to add to every entry in a mobile sitemap. Who can help me with this? -- 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

django south and new installed app how to?

2011-12-15 Thread Gijsbert de Haan
Hi, I have an existing django project with south enabled using buildout. Now I want to add a new egg to get and install another django application for my project, this new application needs models, and thus needs tables to be created. My question: is it possible to have these tables created via

Re: Website Documentation Search broken?

2011-12-15 Thread Jacob Kaplan-Moss
On Wed, Dec 14, 2011 at 8:36 PM, kenneth gonsalves wrote: > it is using the default sphinx search which is limited to one word > searches. That's true of the documentation you build locally, but the search on docs.djangoproject.com uses Haystack with the Xapian search

Iterable check boxes

2011-12-15 Thread CrabbyPete
According to the documentation I can iterate radio buttons {% for radio in myform.beatles %} {{ radio }} {% endfor %} I want to do the same for checkboxes, but get TemplateSyntaxError Exception Value: Caught TypeError while rendering: 'BoundField' object is not iterable My field is class

django-mptt-comments app error

2011-12-15 Thread cmc
I am trying to use `django-mptt-comments` app on my django project however I'm running into problems when I try posting a comment. I get the error : `AttributeError: 'NoneType' object has no attribute 'level'` Here is the traceback: https://gist.github.com/1481179 You will notice in the

Django 1.2.1 strange problem

2011-12-15 Thread Sells, Fred
I've got an older app that's been running in production for about 2 years on RedHat 4, MySQL 5.0.77 with MyISAM tables, Django 1.2.1 and Python 2.4. This app is used heavily by internal users, which is a relatively light load compared to public sites. I actually use Flex for the client side

Re: Decorator aware Django

2011-12-15 Thread Bernardo
> @app.route("/") > def hello(): > return "Hello World!" That's not what I want to do. I like how views are handled, but I wanted a easier way to render data from multiple return points in a same function without calling another thing multiple times... > Now I have to overcome this feeling

Re: Exception Value: auth() takes exactly 1 argument (0 given)

2011-12-15 Thread Ahmet Emre Aladağ
> 'django.contrib.auth.context_processors.auth' is not an auth backend, > it is a context processor, and should be in > TEMPLATE_CONTEXT_PROCESSORS. > > https://docs.djangoproject.com/en/dev/topics/auth/#specifying-authent... Thank you very much, seems like mistakenly duplicated that part.

Re: Raise validation error for empty formset

2011-12-15 Thread Tom Evans
On Wed, Dec 14, 2011 at 9:22 PM, Martin Tiršel wrote: > Hi, > > I have a formset where I need to raise ValidationError if all forms in this > formset are empty and submitted but I can not find any useful informations. > Any suggestions? > To control validation on a formset,

Re: Exception Value: auth() takes exactly 1 argument (0 given)

2011-12-15 Thread Tom Evans
2011/12/15 Ahmet Emre Aladağ : >> Can you show what the value of settings.AUTHENTICATION_BACKENDS is? >> >> Cheers >> >> Tom > > Hi, > > AUTHENTICATION_BACKENDS = ( >        'django.contrib.auth.context_processors.auth', >        

Re: Exception Value: auth() takes exactly 1 argument (0 given)

2011-12-15 Thread Ahmet Emre Aladağ
> Can you show what the value of settings.AUTHENTICATION_BACKENDS is? > > Cheers > > Tom Hi, AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.context_processors.auth', 'django_facebook.auth_backends.FacebookBackend', ) Thanks, -- You received this message because you are