Hey Sivaram,
Here fav_color is just a a variable and you are putting the value of what
is in request.session['fav_color'] into it
and request.session['fav_color'] is getting the key/value
so think of it this way
request {
'session' : { 'fav_color' : 'GREEN' }
}
you a
On Tue, Jul 9, 2013 at 7:02 PM, Bob Barcklay wrote:
> I want to use contextual markers and plural forms in strings with deferred
> translation. I'm curious why _noop versions of pggettext and npgettext
> don't appear anywhere.
What do _noop-suffixed version(s) of gettext function(s) have to do w
I want to use contextual markers and plural forms in strings with deferred
translation. I'm curious why _noop versions of pggettext and npgettext
don't appear anywhere. My plan is to modify the xgettext invocation found
in django/core/management/commands/makemessages.py to include new
--keywo
1) I've been using Factory Boy to create test data rather than fixtures.
It is so much easier to ensure that I know exactly what data is available
for a given test.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this grou
Also note that Django 1.6 will bring a better test discovery mechanism. See
the full details at
https://docs.djangoproject.com/en/dev/releases/1.6/#discovery-of-tests-in-any-test-module
Django 1.6 ships with a new test runner that allows more flexibility in the
> location of tests. The previous
2013/7/6 Harjot Mann :
> Can we use Phonetic algorithm in django for ignoring vowels while
> searching and for spell checking?
You can try with Fuzzy[0] or you can use a search engine like solr[1]
with haystack[2]
[0] - https://pypi.python.org/pypi/Fuzzy
[1] - http://lucene.apache.org/solr/
[3]
On 09/07/13 15:40, amanjot kaur wrote:
>
>
>
> There are many python plotting libraries. I usually use matplotlib
> because my plots tend to be quite technical.
>
>
> I also tried to use matplotlib but I think it is filereadable but my
> requirements are to add values from front end and t
>
>
> There are many python plotting libraries. I usually use matplotlib
> because my plots tend to be quite technical.
>
I also tried to use matplotlib but I think it is filereadable but my
requirements are to add values from front end and then with one click graph
will be ceated on these v
Add an icon "not displayed on website" to certain fields on Admin interface.
The best idea would be to override Fields properties without touching the
code of it. (for example : on an external app)
How to do that properly?
--
You received this message because you are subscribed to the Google G
On 09/07/13 14:07, Nafiul Islam wrote:
> How would you create a node using Django's ORM. This is what I
> mean: https://dpaste.de/JG52c/
>
> Now, what I am basically trying to create is a liked list with nodes here.
>
Nafiul,
>From your code snippet, it looks like you are trying to create a tree.
Nafiul,
Either dig into the django-mptt code and pull out the bits you need, or
look at MPTT and roll your own.
http://www.sitepoint.com/hierarchical-data-database-2/ has a reasonable
explanation (with code written in some archaic script ;) ) of how MPTT
works.
John
On 09/07/13 14:26, Gamesbrai
On 09/07/13 14:30, amanjot kaur wrote:
> Please suggest me some module/library in django to plot graphs which
> takes input from user. --
Amanjot,
There are many python plotting libraries. I usually use matplotlib
because my plots tend to be quite technical.
John
--
You received this message be
my code is
HTML:
* *
**
**
* {% block title %}{% endblock %}*
* *
* *
* {% block content %}{% endblock %}*
* *
* {% csrf_token %}*
* *
* Submit*
* *
**
*
*
Views:
*def upload(request, id):*
*
*
*if request.method == 'POST':*
**
*my_painting = Movie.objects.get(id=id)*
Please suggest me some module/library in django to plot graphs which
takes input from user.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr
Thanks for answering, but is there a simple way that does not use a
third-party library? I'd like to have as much control over this as possible.
On 9 July 2013 19:11, Elliot Bradbury wrote:
> Check out django-mptt for creating parent/child (tree) relationships
> between models. https://github.c
On Tuesday, 9 July 2013 14:16:59 UTC+1, Hélio Miranda wrote:
> ah yes, it was me who got sick. But the code is correct
>
You really need to post your actual code. There are at least two other
errors there ( *.get = (id = id) *and * **request.FILES.getlist*) which
mean your code would not run. S
Hi,
I want to add to some fields a little icon "not display on website" in my
Admin interface.
What the best way to do this?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, sen
ah yes, it was me who got sick. But the code is correct
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to thi
Check out django-mptt for creating parent/child (tree) relationships
between models. https://github.com/django-mptt/django-mptt
On Tue, Jul 9, 2013 at 9:07 AM, Nafiul Islam wrote:
> How would you create a node using Django's ORM. This is what I mean:
> https://dpaste.de/JG52c/
>
> Now, what I am
How would you create a node using Django's ORM. This is what I mean:
https://dpaste.de/JG52c/
Now, what I am basically trying to create is a liked list with nodes here.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this g
Any example of how to do this or any link that can help me with that?
On Tuesday, July 9, 2013 3:00:04 PM UTC+3, Giorgos Kontogiorgakis wrote:
>
> Hello everyone!
>
> I am trying to add a button or a URL on my main admin Django interface so
> i can call a script from this button/url without exec
You have
*Csrf_token% {%}
*
shouldn't it be
*{% csrf_token %}*
???
Regards,
Nigel Legg
07914 740972
http://www.treavnianlegg.co.uk
http://twitter.com/nigellegg
http://uk.linkedin.com/in/nigellegg
On 9 July 2013 13:10, Hélio Miranda wrote:
> Good!
> I'm having a strange problem, which is
Good!
I'm having a strange problem, which is this, I have uploaded all ok and
working.
HTML:
* *
**
* *
*{% block title%} {% endblock%} *
* *
* *
*{% Block content%} {% endblock%}*
* *
* Csrf_token% {%}*
**
* Submit *
* *
**
Views:
*def upload (request, id):*
*
*
* if reque
Probably you've to edit the admin base template, only this.
2013/7/9 Giorgos Kontogiorgakis
> Hello everyone!
>
> I am trying to add a button or a URL on my main admin Django interface so
> i can call a script from this button/url without executing this by
> terminal/command line.Is there any e
I was going to look at Django Chartit -
http://chartit.shutupandship.com/for this, unless anyone has better
suggestions?
Regards,
Nigel Legg
07914 740972
http://www.treavnianlegg.co.uk
http://twitter.com/nigellegg
http://uk.linkedin.com/in/nigellegg
On 9 July 2013 08:39, amanjot kaur wrote:
>
Hello everyone!
I am trying to add a button or a URL on my main admin Django interface so i
can call a script from this button/url without executing this by
terminal/command line.Is there any easy way to do this?I am pretty new to
Django and python and i had a break on my project for around a m
Please suggest me some module/library in django to plot graphs which
takes input from user.
--
Amanjot Kaur
Blog: kauramanjot35.wordpress.com
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emai
OK. I found the solution and hope this description prevents someone else
from having to deal with this pain in the ass gotcha. "Gotcha" for me
anyhow :)
So if your ajax target resides in the urls.py of some module somewhere (in
this case persistent_messages)
and your referencing it from an SSL
Is there a way to adjust the "Select Object to change" text shown above
table in change lists?
I ran across some similar posts that opted to modify the django core for
this adjustment, but I was wondering if
a cleaner solution has become available for django 1.5.1.
Thanks
--
You received this
On 2013-07-08, at 13:26 , Hélio Miranda wrote:
> ok, I have my view like this:
> *def view(request, id):*
> *fs = mongoengine.fields.GridFSProxy()*
> *foto = fs.get(id=ObjectId(id))*
> *legenda = foto.legend*
> **
> *array = [foto.read(), legenda]*
> *return HttpResponse(arr
Below is the soundex algorithm in python. I want to implement it in
my search function, please help me how it will work for my search.
http://tny.cz/8d5ba06f
--
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
--
You received this message because you are subscribed to the Google Groups
31 matches
Mail list logo