Re: RuntimeWarning: DateTimeField Task.start received a naive datetime (2014-07-21 07:39:14) while time zone support is active. RuntimeWarning)

2014-07-10 Thread Mike Dewhirst
On 11/07/2014 1:44 PM, Neto wrote: Hi guys, I need a help here: *settings.py* TIME_ZONE = 'America/Sao_Paulo' *view.py:* task = Task.objects.get(id=id) task.start = request.GET['task_start'] tarefa.save() Terminal: RuntimeWarning: DateTimeField Task.start re

RuntimeWarning: DateTimeField Task.start received a naive datetime (2014-07-21 07:39:14) while time zone support is active. RuntimeWarning)

2014-07-10 Thread Neto
Hi guys, I need a help here: *settings.py* TIME_ZONE = 'America/Sao_Paulo' *view.py:* task = Task.objects.get(id=id) task.start = request.GET['task_start'] tarefa.save() Terminal: RuntimeWarning: DateTimeField Task.start received a naive datetime (2014-07-21 07:39

Re: Tests in 1.6

2014-07-10 Thread Russell Keith-Magee
On Fri, Jul 11, 2014 at 3:34 AM, Larry Martell wrote: > I am trying to upgrade a site to 1.6. I read the change notes about > the tests now having to start with test. > > My project's structure is this: > > myproj/app/appname/tests > > and in that dir was a file called EventLog.py, and in that fi

Re: Contacts

2014-07-10 Thread Lachlan Musicman
Oh I see what I've done wrong - I presumed it would come with templates and etc. Ok, thanks L. On 10 July 2014 16:06, Esau Rodriguez wrote: > You need to import classes from models. Try from contacts.models import > Person (or any other class). > > Regards, > Esau Rodriguez. > > El 10/07/2014 0

Advanced Query / Django Idiocy Question

2014-07-10 Thread G Z
Hello, I'm running a very complicated query against oracle to return some data. I'm running it manually because django can't natively do what I am doing from what I have read. I run the query but django doesn't get any values in return. I recently switched from my dev database to my production

Tests in 1.6

2014-07-10 Thread Larry Martell
I am trying to upgrade a site to 1.6. I read the change notes about the tests now having to start with test. My project's structure is this: myproj/app/appname/tests and in that dir was a file called EventLog.py, and in that file a function called EventLogTest My __init__ had: from myproj.app.

SVG attribute is not transformed

2014-07-10 Thread Stodge
I'm adding map data from a new source that needs to be projected so I transform the query set like this: q = Polyline.objects.filter(overlay='63979e90-a578-4d18-af0a-8bd75279d923').transform(93997).svg() The resulting SVG attribute isn't transformed. The documentation says: Attaches a SVG at

django admin

2014-07-10 Thread Lee
I don't want to come across as unhelpful but people will really appreciate it if you at least try the following: 1) Properly and clearly describe your problem 2) At least show what you've done so far to try to resolve it 3) Accept and action guidance those here have been kind enough to provide it

Issue with "Creating forms from Modules"

2014-07-10 Thread Don Fox
While typing in the code in https://docs.djangoproject.com/en/1.7/topics/forms/modelforms/ I get a a Name Error that doesn't seem related to any omitted import module. I'm running this is the shell that has the settings* './manage.py shell' * where I have a project reflecting this particular t

Re: Some creating Forms from models snags.

2014-07-10 Thread Don Fox
Problem went away after PyCharm indicated that two imports be removed? Not really sure whet the problem was! On Wednesday, July 9, 2014 12:09:40 AM UTC-4, Lachlan Musicman wrote: > > On 9 July 2014 13:19, Don Fox > wrote: > > > > > > I should have mentioned that I already had this method in th

django admin

2014-07-10 Thread ngangsia akumbo
how do i display the delete button on the admin so that it should not be a drop down button -- 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+unsubsc

How to sort by many custom methods in Django Admin

2014-07-10 Thread 9devmail
I want to be able to sort by several custom methods in Django Admin. This question on StackOverflow provides solution for one method only. I tried to modify it: from

Re: django beginner

2014-07-10 Thread ngangsia akumbo
sorry i saw what am looking for Thanks On Thursday, July 10, 2014 9:33:25 AM UTC+1, ngangsia akumbo wrote: > > > > This tutorial does not tell me how to place multiple apps on a webpage. it > is just a single app tutorials. > > i have created more than 5 apps how do i display them to be on one we

Re: django beginner

2014-07-10 Thread ngangsia akumbo
This tutorial does not tell me how to place multiple apps on a webpage. it is just a single app tutorials. i have created more than 5 apps how do i display them to be on one web page cos each of the have their individual templates -- You received this message because you are subscribed to t

Re: django beginner

2014-07-10 Thread Lachlan Musicman
https://docs.djangoproject.com/en/1.6/intro/tutorial01/ cheers L. On 10 July 2014 18:16, ngangsia akumbo wrote: > can u post the link again cos i have completed some tutorials on articles > from django docs > > -- > You received this message because you are subscribed to the Google Groups > "Dja

Re: django beginner

2014-07-10 Thread ngangsia akumbo
can u post the link again cos i have completed some tutorials on articles from django docs > -- 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+unsub

Re: django beginner

2014-07-10 Thread ngangsia akumbo
On Thursday, July 10, 2014 9:02:10 AM UTC+1, somecallitblues wrote: > > You mentioned that you haven't completed a tutorial. You should because > this stuff is in it. Your questions are too broad and covered in docs and > other material on the web. Google is your bro :) > On 10/07/2014 5:52 pm,

Re: django beginner

2014-07-10 Thread Mario Gudelj
You mentioned that you haven't completed a tutorial. You should because this stuff is in it. Your questions are too broad and covered in docs and other material on the web. Google is your bro :) On 10/07/2014 5:52 pm, "ngangsia akumbo" wrote: > it is not working thanks bro > > > > > i have one mo

Re: django beginner

2014-07-10 Thread ngangsia akumbo
it is not working thanks bro i have one more question. I have created a series of apps for my project. like services, contact, news ,booking app for my hotel site. i created their individual individual templates for each of them and extended it to the base.html, they are all working fine. my