Re: how to make https work in django REST framework

2014-02-11 Thread Luca Corti
On 12/feb/2014, at 00:36, zhenwu he wrote: > Currently I am using Python Django as my REST framework and it could take all > the calls through http. If I want to switch from http to https, what should I > do to make this work? Just issue a redirect to the equivalent HTTPS url from your web serv

how to make https work in django REST framework

2014-02-11 Thread zhenwu he
Hi, There: Currently I am using Python Django as my REST framework and it could take all the calls through http. If I want to switch from http to https, what should I do to make this work? thanks in advance. /zhenwu -- You received this message because you are subscribed to the Google Grou

Re: Using a paginator with two models in the same view

2014-02-11 Thread Some Developer
Ah, I didn't realise that. I think I should be able to do the transformation pretty easily. Thanks for the info that has sorted out a rather irrating problem I have been having. I'll give that a try tomorrow when I have some free time. On 11/02/2014 17:52, C. Kirby wrote: Paginator will work

Re: makemessages error. Please help!

2014-02-11 Thread whitelotus
I think I got it right. I forgot to add quotes for the strings to translate in trans tag. Thank you all. 在 2014年2月11日星期二UTC-6上午8时24分52秒,Loutre写道: > > Well, according to a question on stackoverflow, this message appears when > you don't have any message to translate in your app.. maybe you could

Re: makemessages error. Please help!

2014-02-11 Thread whitelotus
Thank you. It's working now. The strange thing is that I did have strings to translate in the template but without strings to translate in py, it complained like that. When I added something to translate in py, it works. 在 2014年2月11日星期二UTC-6上午8时24分52秒,Loutre写道: > > Well, according to a questio

Re: [JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-11 Thread Cal Leeming [Simplicity Media Ltd]
Hi Marsh, Could you have a read of this thread; https://groups.google.com/forum/#!msg/django-users/q64B4chm1ho/cCp_Xvxu41oJ It has some tips/advice on what to put into a job description, it helps keep the list free of recruiter spam and will ultimately result in better responses for you too :) T

Re: Django admin broken after putting into production

2014-02-11 Thread bhudspeth60
Thank you .collectstatic did the trick... On Tuesday, February 11, 2014 2:39:59 PM UTC-7, Glyn Jackson wrote: > > Silly question, don't be offended, but have you run > collectstaticon > your production server? >> >

[JOB] $1,500 referral reward - Know anyone for Lead Python / Django Developer opening?

2014-02-11 Thread Marsh Sutherland
Hi Djangonauts, Do you know anyone for my client's newly open Lead Python / Django Developer opening? They are a well-funded, stable, and disruptive startup in the Chandler area. If you do, please have them email their resume to me at msutherl...@waldenrecruiting.com AND mention your name

Re: Django admin broken after putting into production

2014-02-11 Thread Glyn Jackson
> > Silly question, don't be offended, but have you run > collectstaticon > your production server? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: heroku better for django?

2014-02-11 Thread Glyn Jackson
If you have a small app it's darn easy. I have personal experience with Amazon AWS which is by far a better choice. I wrote a guide on setup with Django if it helps: http://glynjackson.org/weblog/entry/django-15-deployement-amazon-ec2-ubuntu.html At the end of the day Heroku runs on AWS instance

Re: Translated URL's

2014-02-11 Thread werefrog
Felipe, Well, if you don't prefix your urls with language code, Django will try to match translated urls in the language retained for the session [1] (black-box guessing). I see multiple options, but the following is the less messy and seems to fit your requirements: # myproject.urls from

Re: heroku better for django?

2014-02-11 Thread Daniel Sears
I can't give a qualified opinion of Google App Engine, but you probably want to start with Randall Degges book The Heroku Hacker's Guide . On Tue, Feb 11, 2014 at 9:48 AM, Malik Rumi wrote: > I have been trying to get my django project on Google App Engine

Re: Using a paginator with two models in the same view

2014-02-11 Thread C. Kirby
Paginator will work on any list/tuple of objects, not just querysets. If you have a way to transform your 2 querysets into a single list you can use that as your pagination object. Not knowing enough about your architecture I can't really discuss how you might go about the transformation step.

heroku better for django?

2014-02-11 Thread Malik Rumi
I have been trying to get my django project on Google App Engine without success, including posting my most recent problem on Stack Overflow and getting zero responses (I just reposted that question herein Django Google Groups)

Django default settings module errors

2014-02-11 Thread Malik Rumi
My immediate goal is to port my (first) Django project to Google App Engine. It is running fine in Django’s runserver. However, in the GAE SDK I get nothing but blank white pages. I have looked at the Djangosettings documentation , the d

Django admin broken after putting into production

2014-02-11 Thread bhudspeth60
Hello, after considerable struggle to get my Apache mod-wsgi and httpd.conf configuration correct so that my static files can be accessed, now my admin pages don't workwhile the admin page content loads, I have no css, js, or images...And, the list of my pages will not show up.. *httpd

Re: import

2014-02-11 Thread Johan Hendriks
Johan Hendriks schreef: Hello all. I have a little question, maybe a little stupid but non the less it keeps me busy. :-) I want to start making some web based apps as a hobby project. I have no coding experience other then some basic shell scripting to get some daily routine jobs done on my

Re: makemessages error. Please help!

2014-02-11 Thread Vianney Gremmel
Well, according to a question on stackoverflow, this message appears when you don't have any message to translate in your app.. maybe you could check it ? Le mardi 11 février 2014 15:11:47 UTC+1, whitelotus a écrit : > > Yes it's installed. As follows, I'm using ubuntu12.04. Thanks. > > $sudo ap

Re: Optimizing DB query involving annotate and aggregate

2014-02-11 Thread ST
Managed it in the end, so for reference here is what I ended up with: def total_credit_debt(self): transaction_totals = Transaction.objects.filter(member__isnull=False).values('member').annotate(total=Sum('amount')).order_by() creditors = transaction_totals.filter(total__gt=0)

Re: makemessages error. Please help!

2014-02-11 Thread whitelotus
Yes it's installed. As follows, I'm using ubuntu12.04. Thanks. $sudo apt-get install gettext Reading package lists... Done Building dependency tree Reading state information... Done gettext is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 111 not upgraded. 在 20

Re: import

2014-02-11 Thread Johan Beyers
Hi, Johan, To answer the spirit of your question: Mostly, you will get the correct import locations from the examples you use. Once you're used to Python, you will see that there is a logic to the imports: * You start at wherever your virtualenv stores its site-packages if you use virtualenv, oth

Re: makemessages error. Please help!

2014-02-11 Thread Vianney Gremmel
> > Is gettext installed on your machine ? >> > -- 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 this grou

Re: import

2014-02-11 Thread Manu
Hi Johan, I don't know if you put sometime into learning python. These imports are a way to reuse other modules that already provide some of the functionality that you are trying to achieve. To know the right module to import from and to select the right things to import, you should consult tha

Re: import

2014-02-11 Thread Vineet Naik
+1 for getting yourself familiar with Python first before trying to learn a framework like django. Since you mentioned that you have no significant programming experience, I would like to suggest "Learn Python the hard way" which is free to read online ( http://learnpythonthehardway.org/book/) Re

Re: makemessages error. Please help!

2014-02-11 Thread whitelotus
Hi, Thank you for the help. I did have configured the LOCALE_PATHS in setting.py, which looks: 85 LOCALE_PATHS = ( 86 os.path.join(os.path.dirname(__file__), 'locale').replace('\\', '/'),

Re: import

2014-02-11 Thread Adolphe Cher-Aime
Hi Hendriks, My suggestion to you is to first take a look at the python language it self as Django is as python framework. There's a lot of tutorials out there to help you. When you feel that you understand python, you can come back to django. The good news is you don't have to be a Python expert

Re: import

2014-02-11 Thread Timothy W. Cook
Welcome to the wonderful world of Python. I suggest that you immerse yourself in http://www.greenteapress.com/thinkpython/ and then take this (free) course next month https://www.coursera.org/course/interactivepython before tackling anything like Django. Best, Tim On Tue, Feb 11, 2014 at 8:2

import

2014-02-11 Thread Johan Hendriks
Hello all. I have a little question, maybe a little stupid but non the less it keeps me busy. :-) I want to start making some web based apps as a hobby project. I have no coding experience other then some basic shell scripting to get some daily routine jobs done on my FreeBSD servers. The fir