How do I know if a celery task has crashed?

2014-01-28 Thread Mike
I have a model that looks something like this: Job(models.Model): status = models.CharField(max_length=8, choices = statuses) jobid = models.CharField(max_length=20, db_index=True) ... I submit tasks to celery. The task fetches the Job object, changes its status to RUNNING, does the

Re: can't compare datetime.datetime to datetime.date

2014-01-28 Thread Rafał Szymański
Thank You so much. Best wishes Rafal W dniu poniedziałek, 27 stycznia 2014 15:43:59 UTC+1 użytkownik i...@simpler.co napisał: > > You're comparing pub_date, which is a datetime.date, to timezone.now(), > which is a datetime.datetime. Check the docs at > http://docs.python.org/2/library/datetime

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread Mike Dewhirst
On Monday, January 27, 2014 5:44:12 PM UTC-5, damond...@gmail.com wrote: Hi, I would like to know if this community is somewhat worried about the future relevance of Django (and other purely server-side MV* Python web app frameworks such as web2py for that matter) given the curr

Commercial Django e-commerce products

2014-01-28 Thread Alex Strickland
Hi Can anyone suggest any commercial Django e-commerce products? -- Regards Alex -- 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...@googl

Re: Commercial Django e-commerce products

2014-01-28 Thread Sergiy Khohlov
Is this one good for you ? https://www.django-cms.org/en/e-commerce/ Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jan 28, 2014 at 3:39 PM, Alex Strickland wrote: > Hi > > Can anyone suggest any commercial Django e-commerce products? > > -- > Regards > Alex > > -- > You received t

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread graeme
On Tuesday, January 28, 2014 1:00:31 PM UTC+5:30, Avraham Serour wrote: > > you will eventually need to keep a couple of different codebases in some > different languges. > Say you get popular enough and now you need to launch a desktop app, > android and iphone. > Take dropbox for example, they

Implementing detailed access rights for users of different elements.

2014-01-28 Thread Anders
Dear Django developers, I need a bit of advice on how to solve an authorization problem. My site is a is still being designed in my mind but think of it as a portal of mini-facebooks (Gang); In each Gang there functions such as write on wall, upload pictures, share links, sell/buy stuff, discuss a

Re: Need Help Moving Database to production server

2014-01-28 Thread Mark Phillips
On Mon, Jan 27, 2014 at 11:51 PM, Mike Dewhirst wrote: > On 28/01/2014 4:51pm, Mark Phillips wrote: > >> I have a django project running on my laptop. I have (finally) managed >> to get it to work with apache on a production server. However, I still >> have a problem. When I access the admin site

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread Cal Leeming [Simplicity Media Ltd]
It makes for an interesting debate and food for thought. Python has a lot of libraries and user contributions which can speed up development, but like every language, has it's good sides and bad sides. Django holds a strong position, libraries such as south, pipeline, mongoengine, uWSGI and the D

Re: Commercial Django e-commerce products

2014-01-28 Thread donarb
On Tuesday, January 28, 2014 5:39:38 AM UTC-8, Alex Strickland wrote: > > > Can anyone suggest any commercial Django e-commerce products? > > The only commercial one written in Django that I know of is WebCube. I know nothing about them, so can't make a suggestion. www.getwebcube.com -- You r

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread James
This is something I've been thinking about myself lately. I'm working on a side project right now that is extremely JS heavy on the client side. I eventually found myself saying screw it, and am now in the process of rewriting the client side using backbone. Django is more or less becoming a re

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread James Turley
I'm not sure I buy this stuff about JS taking over everything. The reason is that client and server are different domains, and we might reasonably expect - even in a pure JS-only shop - people to specialise anyway. Apart from the tiniest start-ups, there isn't really an evolutionary advantage to ha

We're about to start hiring Python/Django developers, where should we advertise?

2014-01-28 Thread Stephen Hawkes
So, Sitting here in our new offices in Solihull (UK), I've exhausted the uni-mates, contacts from past projects, now I need to know where to focus the search next. We're looking for people to help us build apps for our clients, people like Greenpeace, Tearfund, Macmillan and others. One in eve

moving from sqlite3 to mysql

2014-01-28 Thread Malik Rumi
This is somewhat like the question in "need help moving to production server" but I think the right procedure is to start a new thread. So I think I have done well for just starting out. With your help I've gotten Django running on Windows, and I completed a tutorial and got my site working loc

Re: moving from sqlite3 to mysql

2014-01-28 Thread donarb
On Tuesday, January 28, 2014 9:17:32 AM UTC-8, Malik Rumi wrote: > > This is somewhat like the question in "need help moving to production > server" but I think the right procedure is to start a new thread. So I > think I have done well for just starting out. With your help I've gotten > Django

Re: Implementing detailed access rights for users of different elements.

2014-01-28 Thread Malik Rumi
I don't have any solutions for you, but I am VERY interested in the responses, since you describe some of the same issues I will have soon but have not gotten to yet - especially the last one, which I don't think is 'minor' at all. So, how about it, all you experienced users out there? Answer t

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread Cal Leeming [Simplicity Media Ltd]
+1 well said. Cal On Tue, Jan 28, 2014 at 4:59 PM, James Turley < jamesturley1...@googlemail.com> wrote: > I'm not sure I buy this stuff about JS taking over everything. The reason > is that client and server are different domains, and we might reasonably > expect - even in a pure JS-only shop

Django models design for ride share application

2014-01-28 Thread Kannan
I am working on a ride share application. I need help on designing the models for private messages. I have designed the below models, its look like complex in querying them in views. can you guys help me in design a better and easy one! class Ride(models.Model): type = models.BooleanField(def

Re: overlay esri shapefiles from database in googlemap

2014-01-28 Thread Alex Mandel
On 01/26/2014 07:07 PM, jenelyn refamonte wrote: > hello everyone,. i am developing dynamic web mapping application using > geodjango framework.. i already displayed a googlemap as my basemap. It is > for public users not in the admin interface,.. now, i want to > display/overlay my esri shapefi

Re: Need Help Moving Database to production server

2014-01-28 Thread Alex Mandel
On 01/28/2014 08:15 AM, Mark Phillips wrote: > On Mon, Jan 27, 2014 at 11:51 PM, Mike Dewhirst wrote: > >> On 28/01/2014 4:51pm, Mark Phillips wrote: >> >>> I have a django project running on my laptop. I have (finally) managed >>> to get it to work with apache on a production server. However, I s

Re: Need Help Moving Database to production server

2014-01-28 Thread Mark Phillips
On Tue, Jan 28, 2014 at 2:57 PM, Alex Mandel wrote: > On 01/28/2014 08:15 AM, Mark Phillips wrote: > > On Mon, Jan 27, 2014 at 11:51 PM, Mike Dewhirst >wrote: > > > >> On 28/01/2014 4:51pm, Mark Phillips wrote: > >> > >>> I have a django project running on my laptop. I have (finally) managed > >>

moving from sqlite3 to mysql

2014-01-28 Thread Daniel Roseman
You're confusing databases with tables. Django will create the tables for you, but they need a database to go in You need to create that yourself with the simple CREATE DATABASE command in mysql. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users

Re: moving from sqlite3 to mysql

2014-01-28 Thread Ariel E. Isidro
"Or can I create the database, (presumably directly in the shell), and then empty it, as these instructions say, and that will take care of it? I frankly didn't understand why I would need to 'empty' a new and empty database, but that's what it says. " With sql lite, everything will be created for

virtualenv on Windows

2014-01-28 Thread Mike Dewhirst
A little while ago I suggested to someone using Windows to implement virtualenv "later". So I thought I'd document my experience here. In summary, it probably works well if you have Visual Studio. The process outlined below shows a clumsy workaround if you don't. Hope it helps someone Mike

Re: virtualenv on Windows

2014-01-28 Thread Sam Lai
> However, even after downloading from that site they cannot be installed > manually into a virtualenv! Only pip can do that. You can install the packages from http://www.lfd.uci.edu/~gohlke/pythonlibs/ by simply running - pip install ... from inside your virtualenv. Those .exe files are pip-c

Re: virtualenv on Windows

2014-01-28 Thread Mike Dewhirst
On 29/01/2014 2:23pm, Sam Lai wrote: However, even after downloading from that site they cannot be installed manually into a virtualenv! Only pip can do that. You can install the packages from http://www.lfd.uci.edu/~gohlke/pythonlibs/ by simply running - pip install I did try that earlier

Problems with admin.autodiscover()

2014-01-28 Thread Mark Phillips
I have a site built using django 1.6. It runs as expected with runserver on my Debian laptop in a virtual env based on Python 2.7 (development machine). I copied the site to another Debian server (production), created the same virtual environment, and am trying to use Apache and mod-wsgi to serve t