matplotlib is without any doubt the best library, you can easily integrate
in django
Op dinsdag 17 december 2013 12:48:00 UTC+1 schreef Nduwimana Audace:
>
> Hi everyone,
> I'm new in Django and would like to know how I can visualize poll result
> by a histogram
>
--
You received this messag
On 18/12/2013 12:05am, Duncan Bates wrote:
Testing django for my next web app, but encountering image library
problems when I've added the django-facebook to my project;
ImproperlyConfigured: Neither Pillow nor PIL could be imported: No
module named Image
I installed pre-compiled Pillow from ..
No, you don't need to migrate your site (although, after using Python and
Django you might just want to...). An API should return responses that are
generic in format, so any type of client (PHP, C++, Obj-C, etc.) can
consume them (without knowing or needing to know what the API is written
in).
To
Hey!
I have recently created a website, using PHP. No framework or anything
else was used, just code.
Now, I need to make an API for this website. It was suggested that I use
Django as a framework. I was hoping to just be able to make an API in
Python, using Django, without having to move m
Oh, ok. You can do it from the other side then.
#32 is replaced with the User id you are interested in
User.object.filter(friendship__friend__pk = 32, friendship__status__in =
[Friendship.FRIEND, Friendship.FAVORITE])
On Tuesday, December 17, 2013 11:53:11 AM UTC-6, Arthur Silva wrote:
>
> Thank
Thanks for your reply.
Your suggestion works but I need the friends (User models) of a given user
(User model) in this case.
This join (friends of an user) is also used at several other places to get
stuff (comments for example) made by friends of an user.
--
Arthur Pires Ribeiro Silva
Universidad
On Tuesday, December 17, 2013 2:05:08 PM UTC+1, Duncan Bates wrote:
>
> Testing django for my next web app, but encountering image library
> problems when I've added the django-facebook to my project;
> ImproperlyConfigured: Neither Pillow nor PIL could be imported: No module
> named Image
>
>
Why not just Friendship.objects.filter(user__pk = 32, status__in =
[Friendship.FRIEND, Friendship.FAVORITE]) That will give you a QuerySet of
all the friendships a user has. If you just want the list of friends then
extend that query with a values_list like so:
Friendship.objects.filter(user__p
I have implemented the idea to create a class-based applications (like
AdminSite).
https://pypi.python.org/pypi/django-edamame
--
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, se
On Tue, Dec 17, 2013 at 3:00 PM, bobhaugen wrote:
> That's interesting, but how about making it free for open-source apps who
> give you a credit on their repos?
Why not just use selenium, then you can use it to test both your open
source sites and ones that you write for a living.
Cheers
Tom
I wonder if the OP is calling the forward slashes (of just slashes or
solidus) in his example with back slash (reverse solidus), like much of the
media does (curse Microsoft for using back slash as a path separator). The
%2F of which he speaks does go with slash. (Back slash would be %5C.)
Url-q
I suspect restarting your Web server will fix it as you'll get fresh
connections. What is your CONN_MAX_AGE?
On Dec 17, 2013 4:57 AM, "Pavel Lurye" wrote:
> Hi,
> does anyone have used django1.6 persistent connections with postgresql?
> I've done a simple test and I'm not sure, that django behave
That's interesting, but how about making it free for open-source apps who
give you a credit on their repos?
On Tuesday, December 17, 2013 1:26:05 AM UTC-6, Michael Herrmann wrote:
>
> On Monday, December 16, 2013 1:54:01 PM UTC+1, rush wrote:
>>
>>
>> According to http://heliumhq.com/files/heli
If the histogram is something you'd like to be viewable in a browser, check
out D3: http://d3js.org/
If you don't need a browser, then matplotlib could serve your needs:
http://matplotlib.org/
JDB
On Tue, Dec 17, 2013 at 4:48 AM, Nduwimana Audace wrote:
> Hi everyone,
> I'm new in Django and wo
I want to query the friends of an User but I'm struggling to get the
correct query.
Models:
class User(AbstractUser, TimestampedModel, SerializeMixin):
city = models.CharField(max_length=60, blank=True)
picture = models.URLField(blank=True)
cover_picture = models.URLField(blank=True
I installed Pillow a few days back - it went fine.
$pip install Pillow
You need to make sure that you have libraries for png/jpg available. I am
not sure if that has to be a pip or a sudo apt-get ( i went the apt-get way
)
V.
On Tue, Dec 17, 2013 at 6:35 PM, Duncan Bates wrote:
> Testing dja
On Tue, Dec 17, 2013 at 2:26 AM, Michael Herrmann
wrote:
> On Monday, December 16, 2013 1:54:01 PM UTC+1, rush wrote:
>>
>>
>> According to http://heliumhq.com/files/helium_license.txt it is not.
>>
>> Furthermore it is not free. According to their price page you have to pay
>> at least 200 euro p
Testing django for my next web app, but encountering image library problems
when I've added the django-facebook to my project; ImproperlyConfigured:
Neither Pillow nor PIL could be imported: No module named Image
Using python v2.7 win64 / Django 1.6, and Microsoft Python Tools for Visual
Studio
seems like you didn't go to /admin/ but /
On Monday, December 16, 2013 10:42:59 PM UTC+2, Yuqi Wang wrote:
>
> I think I did every step before this, the tutorial says there should be
> the admin's login screen (fig 1 below), but the screen I got was the same
> as it was when no Django project wa
Hi everyone,
I'm new in Django and would like to know how I can visualize poll result by
a histogram
--
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-use
I have started creating a personal expenses django app to learn python...
So far, I have written some models for categories, transactions, scheduled
transactions (for example re-occuring bills), type of accounts etc. And I
am stuck :)
What I am trying to do is to display all transactions in an ht
Hi,
does anyone have used django1.6 persistent connections with postgresql?
I've done a simple test and I'm not sure, that django behaves correctly.
Django can't recover after DB restart, and all further db requests lead to
server error:
---
Traceback (most recent call last):
File
"
On Tue, Dec 17, 2013 at 10:15 AM, Vitaly wrote:
> Hi
>
> I got an some incorrection in reverse behaviour.
>
> From django docs
>
> The string returned by reverse() is already urlquoted. For example:
>
reverse('cities', args=[u'Orléans'])
> '.../Orl%C3%A9ans/'
> Applying further encoding (such
I will try this out also. Thanks!
On Tue, Dec 17, 2013 at 1:57 PM, Arnold Krille wrote:
> Hi,
>
> define related names in ProjectMember:
>
> class ProjectMember(models.Model):
> project = models.ForeignKey(Project, related_name='members')
> member = models.ForeignKey(User)
> added_o
This seems to be working with a slite modification. the _set was giving an
error. So, I changed to :
Project.objects.filter(projectmember__member=request.user)
I am not sure if that will just return 1 result or all the results. I have
to check that out.
Vibhu
On Mon, Dec 16, 2013 at 11:26 PM,
Hi
I got an some incorrection in reverse behaviour.
>From django docs
The string returned by reverse() is already urlquoted. For example:
>>> reverse('cities', args=[u'Orléans'])
'.../Orl%C3%A9ans/'
Applying further encoding (such as urlquote() or urllib.quote) to the output of
reverse() may
Hi,
define related names in ProjectMember:
class ProjectMember(models.Model):
project = models.ForeignKey(Project, related_name='members')
member = models.ForeignKey(User)
added_on = models.DateTimeField()
The full query to get all Projects the User is either member or leader:
Proje
27 matches
Mail list logo