I believe that this list is not for this kind of topic.
When you put this kind of topic as [Off topic]
Cheers,
Thiago Avelino
On Tue, Feb 5, 2013 at 2:33 PM, salah D.J wrote:
> i have a web provisioning project
> and i need developer to to install it and change some
I think you are on the right track with the jquery setup for handling the
submission of the form. What you need to implement here is an AJAX form.
I would do something like this, although I don't necessarily know what I'm
doing:
$(document).ready(function () {
var form = $("#gpio_form")
var
i have a web provisioning project
and i need developer to to install it and change some features
we can make deal
send to me: i...@gahmi-tel.net
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
I also have a javascript file, but I'm not quite sure what to out in
it..
function gpio_submit(){
$("#gpio_results").load("/control_page");
return false;
}
$(document).ready(function () {
$("#gpio_form").submit(gpio_submit);
});
On Monday, February 4, 2013 11:12:27 PM UTC-5,
I'm controlling the GPIO pins on a raspberryPi that is running a Django web
app. I have a form with only one button that is "On" or "off", it writes
this to a database. The Button's value has to display the current status
"On" or"off".
So I need to be able to update the value of the button in
Try something like this.
(work so good with me, i have win 7, virtualhost in wamp and wsgi.
*apache - httpd:*
*modules:*
LoadModule wsgi_module modules/mod_wsgi.so
*virtual host*
ServerAdmin root@localhost
DocumentRoot "D:/htdocs"
ServerName localhost
#RewriteEngine on
Do you have an "Allow" directive for the appropriate directory?
http://httpd.apache.org/docs/2.0/mod/mod_access.html#allow
_Nik
On 1/12/2013 10:27 AM, Kanai Lomayani wrote:
> I have managed to install mod_wsgi on apache and django when i try to
> access the django address I get this error
>
I have managed to install mod_wsgi on apache and django when i try to
access the django address I get this error
*[Sat Jan 12 20:29:59 2013] [error] [client 127.0.0.1] client denied by
server configuration: C:/xampp/locksmith/locksmith/django.wsgi*
my scriptalias : *WSGIScriptAlias /locksmith/
January 10, 2013 2:53:35 PM UTC-5, Nikolas
> Stevenson-Molnar wrote:
>
> From there, it should just be configuration. What errors
> are you seeing?
>
> _Nik
>
> On 1/10/2013 10:59 AM, 7equiv...@gmail.com wrote:
>
using on configuring mod-wsgi to work with
>> apach or configuring mod-wsgi to work with Django. I'm sure there are steps
>> for both that need to be taken
>>
>>
>> On Thursday, January 10, 2013 2:53:35 PM UTC-5, Nikolas Stevenson-Molnar
>> wrote:
>>
gi to work with Django. I'm sure there are steps
> for both that need to be taken
>
>
> On Thursday, January 10, 2013 2:53:35 PM UTC-5, Nikolas Stevenson-Molnar
> wrote:
>
>> From there, it should just be configuration. What errors are you seeing?
>>
>> _
> seeing?
>
> _Nik
>
> On 1/10/2013 10:59 AM, 7equiv...@gmail.com wrote:
> > Hello, I need help configuring the Apache production server to work
> > with Django on a Rapberry pi. I am still new to Linux. Here is what
> > I've done so far.
jango. I'm sure there are steps
for both that need to be taken
On Thursday, January 10, 2013 2:53:35 PM UTC-5, Nikolas Stevenson-Molnar
wrote:
>
> From there, it should just be configuration. What errors are you seeing?
>
> _Nik
>
> On 1/10/2013 10:59 AM, 7equiv...@gmail.co
wrote:
> Hello, I need help configuring the Apache production server to work
> with Django on a Rapberry pi. I am still new to Linux. Here is what
> I've done so far.
>
> (1) I have successfully installed Apache on my Raspberry pi. I have
> used it to serve up php webpages.
> (2
>From there, it should just be configuration. What errors are you seeing?
_Nik
On 1/10/2013 10:59 AM, 7equivale...@gmail.com wrote:
> Hello, I need help configuring the Apache production server to work
> with Django on a Rapberry pi. I am still new to Linux. Here is what
> I've
Hello, I need help configuring the Apache production server to work with
Django on a Rapberry pi. I am still new to Linux. Here is what I've done so
far.
(1) I have successfully installed Apache on my Raspberry pi. I have used it
to serve up php webpages.
(2) I have successfully installed
On Wed, Nov 21, 2012 at 8:58 AM, Luisa Beck wrote:
> Thank you for your thoughts! I have a few follow-up questions:
>
> *The reason that I’m trying to figure out postgres is that I’m helping
> some folks with a development project and they’re using postgres. I’m
> trying to
*On 11/21/12 5:58 AM, Luisa Beck wrote:**
*
*Thank you for your thoughts! I have a few follow-up questions: *
*
*
*The reason that I’m trying to figure out postgres is that I’m helping
some folks with a development project and they’re using postgres. I’m
trying to do the tutorial with that so
Thank you for your thoughts! I have a few follow-up questions:
*The reason that I’m trying to figure out postgres is that I’m helping some
folks with a development project and they’re using postgres. I’m trying to
do the tutorial with that so that I can get familiar with postgres and the
On Mon, Nov 19, 2012 at 6:40 PM, Luisa Beck wrote:
> Hi, I'm new to web development and I'm trying to get my mac set up for
> doing the tutorials.
> I installed postgres and pgAdmin III and set it up on the default port
> (5433). I created a test database. Now when I try to
Hi, I'm new to web development and I'm trying to get my mac set up for
doing the tutorials.
I installed postgres and pgAdmin III and set it up on the default port
(5433). I created a test database. Now when I try to open it on the local
server, I get an error message: 'ERROR: column
his helps anyone with the same problem.
On Saturday, 14 November 2009 03:58:34 UTC+8, Info Cascade wrote:
>
> Hi --
>
> I need help with a query!
>
> Currently using .extra to do full text query on the article.title field.
>
> art_list = Article.objects.filter
gt;
>>> On Wednesday, 19 September 2012 23:10:35 UTC+5:30, Stephen Anto wrote:
>>>
>>>> Hi,
>>>>
>>>> There are 7 steps only to start your django project..
>>>>
>>>> just visit
>>>> http://www.f2finterview.com/web
s
>
> Thomas Güttler
>
> Am 19.09.2012 18:23, schrieb Enator24:
> > Need Help in setting up goflow, could you please elaborate initial Gflow
> setup please
> > "https://code.djangoproject.com/wiki/GoFlow_Doc; I have been referring
> this setup guide but
Hello
the last update on goFlow is some years ago (sept 2008). This projects looks
dead. If you are new to django, I guess
you will get a lot of errors
Thomas Güttler
Am 19.09.2012 18:23, schrieb Enator24:
Need Help in setting up goflow, could you please elaborate initial Gflow setup
ngo/17/<http://www.f2finterview.com/web/Django/17/>
>>> it
>>> may give you solution. Than you for visiting<http://www.f2finterview.com>
>>>
>>> On Wed, Sep 19, 2012 at 9:53 PM, Enator24 <rohit...@gmail.com> wrote:
>>>
>>>>
w.f2finterview.com/web/Django/17/>
>> it
>> may give you solution. Than you for visiting<http://www.f2finterview.com>
>>
>> On Wed, Sep 19, 2012 at 9:53 PM, Enator24 <rohit...@gmail.com> wrote:
>>
>>> Need Help in setting up goflow, could you please elabora
are 7 steps only to start your django project..
>
> just visit http://www.f2finterview.com/web/Django/17/ it may give you
> solution. Than you for visiting <http://www.f2finterview.com>
>
> On Wed, Sep 19, 2012 at 9:53 PM, Enator24 <rohit...@gmail.com
> > wrote:
>
&
Hi,
There are 7 steps only to start your django project..
just visit http://www.f2finterview.com/web/Django/17/ it may give you
solution. Than you for visiting <http://www.f2finterview.com>
On Wed, Sep 19, 2012 at 9:53 PM, Enator24 <rohitcs...@gmail.com> wrote:
> Need Help in se
Need Help in setting up goflow, could you please elaborate initial Gflow
setup please "https://code.djangoproject.com/wiki/GoFlow_Doc; I have been
referring this setup guide but still having lot of problem. Please let me
know the exact prerequisite after I have install Django.
--
You rec
Dear Kurtis,
I'm brand new to Django and I have a bash and symlink issue I think with
PATH. I cannot run django-admin.py.
I want to take your advice and reinstall use Mac Brew etc. as you mention
below.
Would you mind elaborating on what you explain for an absolute n00b like
myself?
On
If you're using the User model from contrib.auth, you can simply use
User.objects.create_user(username, email=None, password=password). This
will create a new User object, and then call set_password()
# forms.py
class RegistrationForm(form.Form):
username = forms.CharField()
password =
hi every one,
i created one external registration form.. all are
working good, but when we open the admin sit it showing the password as
plain text. how to convert the password into hash formate and save into
database.. can any one suggest for the abovt one
--
http://stackoverflow.com/questions/6383310/python-mysqldb-library-not-loaded-libmysqlclient-18-dylib
solved this error.
Thanks!
On Monday, 9 July 2012 17:57:45 UTC-4, Rajan Chaudhari wrote:
>
> Hello all,
>
> I have installed Django, MySql, phpMyAdmin and python-mysq. I am able to
> create
Hello all,
I have installed Django, MySql, phpMyAdmin and python-mysq. I am able to
create new project. But in next step when I run command python manage.py
syncdb I am geting following error.
File
Nik I was trying to figure out how to make web services on such a way that
I could import the wsdl into an info path form eventually pulling data from
f5 ltm devices. Sort of ambitious I think but djamgo is supposed to be
easy.
Not.
On Friday, July 6, 2012, Nikolas Stevenson-Molnar wrote:
>
Out of curiosity, what is your end-goal with this?
_Nik
On 7/6/2012 12:44 PM, Jeff Silverman wrote:
> Nik, I appreciate your help, but I'm about at the end with this. I'm
> throwing in the towel.
>
> On Jul 6, 1:40 pm, Nikolas Stevenson-Molnar
> wrote:
>> I'm not
Nik, I appreciate your help, but I'm about at the end with this. I'm
throwing in the towel.
On Jul 6, 1:40 pm, Nikolas Stevenson-Molnar
wrote:
> I'm not exactly sure, I usually try to avoid SOAP. But perhaps something
> like
I'm not exactly sure, I usually try to avoid SOAP. But perhaps something
like this? http://www.w3schools.com/soap/soap_example.asp. You'll have
to modify it to match your SOAP app, of course.
Depending on what you're trying to accomplish, SOAP may not be your best
option. I tend to prefer REST,
What should the XML look like?
On Jul 6, 12:03 pm, Nikolas Stevenson-Molnar
wrote:
> Perhaps it's expecting XML in the request and trying to parse your POST data
> (which is not XML)?
>
> _Nik
>
> On Jul 6, 2012, at 6:03 AM, Jeff Silverman wrote:
>
>
>
> > Ok Nik. I
Perhaps it's expecting XML in the request and trying to parse your POST data
(which is not XML)?
_Nik
On Jul 6, 2012, at 6:03 AM, Jeff Silverman wrote:
> Ok Nik. I have removed the CSRF middleware and get a brand new error.
>
> XMLSyntaxError at /hello/
> error parsing attribute name, line
Ok Nik. I have removed the CSRF middleware and get a brand new error.
XMLSyntaxError at /hello/
error parsing attribute name, line 1, column 6Request Method: POST
Request URL: http://piadm42.troweprice.com:/hello/
Django Version: 1.3.1
Exception Type: XMLSyntaxError
Exception Value: error
Yes, I would expect a 403 when the CSRF middleware is active, the
decorator is not used, and no CSRF token is provided. This is the
intended behavior. You can fix this in a few ways:
1. Apply the decorator to the __call__ method (rather than to the class
itself). If I understand how this
Nik, if I remove the csrf decorator and leave the middleware in place, I
get the 403. Is there a way to add the token on the POST command, or is
there another way of leaving the middleware in place, but turn off csrf
without using the decorator?
On Thursday, July 5, 2012 8:33:51 PM UTC-4,
Nik, I will give that a try. The reason for the decorator was that I was
getting 403 forbidden, and the decorator made that one go away. If I
remove the csrf from the settings file, will that solve that problem?
On Tuesday, July 3, 2012 9:32:20 AM UTC-4, Jeff Silverman wrote:
>
> Below is
Try removing the @csrf_exempt decorator (for testing, you can disable
CSRF for the site in your settings file by commenting out the
CsrfViewMiddleware).
_Nik
On 7/5/2012 1:03 PM, Jeff Silverman wrote:
> # soaplib v2.0.0beta2 (from memory)
> # Django v1.3 (stable)
> # NOTE: CSRF middleware has
# soaplib v2.0.0beta2 (from memory)
# Django v1.3 (stable)
# NOTE: CSRF middleware has been turned off!
# For urls.py, see: https://gist.github.com/935812
import soaplib
from soaplib.core.service import rpc, DefinitionBase
from soaplib.core.model.primitive import String, Integer
from
Would you please provide the source for mysite.BDSCheckUser.views?
_Nik
On 7/5/2012 11:37 AM, Jeff Silverman wrote:
> Resulting output,
>
> Help on function DjangoSoapApp in module mysite.BDSCheckUser.views:
>
> DjangoSoapApp(*args, **kwargs)
>
>
> On Jul 5, 2:31 pm, Nikolas Stevenson-Molnar
Resulting output,
Help on function DjangoSoapApp in module mysite.BDSCheckUser.views:
DjangoSoapApp(*args, **kwargs)
On Jul 5, 2:31 pm, Nikolas Stevenson-Molnar
wrote:
> Hmmm, I can't think of what may be happening. One more debug thing to
> try, print the help of
Hmmm, I can't think of what may be happening. One more debug thing to
try, print the help of DjangoSoapApp just before the problem line:
print help(DjangoSoapApp)
That way, if the DjangoSoapApp symbol is getting reassigned to a
function somewhere along the way, that might clue you in.
_Nik
On
I've been flip flopping my views.py between that snippet, and
https://gist.github.com/935809, which is a bit different, but easier
to follow.
On Jul 5, 2:03 pm, Nikolas Stevenson-Molnar
wrote:
> Is your code still the same as you posted
>
Is your code still the same as you posted earlier:
http://djangosnippets.org/snippets/2638/? And the error is occuring on
ln 28?
_Nik
On 7/5/2012 11:01 AM, Jeff Silverman wrote:
> The print output is:
>
>
>
>
> On Jul 5, 1:38 pm, Nikolas Stevenson-Molnar
> wrote:
>>
The print output is:
On Jul 5, 1:38 pm, Nikolas Stevenson-Molnar
wrote:
> Hmmm, not sure about this one. Try printing out the type of
> DjangoSoapApp before that line is called:
>
> print type(DjangoSoapApp)
>
> _Nik
>
> On 7/5/2012 5:20 AM, Jeff Silverman wrote:
>
>
>
Hmmm, not sure about this one. Try printing out the type of
DjangoSoapApp before that line is called:
print type(DjangoSoapApp)
_Nik
On 7/5/2012 5:20 AM, Jeff Silverman wrote:
> Ok, I'm further along, I think. Now I'm getting the following
>
> response = super(DjangoSoapApp,
Ok, I'm further along, I think. Now I'm getting the following
response = super(DjangoSoapApp, self).__call__(environ,
start_response)
(Pdb) p start_response
(Pdb) super(DjangoSoapApp, self).__call__(environ, start_response)
*** TypeError: super() argument 1 must be type, not function
On Jul
Good call. I used Fiddler to generate the POST string, however, I get
no response. It appears to go into the @soap(String, Integer,
_returns=Array(string)) statement and hangs at that point, not
returning.
On Jul 3, 3:47 pm, Nikolas Stevenson-Molnar
wrote:
> Looking at
Looking at the soaplib source, it looks like it required requests to be
made using POST. If you're loading this in a web browser to test, then
you're making a GET request. Try making a POST request (using something
like Fiddler) instead.
http://djangosnippets.org/snippets/2638/
On Jul 3, 2:56 pm, Nikolas Stevenson-Molnar
wrote:
> Would you please provide a reference to the snippet or to your complete
> code? It's hard to understand what's going on from this small bit.
>
> _Nik
>
> On 7/3/2012 11:33 AM,
Would you please provide a reference to the snippet or to your complete
code? It's hard to understand what's going on from this small bit.
_Nik
On 7/3/2012 11:33 AM, Jeff Silverman wrote:
> Thanks for the reply. Removing that did not change the result. Just
> an FYI, but I copied the code
Thanks for the reply. Removing that did not change the result. Just
an FYI, but I copied the code verbatim from the snippet. that's why I
cannot understand what's going on. I continually get the 405 method
not allowed error regardless.
On Jul 3, 1:28 pm, Nikolas Stevenson-Molnar
I'm not sure that this is the problem, but typically constructors should
not have a return value. Try removing the "return" from your
DjangoSoapApp constructor.
_Nik
On 7/3/2012 6:32 AM, Jeff Silverman wrote:
> Below is the code from the views.py
>
> The 405 is retunred from the 'return
Below is the code from the views.py
The 405 is retunred from the 'return super(DjangoSoapApp,
self).__init__(Application(services, tns))' statement. I am using
python 2.6, soaplib20 and django 1.3. I am struggling to understand
what exactly is wrong here.
class
I've been trying for two weeks to implement the highly regarded
django-ratings with zero success.
I've followed all directions, which are not that detailed, and cannot
figure out how to actually present a means for a user to submit a rating
with the template.
There are no directions on how to
+1
Personally, I'd really recommend having virtualbox/vmware instance running
the same stack as your production environment (i.e. the env where you are
going to deploy code to) so you can ensure no horrible sys lib bugs kick in
(lxml is a pain for this!!). But if this is too much to start with,
It's useful to use virtualenv despite a slight learning curve. I didn't do
that at first and now I'm going back and using virtualenv now because I've
learned that the version of Django does matter depending on what you want
to do and it's easier to be able to isolate versions.
i.e. Django1.4
Try "easy_install django" or "pip install django".
Really, though -- I recommend going with a combination of Mac Brew (or
ports or whatever third-party distribution) to install Python and pip then
install virtualenv and virtualenvwrapper to create a virtual environment,
then inside of the virtual
do one thing open ur terminal and run the following command
python
then u will get
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
then type
>>> import django
>>> print django.get_version()
if you have
On Wed, Jun 20, 2012 at 1:49 PM, kenneth gonsalves
wrote:
> On Wed, 2012-06-20 at 13:15 +0200, Diego pascual lopez wrote:
> > > try typing /path_to_django/bin/django-admin.py startproject
> > >
> >
> > If you don't know the path of the django-admin.py, you can type
> >
> >
On Wed, 2012-06-20 at 13:15 +0200, Diego pascual lopez wrote:
> > try typing /path_to_django/bin/django-admin.py startproject
> >
>
> If you don't know the path of the django-admin.py, you can type
>
> #which django-admin.py
it will say 'no django-admin.py'
--
regards
Kenneth Gonsalves
--
HI,
On Wed, Jun 20, 2012 at 1:10 PM, kenneth gonsalves
wrote:
> On Tue, 2012-06-19 at 19:57 -0700, Morris Zeitouni wrote:
> > I just downloaded and installed Django. I am trying to run the command
> > of
> > startproject, but when I type in "django-admin.py startproject
On Tue, 2012-06-19 at 19:57 -0700, Morris Zeitouni wrote:
> I just downloaded and installed Django. I am trying to run the command
> of
> startproject, but when I type in "django-admin.py startproject
> iFriends,"
> Terminal is telling me-" -bash: django-admin.py: command not found."
> Why is
>
Have you tried 'python django-admin.py startproject iFriends'
Make sure your python path installation can be found.
--
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
I just downloaded and installed Django. I am trying to run the command of
startproject, but when I type in "django-admin.py startproject iFriends,"
Terminal is telling me-" -bash: django-admin.py: command not found." Why is
it not understanding the django- admin function?
I am using Mac OS X
Thanks! I think I understand it now!
Mark
On Wed, May 23, 2012 at 8:00 AM, Simone Federici wrote:
> On Wed, May 23, 2012 at 4:40 PM, Mark Phillips > wrote:
>
>> Now, can you please explain why it worked? What does the related_name do
>> and
On Wed, May 23, 2012 at 4:40 PM, Mark Phillips
wrote:
> Now, can you please explain why it worked? What does the related_name do
> and why do I need it?
When you define a ForeignKey, django creates dinamically a reverse
relationship.
take this example:
A
B.a -> A
The related name, basically, specifies a way to back-reference that
particular Team. If you don't specify it, it just uses an
automatically generated variable name (for example, just 'team').
You'd have a conflict because there'd be two 'team' variables
generated in your game class. The method
Thanks, that worked.
Now, can you please explain why it worked? What does the related_name do
and why do I need it?
Thanks!
Mark
On Wed, May 23, 2012 at 7:34 AM, Simone Federici wrote:
> class Game(models.Model):
> game_id = models.IntegerField(primary_key=True)
>
I have two tables - Team and Game.
class Team(models.Model):
team_id = models.IntegerField(primary_key=True)
teamname = models.CharField(max_length=255)
division_id = models.ForeignKey(Division)
class Game(models.Model):
game_id = models.IntegerField(primary_key=True)
On Sun, May 6, 2012 at 9:24 AM, Dennis Lee Bieber wrote:
> On Sun, 6 May 2012 08:16:02 -0700, Mark Phillips
> declaimed the following in
> gmane.comp.python.django.user:
>
> > I have three tables -
> > Person: id, first_name, last_name, deleted,
I have three tables -
Person: id, first_name, last_name, deleted, last_update
Email: id, email_address, email_type
Person_Email: id, person_id, email_id, primary_email
I want to create a view that returns the result of this query as a jason
object:
select person.id, first_name, last_name,
Your Database may very well be setup to Authenticate the Accessing User on
127.0.0.1 and not 'localhost' (or vice-versa). This would be setup in the
database when setting credentials for a user, in the case with MySQL.
On Wed, May 2, 2012 at 9:52 PM, Peter of the Norse <
There is a difference between 'localhost' and the empty string. 'localhost'
translates into 127.0.0.1 and is sent using the internet. The empty string
means to use local sockets for communication. At least with PostgreSQL. (It
might be different with MySQL.)
In short, this is not a bug.
I'm making a survey site with django. I am pretty newbie with django
so I apologize in advance if I can not explain well. My question
focuses on the following models:
class SurveyType(models.Model):
name = models.CharField(max_length=200)
def
I build a model in django (my first, after the tutorial!), and it seems to
be working. I can see the tables in the admin interface and interact with
them. My problem revolves around adding data to the tables. Here is an
example of three tables that I am working on:
class Person(models.Model):
It could be a regression bug.
To be honest, I don't see a reason why '' should become 'localhost'
automagically. I'd much prefer if users were forced to write 'localhost'
rather than having Django do it (and fail) for them.
Explicit is better than implicit.
If you haven't yet, please file a bug
Wow this post is really old but this also solved my problem strangely
enough.
On Thursday, June 25, 2009 2:48:32 PM UTC-4, amy wrote:
>
> I had this same problem...the user and pass were fine but no users
> could authenticate on any DB, regardless of settings.
>
> Turns out my issue was only
I would create a many-to-many relationship between Student and Class
through a custom intermediate model called Grade. You can then add a date
field to Grade and any other extra fields you want.
Read up on m2m relationships here:
I think the Foreign Key route is the way to go. After setting up the fields
on both the Student and Point models and establishing the FK relationship
between the two, you could write a table-level method that returned the
number of corresponding Points.
On Tuesday, March 27, 2012 7:18:12 PM
I have the following in my Student model. I am wanting to track the
date of each point given to each student. The idea would be so that I
could see not only how many points each student has, but also see the
date each point was given. In the future I want to see the trend of
each students' points.
Works like a charm.
Thanks!
Ciao
Enrico
On Feb 21, 11:06 pm, Michael Elkins wrote:
> On Tue, Feb 21, 2012 at 01:10:28PM -0800, Enrico wrote:
> >But your query counts all the books, even the bad ones. I only need to
> >count the good ones...
>
> >For example, if my books are:
On Tue, Feb 21, 2012 at 01:10:28PM -0800, Enrico wrote:
But your query counts all the books, even the bad ones. I only need to
count the good ones...
For example, if my books are:
1. name: LOTR, rating: 10, publisher: A ...
2. name: ASOIAF, rating: 10, publisher: A ...
3. name: Twilight,
Thanks Micheal for the response!
But your query counts all the books, even the bad ones. I only need to
count the good ones...
For example, if my books are:
1. name: LOTR, rating: 10, publisher: A ...
2. name: ASOIAF, rating: 10, publisher: A ...
3. name: Twilight, rating 1, publisher: B ...
On Feb 21, 6:11 am, Enrico wrote:
> This query:
> Publisher.objects.filter(book__rating__gt=3.0).annotate(num_books=Count('bo
> ok'))
> returns all the publishers with at least one good book (ranked > 3)
> with annotated the number of good books for each publisher.
>
> How can
I'm having a bit of hard time with aggregation.
For simplicity's sake consider the models available in the aggregation
docs:
https://docs.djangoproject.com/en/1.3/topics/db/aggregation/#
This query:
Publisher.objects.filter(book__rating__gt=3.0).annotate(num_books=Count('book'))
returns all the
On Feb 3, 2:50 pm, ankitrocks wrote:
> Hi.
> Thanks for replying.
>
> The reason I used login/logout multiple times in the urls.py because
> i was unable to redirect from polls/03/logout to polls/login. When I
> am using href="../logout" , it works but sometimes when I
Hi.
Thanks for replying.
The reason I used login/logout multiple times in the urls.py because
i was unable to redirect from polls/03/logout to polls/login. When I
am using href="../logout" , it works but sometimes when I am in
level-2 in doesnt work.
Please ignore the parameters of poll id in
On Feb 2, 4:57 pm, ankitrocks wrote:
> Please take a look at the following files:
>
> http://pastebin.com/F86G9XJn
>
> http://pastebin.com/p6gArpuG
>
> http://pastebin.com/zxNHVHbV
>
> http://pastebin.com/Rf9Kg9jf
>
> Now my problem is that, I want all the logout links in
Please take a look at the following files:
http://pastebin.com/F86G9XJn
http://pastebin.com/p6gArpuG
http://pastebin.com/zxNHVHbV
http://pastebin.com/Rf9Kg9jf
Now my problem is that, I want all the logout links in the templates
point to polls/login and this change should also be reflected in
On Tuesday, 31 January 2012 18:38:18 UTC, JJ Zolper wrote:
>
> Sam,
>
> Since I'm on Ubuntu know with my Python and Django I'm wondering which
> CPython I should download?
>
> I saw stackless python on the python.org site but I'm not sure if that's
> what CPython version I would need. I thought
Sam,
Since I'm on Ubuntu know with my Python and Django I'm wondering which
CPython I should download?
I saw stackless python on the python.org site but I'm not sure if that's
what CPython version I would need. I thought there was a standard CPython?
Any help about my interpreter for Python
501 - 600 of 1138 matches
Mail list logo