Re: Why does django default to Chicago time?

2012-02-15 Thread Mario Gudelj
I believe that people who created Django are from there. :) On 16 February 2012 14:46, Roy Smith wrote: > In the default settings.py file, the timezone is set to: > > TIME_ZONE = 'America/Chicago' > > Why? Wouldn't None (to match the server's time zone) be a more sane >

Django 1.4 beta 1 released

2012-02-15 Thread James Bennett
Hot off the presses, it's the first Django 1.4 beta! Blog post with more information is here: https://www.djangoproject.com/weblog/2012/feb/15/14-beta-1/ -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." -- You received this message because you are subscribed to

Re: import problem

2012-02-15 Thread Furbee
Can you reply with the actual NameError Exception? Like: NameError: globalname 'datetime' is not defined, or whatever it is. From the module that is throwing this error are you importing anything else that is importing an overridden date method or datetime object? You can also try this (instead

Re: import problem

2012-02-15 Thread DrBloodmoney
On Wed, Feb 15, 2012 at 10:48 PM, Scott wrote: > Hello, > I'm having a strange issue and have already spent an hour trying to > figure it out. > > I created a python app called mn.  Then I setup all my models and > stuff to work under mn.hcp.  Everything has been working

load settings on database

2012-02-15 Thread Anderson Borges
Hey guys I am learning django and I have a question I have a table in my database call SettingsUser so how can I load this table to all views on my application? I do not want past and copy to each function in my view and I don't know if I can load just once before de view is call. thanks. :D

import problem

2012-02-15 Thread Scott
Hello, I'm having a strange issue and have already spent an hour trying to figure it out. I created a python app called mn. Then I setup all my models and stuff to work under mn.hcp. Everything has been working fine until I tried to use date time in a py file in the hcp directory. I've

Why does django default to Chicago time?

2012-02-15 Thread Roy Smith
In the default settings.py file, the timezone is set to: TIME_ZONE = 'America/Chicago' Why? Wouldn't None (to match the server's time zone) be a more sane default? Even setting it to UTC would be more reasonable than setting it to any specific timezone, but surely going with the system

Re: @commit_on_success with Class based view in Django 1.3

2012-02-15 Thread Yann
but on which method of the class view? the post method? On Feb 16, 12:03 pm, Matt Schinckel wrote: > You can use the @method_decorator decorator decorator. > > https://docs.djangoproject.com/en/dev/topics/class-based-views/#decor... -- You received this message because you

Re: Where are the 2+ places user_id is defined?

2012-02-15 Thread Furbee
Did you try Alasdair's answer from the question you posed on StackOverflow ( http://stackoverflow.com/questions/9302434/when-i-try-a-syncdb-where-is-the-duplicate-user-id-error-coming-from )? Syncdb is trying to create a new superuser, but it fails when it creates the related user profile because

Re: Where are the 2+ places user_id is defined?

2012-02-15 Thread Christos Jonathan Hayward
P.S. The source is at http://JonathansCorner.com/project/pim.tgz. On Wed, Feb 15, 2012 at 3:40 PM, Christos Jonathan Hayward < christos.jonathan.hayw...@gmail.com> wrote: > I forgot to specify where. The traceback is on a '''python manage.py > syncdb''', and happens immediately after the

Re: @commit_on_success with Class based view in Django 1.3

2012-02-15 Thread Matt Schinckel
You can use the @method_decorator decorator decorator. https://docs.djangoproject.com/en/dev/topics/class-based-views/#decorating-class-based-views -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Mod_Wsgi + Apache 2.2 + Threads + httplib2

2012-02-15 Thread Graham Dumpleton
On Feb 14, 1:31 am, sbrandt wrote: > mod_wsgi doesn't support print, does it? Its usage should raise an > exception. Yes it does support 'print'. Read: http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output.html Graham -- You received this

Re: Where are the 2+ places user_id is defined?

2012-02-15 Thread Christos Jonathan Hayward
I forgot to specify where. The traceback is on a '''python manage.py syncdb''', and happens immediately after the password is entered twice. On Wed, Feb 15, 2012 at 3:39 PM, Christos Jonathan Hayward < christos.jonathan.hayw...@gmail.com> wrote: > I'm getting an error: > > Traceback (most recent

Re: Need a Django/Python Freelancer (Paid Project)

2012-02-15 Thread creecode
How about a little more detail posted here to the list? General parameters of how the website is to function? Some specs? You might generate more interest with more information. Toodle-l... creecode -- You received this message because you are subscribed to the Google

[ANN]: FeinCMS v1.5.0.rc1

2012-02-15 Thread Matthias Kestenholz
Hello everyone The first release candidate of FeinCMS v1.5 has just hit the streets, late as always. The release is available at the following places: PyPI: http://pypi.python.org/pypi/FeinCMS Github: https://github.com/feincms/feincms Documentation:

Re: @commit_on_success with Class based view in Django 1.3

2012-02-15 Thread Yann
Thanks. But the more important question is how to use commit_on_success with class based view? On Feb 16, 1:52 am, 赵帅 wrote: > The commit_on_success decorator only garrentees that one commit is done > when no exception is raised from the function and rollback if there is

Re: What is the best type of wood to use for staking vampires?

2012-02-15 Thread Furbee
Ha ha ha, that's funny! On Wed, Feb 15, 2012 at 12:44 PM, James Pyrich wrote: > On 2/15/12 1:28 PM, Dennis Lee Bieber wrote: > >> On Wed, 15 Feb 2012 11:45:51 -0800, Furbee >> wrote: >> >> Is this posting a zombie? It doesn't seem to ever die no matter

What is the best type of wood to use for staking vampires?

2012-02-15 Thread James Pyrich
On 2/15/12 1:28 PM, Dennis Lee Bieber wrote: On Wed, 15 Feb 2012 11:45:51 -0800, Furbee wrote: Is this posting a zombie? It doesn't seem to ever die no matter what we do to kill it! :-) More like a vampire -- we dispose of it, and then sometime later someone

Re: Need a Django/Python Freelancer (Paid Project)

2012-02-15 Thread yati sagade
can you email me the details? I'm a student in kolkata - I think I'm interested. On Wed, Feb 15, 2012 at 7:15 PM, shahzeb kohari wrote: > Hi all, > > I work for a small company in Mumbai, India. > We need an internal social networking site for our employees. > If any of you

Re: best example/tutorial for AJAX + Django

2012-02-15 Thread Antoni Aloy
You can learn AJAX and learn Django and then mix them together. You can look at Dajaxice project http://www.dajaxproject.com/ it's a good start. 2012/2/15 H.T. Wei : > Hi, > > I am new to Django and searched around for a good example/tutorial about > AJAX + Django but most of

Re: Response problem

2012-02-15 Thread Daniel Roseman
On Wednesday, 15 February 2012 19:02:51 UTC, Hans wrote: > > I'm using a form for my webpage that returns values with simillar key > values. Now for backend compatibility reasons I cannot change the key > variables. > > This is the query dictionary returned from the HTML file. >

best example/tutorial for AJAX + Django

2012-02-15 Thread H.T. Wei
Hi, I am new to Django and searched around for a good example/tutorial about AJAX + Django but most of them were not considered as complete. Can anyone suggest if there is a good (complete) example for learning AJAX + Django? Thanks in advance! -- -- You received this message because you are

Response problem

2012-02-15 Thread Hans
I'm using a form for my webpage that returns values with simillar key values. Now for backend compatibility reasons I cannot change the key variables. This is the query dictionary returned from the HTML file. " whenever i use HttpResponse(request.POST['address1']) it prints out 'bay street' when

Re: what is the best IDE to use for Python / Django

2012-02-15 Thread Furbee
Is this posting a zombie? It doesn't seem to ever die no matter what we do to kill it! :-) Furbee On Wed, Feb 15, 2012 at 10:09 AM, wrote: > ** > @Sanders, nice answer :D, SOL > +adesst > -- > *From: * Thorsten Sanders

Re: what is the best IDE to use for Python / Django

2012-02-15 Thread adesantoasman
@Sanders, nice answer :D, SOL +adesst -Original Message- From: Thorsten Sanders Sender: django-users@googlegroups.com Date: Wed, 15 Feb 2012 17:32:29 To: Reply-To: django-users@googlegroups.com Subject: Re: what is the best IDE

Need a Django/Python Freelancer (Paid Project)

2012-02-15 Thread shahzeb kohari
Hi all, I work for a small company in Mumbai, India. We need an internal social networking site for our employees. If any of you would be interested in 'providing a working set of codes strictly built from Django/Python to setup a social networking site', I would be happy to collaborate with you.

Re: what is the best IDE to use for Python / Django

2012-02-15 Thread Thorsten Sanders
Why this kind of stuff never ends?;( The best IDE is simply the one you can work best with, YOURSELF! On 15.02.2012 16:13, Vikas Ruhil wrote: Vim is best IDE for Python/Django ! look here the link http://learnhackstuff.blogspot.in/2012/02/vim-as-universal-idepart-1.html On Wed, Feb 15, 2012

Django Location- Does anyone know about this?

2012-02-15 Thread coded kid
Hi Guys, Does anyone knows about any good django package for maps? or for locating of areas, states, streets? Please kindly answer if you do. Thanks. BTW: I've tried using Django easy_maps but it's not working. If you've used easy_maps before, kindly comment below. Just want to ask you a few

Re: what is the best IDE to use for Python / Django

2012-02-15 Thread Bastian Ballmann
Hey thats a cool list and I feel like I must answer on it :) Am 01.02.2012 17:43, schrieb Masklinn: On 2012-02-01, at 17:00 , Bastian Ballmann wrote: And what exact feature makes PyCharm an IDE that emacs hasnt? * Semantics navigation (not via tags, it knows to find a class when you want a

Re: Need details re: deletion of a referenced model instance

2012-02-15 Thread Jeff Blaine
> > >> Known Facts: > >> > >> 1. Deleting any Topping object (for example, deleting id=1, > >> name="Pepperoni") also removes it from foopizza.toppings. Good. > >> 2. No m2m_changed signal is sent when 1 (above happens). BAD. > > ... > > Check this out ;) >

Re: IntegrityError while testing

2012-02-15 Thread xina towner
I think the problem is that the testing tool is trying to reset the database and when it tries to truncate this table it can't. Well, I'm pretty sure, but I don't know how to fix it. The table references itself. On 15 February 2012 14:06, 赵帅 wrote: > > Did you delete one

Re: How can I load a custom template filter which is in my project directory ?

2012-02-15 Thread 赵帅
refer to https://docs.djangoproject.com/en/1.3/howto/custom-template-tags/ 2012/2/15 Thomas Rega > Am 14.02.12 21:28, schrieb Nolhian: > > Hello everyone, >> >> In my template I put : >> >> {% load pygmentize %} >> >> But I got : >> TemplateSyntaxError at / >>

Re: IntegrityError while testing

2012-02-15 Thread 赵帅
Did you delete one key or update the key to different values that was referenced by another table as foreign key. 2012/2/15 xina towner > Hello, I get this error when I try to test my app. I'm using mysql. I > think it's when django tries to delete the table. I've tried

Re: Logging from multiple processes

2012-02-15 Thread bruno desthuilliers
On Feb 14, 6:23 pm, JC wrote: > Hey guys, > > Does Django 1.3.1 handle logging from multiple processes or I have to > have some special consideration? Not really a django-specific problem - the problem exists as soon as you have concurrent write access on a same file. The

Re: Admin error

2012-02-15 Thread Stanwin Siow
I did. When admin.autodiscover() was uncommented out, It gives the syntax error when my admin.py was only as such: from r2.models import Keyword from django.contrib import admin admin.site.register(Keyword) Best Regards, Stanwin Siow On Feb 15, 2012, at 5:20 PM, Ervin Hegedüs wrote: >

Re: @commit_on_success with Class based view in Django 1.3

2012-02-15 Thread 赵帅
The commit_on_success decorator only garrentees that one commit is done when no exception is raised from the function and rollback if there is any . You have to ensure on your own hand the values in the two tables are equal. 2012/2/15 Yann > Hi, > > In a class view, I am

Re: Django runserver 504 on static assets with IE only

2012-02-15 Thread bruno desthuilliers
On Feb 14, 8:56 pm, JC wrote: > On IE8 however, > my fiddler trace shows that random static assets (css, js, img) aren't > loading most (2/3) of the time.  The server trace doesn't seem to see > or log the request at all. Then it might be that for some reason IE8 just

@commit_on_success with Class based view in Django 1.3

2012-02-15 Thread Yann
Hi, In a class view, I am trying to modify two instances of different models. There are some identical data stored in both tables. They should really be the same in any circumstance . Should I use "@commit_on_success"? If I should, how should i use it for the class based view? Should I do

Re: Admin error

2012-02-15 Thread Ervin Hegedüs
hello, On Wed, Feb 15, 2012 at 04:48:18PM +0800, Stanwin Siow wrote: > ok i figured where that error was coming from. > > It was from the method: admin.autodiscover() > > What does this method do? in Django doc: https://docs.djangoproject.com/en/dev/ref/contrib/admin/ "Above we used

Django + Gevent + PostgreSQL = Idle Transaction

2012-02-15 Thread Damien Letellier
I implemented some simple Long Polling with Gevent in a Django View. The client AJAX an url, enter the update view and wait with Gevent.event.wait for an update. Problem: We do not use Autocommit (and don't plan to) and the client view's Postgres transaction stay open as long as Gevent.event.wait

CSS reference to Media folder

2012-02-15 Thread Kolbe
Hi all, I have a .css file in the /static/ folder where I keep all my styles. Now when I want to refer to images that I use in my CSS that are stored in the /media/ folder, how do I reference that? e.g. background-image:url('gradient2.png'); gradient2.png is stored in ~/media/ and my css is

Re: Comments Not Displaying

2012-02-15 Thread coded kid
Thanks bro! Just got the logic! Cheers. @Daniel keep up the good work, even if you once hit me in the ass on StackOverflow! :) On Feb 14, 3:47 pm, Tom Evans wrote: > On Tue, Feb 14, 2012 at 2:45 PM, coded kid wrote: > > Below the status. I'm not

Re: Need details re: deletion of a referenced model instance

2012-02-15 Thread Marc Aymerich
On Wed, Feb 15, 2012 at 12:37 AM, Marc Aymerich wrote: > On Tue, Feb 14, 2012 at 8:02 PM, Jeff Blaine wrote: >> Hi all, >> >> I'm having trouble detecting changes that happen to a M2M field behind the >> scenes: as a result of one of the *referenced

Re: Admin error

2012-02-15 Thread Mike Dewhirst
On 15/02/2012 7:48pm, Stanwin Siow wrote: ok i figured where that error was coming from. It was from the method: admin.autodiscover() Well done!!! :) What does this method do?

Re: Admin error

2012-02-15 Thread Stanwin Siow
ok i figured where that error was coming from. It was from the method: admin.autodiscover() What does this method do? Best Regards, Stanwin Siow On Feb 15, 2012, at 3:12 PM, Mike Dewhirst wrote: > On 15/02/2012 5:41pm, Mike Dewhirst wrote: >>> >>> invalid syntax (admin.py, line 1) > >