how to delete in the admin - strategy needed

2013-02-03 Thread Mike Dewhirst
This is the error ... Select a valid choice. That choice is not one of the available choices. I want to delete a bunch of "child" records when a "parent" record is deleted. While I'm using that terminology they are not actually related in the usual sense. All however are in foreign key relatio

Re: On the fly image resize

2013-02-03 Thread Sanjay Bhangar
On Mon, Feb 4, 2013 at 6:32 AM, Spencer Summerville wrote: > Hello, there are a lot of solutions to resizing images in Django. I commend > you for wanting to create your own solution, but one of the greatest things > about Django is that there's tons of projects that people have made that > solve

Re: On the fly image resize

2013-02-03 Thread Spencer Summerville
Hello, there are a lot of solutions to resizing images in Django. I commend you for wanting to create your own solution, but one of the greatest things about Django is that there's tons of projects that people have made that solve your problems and usually there's enough of them that you can fin

Appscale and Django

2013-02-03 Thread hinnack
Hi all, is someone on the list using Appscale [1] with Django? If yes, what is your setup (MySQL, Mongo, E2, Eucalyptus [2], KVM, etc.) What is your experiance towards stalability, reliability and performance? [1] http://appscale.cs.ucsb.edu [2] http://www.eucalyptus.com -- You received this me

Re: search across models

2013-02-03 Thread Ashwin Kumar
thank you dennis, what you suggested is a difficult process where we need to look into performance its the query gets more complex and database gets bigger which is obvious. but its a good idea. i will try that for a while. With Best -Ashwin. +91-9959166266 On Sun, Feb 3, 2013 at 11:54 PM, Den

Re: How is fatcow for django hosting?

2013-02-03 Thread Gladson Simplício Brito
https://www.digitalocean.com 2013/2/3 Ashwin Kumar > i use amazon. its easy, fast, cheap, with full controll. > > this month my bill is 0$ as its free for 1yr > > With Best > -Ashwin. > +91-9959166266 > > > On Sat, Feb 2, 2013 at 11:16 AM, Mike wrote: > >> I have been shopping for hosting for

Help - No module named models

2013-02-03 Thread frocco
Hello, In my settings.py import django.conf.global_settings as DEFAULT_SETTINGS TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + ( 'utils.context_processors.eStore', ) in my utils directory I have a context_processors.py from django.conf import settings from catal

Re: On the fly image resize

2013-02-03 Thread nYmo
Thanks Kelly, this looks like what I was looking for. Will give it a try. So far my self implementation looks like this: def medium_image(self): return self.get_cache_image_path((400, 400)) def small_image(self): return self.get_cache_image_path((128, 128)) def get_cache

Re: On the fly image resize

2013-02-03 Thread Kelly Nicholes
Check out sorl-thumbnail. https://github.com/sorl/sorl-thumbnail . This lets you specify the desired size in a template.and can deal with cropping. It caches the results so it doesn't have to regenerate it each time. On Saturday, February 2, 2013 1:33:36 PM UTC-7, nYmo wrote: > > Hi all, > I

django setup advice for AWS Elastic Beanstalk

2013-02-03 Thread Phil
Hi, I am following the steps here to setup django on aws... http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html I got as far as step 6 but when I "git aws.push" I never see the django "it worked" page, only the green beanstalk page. I'm sure where I've gone wro

Re: Update / collectstatic / loadfixtures automation

2013-02-03 Thread Thiago Carvalho D' Ávila
Yeah, it worked =) I tryed --noinput before but the behavior is a little different. Thanks! 2013/2/3 John > I do > > echo yes | ./manage.py collectstatic > > which I'm sure you can adapt for your script. > > John > > > On 03/02/13 16:02, Thiago Carvalho D' Ávila wrote: > > Hello, I made a li

Re: Update / collectstatic / loadfixtures automation

2013-02-03 Thread John
I do echo yes | ./manage.py collectstatic which I'm sure you can adapt for your script. John On 03/02/13 16:02, Thiago Carvalho D' Ávila wrote: > Hello, I made a little script for automation for when I update my site > on production, it is like: > > update.sh > echo "C

Update / collectstatic / loadfixtures automation

2013-02-03 Thread Thiago Carvalho D' Ávila
Hello, I made a little script for automation for when I update my site on production, it is like: update.sh echo "Connecting" ssh -t -t prefix.myserver.com -lusername

Django Admin or Site from scratch

2013-02-03 Thread Yogesh Kamble
When to use Django Admin Interface and when to use our template for displaying data and playing with data? Suppose I want to create web site for Book Management and each user has their own set of book so for such application , should we use django admin or create our own site from scratch in

Re: DateTimeField stored as None

2013-02-03 Thread Rootz
Changing pub_date to DateField() class worked now and now I am able to see date values stored in the pub_date column. On Sunday, February 3, 2013 9:07:27 AM UTC-5, Rootz wrote: > > I made several attempts to store/update the current date in a model. I > used both admin page and the shell to sav

DateTimeField stored as None

2013-02-03 Thread Rootz
I made several attempts to store/update the current date in a model. I used both admin page and the shell to save/update a datetimefield value of my model and then after querying the record it return None for datetimefield column. Secondly my method was_published_recently() does not work. I a

Re: On the fly image resize

2013-02-03 Thread nYmo
Thanks to all of you for your thoughs on this. I think I will try to build my own solution based on PIL. And then check out a already developed plugin and try to improve my own solution. On 02/03/2013 07:43 AM, mulianto wrote: hi you can use pil , python image lib if you take make your own s

Re: Automating deployments

2013-02-03 Thread Sanjay Bhangar
On Sun, Feb 3, 2013 at 1:32 PM, Ashwin Kumar wrote: > thats so kind of you, i struggled a lot for 1 month to setup a server > (ubuntu+nginx+uWSGI+mysql+pil+virtualenv+emperor). > still i didn't succeed running emepror on system restart, i removed > virtualenv as i got python-mysqldb error. > for

Re: How is fatcow for django hosting?

2013-02-03 Thread Ashwin Kumar
i use amazon. its easy, fast, cheap, with full controll. this month my bill is 0$ as its free for 1yr With Best -Ashwin. +91-9959166266 On Sat, Feb 2, 2013 at 11:16 AM, Mike wrote: > I have been shopping for hosting for my project too (in my case a hobby > project that I will monetize ). I d

Re: Automating deployments

2013-02-03 Thread Ashwin Kumar
thats so kind of you, i struggled a lot for 1 month to setup a server (ubuntu+nginx+uWSGI+mysql+pil+virtualenv+emperor). still i didn't succeed running emepror on system restart, i removed virtualenv as i got python-mysqldb error. let me know if you finish it. With Best -Ashwin. +91-9959166266