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
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
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
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
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
> 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
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
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 =
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 *
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
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
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
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]
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
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
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
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
--
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
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
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
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
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
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
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
> @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
> '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.
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,
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',
>
> 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
29 matches
Mail list logo