Django app custom settings testing

2013-01-02 Thread Pedro J. Aramburu
Hi, I'm having troubles using the override_settings decorator. The thing is I'm writing an app that has it's own settings and I'm doing it with the approach of putting a settings.py file on the app folder with something like this: from django.conf import settings from django.core.exceptions

Re: Django installation on Hostgator

2013-01-02 Thread John Neumann
You can also try this: https://my.hostgator.com/cgi/help/530 and/or this: https://my.hostgator.sg/cgi/help/python-install though iric it was riddled with issues. Been a bit since I had to do it without the ability to install things intelligently. Personally I'd suggest trying to install

Re: Django installation on Hostgator

2013-01-02 Thread John Neumann
You would be correct. You cannot install anything else on HostGator (it's why I left them despite their fantastic customer support). You can see what they do have installed here: http://support.hostgator.com/articles/hosting-guide/hardware-software/python-modules Outside of those things

Django installation on Hostgator

2013-01-02 Thread Gjorge Karakabakov
Hi, I've created a Django project but can't really seem to install it correctly on Hostgator. I've followed this tutorial: https://docs.google.com/document/pub?id=1jhvixMmTRGYHRbHaYlTHTNrtpziGotQMc0iBO0sTbIo and created new project which worked. When I uploaded my own project I got server

Please help me understand this Geodjango GEOS API error

2013-01-02 Thread Benjamin Golder
I'm constantly running into several different errors when I try to use the GEOS API in my django apps. These errors cause the development server to shut down, and they don't supply much information for debugging. If you have any ideas on how I can get closer to understanding or resolving these,

Re: Star Rating System In Django

2013-01-02 Thread Alec Taylor
=) On Mon, Dec 31, 2012 at 11:12 AM, coded kid wrote: > Thanks! Agon works perfectly! > > > On Sunday, 30 December 2012 14:46:24 UTC+1, coded kid wrote: >> >> The developer for agon rating is no more working on it and I guess it >> won't work nice . >> >> Simple ratings

Re: Happy new year

2013-01-02 Thread Joey "JoeLinux" Espinosa
I guess I should contribute to this free-for-all: Happy New Year from Miami, hope all of you Django devs have a great and exciting year! *Joey "JoeLinux" Espinosa* Software Developer http://about.me/joelinux On 01/02/2013 11:48 AM, scriptflow wrote: Happy New Year from Brazil Feliz ano

Re: Happy new year

2013-01-02 Thread scriptflow
Happy New Year from Brazil Feliz ano novo!!! I'm indo Salvador right now indo Iberostar Bahia praia do forte... [ ]`s to all... Tiago Godoy Enviado por Samsung Mobiledaniele sartiano escreveu:Happy new year from Italy!! Ciao a tutti! D. 2013/1/2 Evan

Re: Happy new year

2013-01-02 Thread Sreenivas Reddy T
Happy new Year from Hyderabad,Andhra Pradesh, India. Best Regards, Srinivas Reddy Thatiparthy 9703888668. "Anyone who has never made a mistake has never tried anything new !!! " --Albert Einstein On Wed, Jan 2, 2013 at 9:50 PM, daniele sartiano wrote: > Happy

Re: Happy new year

2013-01-02 Thread daniele sartiano
Happy new year from Italy!! Ciao a tutti! D. 2013/1/2 Evan > Happy new year from Vietnam, wish you guys great things. > > > On Tuesday, January 1, 2013 4:42:13 AM UTC+7, cingusoft wrote: >> >> Happy new year from spain to all django lovers. >> I wish you a new year with

Re: Happy new year

2013-01-02 Thread Evan
Happy new year from Vietnam, wish you guys great things. On Tuesday, January 1, 2013 4:42:13 AM UTC+7, cingusoft wrote: > > Happy new year from spain to all django lovers. > I wish you a new year with tons of django projects. > > Cheers > Cingusoft > BlackBerry de movistar, allí donde estés

Re: Serve static files in production server

2013-01-02 Thread Stefano Tranquillini
On Sunday, December 30, 2012 6:01:24 PM UTC+1, Amirouche wrote: > > Héllo Stefano, > > On Sunday, December 30, 2012 1:27:12 PM UTC+1, Stefano Tranquillini wrote: >> >> Hi all. >> in the appfog ML we were fighting again the possibility to serve static >> file in django without using an external

Re: django signals.post_save() and conditions.

2013-01-02 Thread kirill . yakovenko
Hello, I'm not sure that I've understood you completely. What condition are you going to apply to a signal? Best regards, Kirill Yakovenko On Wednesday, January 2, 2013 4:34:35 PM UTC+7, ysfjwd wrote: > > Is there a way to check a condition on sender model before processing a > command. My

Re: Get objects sorted by time of last comment

2013-01-02 Thread akaariai
On 2 tammi, 08:50, Vibhu Rishi wrote: > Hi All, > > A very happy new year to you all ! > > I am working on a website I am making as my hobby project. It is to do with > motorcycle touring. > > I have done some initial work on it, and incrementally making changes as > and

Re: Bulk delete - performance / object collection

2013-01-02 Thread akaariai
A note about the upcoming 1.5: The delete() was optimized so that it doesn't fetch the objects if it doesn't have to. The "doesn't have to" translates to: - no delete signals defined for the model - no cascades That being said using DSE might be the right choice for you. - Anssi On 2 tammi,

Re: Bulk delete - performance / object collection

2013-01-02 Thread George Lund
Thank you very much for this. I'll catch up with those threads and read more about DSE, which looks really interesting work. regards George On Wednesday, 2 January 2013 11:50:54 UTC, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi George, > > This is one area I spent quite a lot of time in

Re: Bulk delete - performance / object collection

2013-01-02 Thread George Lund
> > > Meanwhile I can construct the SQL by hand easily enough, but I feel this > > isn't doing things the right way. > > I've had this discussion with other developers. Many feel they need to > slavishly adhere to the ORM and if you don't you're some type of evil > entity. I could not

Re: Bulk delete - performance / object collection

2013-01-02 Thread Cal Leeming [Simplicity Media Ltd]
That's an interesting perspective actually.. "Don't be a slave of your mind (or ORM)" Cal On Wed, Jan 2, 2013 at 12:01 PM, Larry Martell wrote: > On Wed, Jan 2, 2013 at 4:29 AM, George Lund wrote: > > I'm trying to bulk-delete several million rows

Re: Bulk delete - performance / object collection

2013-01-02 Thread Larry Martell
On Wed, Jan 2, 2013 at 4:29 AM, George Lund wrote: > I'm trying to bulk-delete several million rows from my database. > > The docs for Django 1.3 say "this will, whenever possible, be executed > purely in SQL". A pure-SQL delete is what I want in this case, so that's > fine. > >

Re: Bulk delete - performance / object collection

2013-01-02 Thread Cal Leeming [Simplicity Media Ltd]
Hi George, This is one area I spent quite a lot of time in personally, see; https://groups.google.com/forum/?fromgroups=#!msg/django-users/iRhWD0FtW8k/0KAMF3ub-ZYJ https://groups.google.com/forum/#!topic/django-users/hgLrwMoFLII Bulk operations using the ORM isn't always the right thing to do -

Bulk delete - performance / object collection

2013-01-02 Thread George Lund
I'm trying to bulk-delete several million rows from my database. The docs for Django 1.3say "this will, whenever possible, be executed purely in SQL". A pure-SQL delete is what I want in this case, so that's fine.

django signals.post_save() and conditions.

2013-01-02 Thread ysfjwd
Is there a way to check a condition on sender model before processing a command. My code user_logged_in.connect(update_last_login) def create_activation_code(sender, instance, created, **kwargs): print 'The signal is called' if created: print 'the singal goes to created'

Re: When I set DEBUG=False, my 404.html doesn't appear

2013-01-02 Thread Dae_James
Thank you while I've solve the problem. It's because some browsers show their own 404 page if the size of the 404 page server returns less than 512 bytes. So just uncheck the "show friendly error page" in Interner Option in Control Panel, my 404 page will appear. 在

Re: Question about URL namespaces

2013-01-02 Thread Dae_James
So what does instance actually mean here? Does it just mean another copy of the app directory with a different directory name? 在 2012年12月30日星期日UTC+8上午3时06分03秒,Ryan Blunden写道: > > I've never used this feature but I believe it was created so that for a > single Django project, you could provide