Re: Django Development environment

2011-08-27 Thread Sam Walters
Ok lets see. At the moment: Editor: vim + http://code.google.com/p/trespams-vim/ sometimes gedit or kate Editor console *this has been really useful: yakuake Debug client-side: firebug, yslow, a windows computer with ie7 Version system: git OS: develop on apto-sid (debian unstable), deploy on

Re: Error was: No module named io

2011-08-27 Thread sreekanth
Hi, Please check the path , as you changed to a new server and also check the permissions. On Sun, Aug 28, 2011 at 6:29 AM, CrabbyPete wrote: > I developed my code with python 2.6 and django 1.3. Now that I am > deploying it on a dreamhost server the python is version 2.5

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Gelonida N
On 08/28/2011 03:43 AM, Scott Danzig wrote: > > Okay.. update.. it does seem to work right, even without forcing the > initialization as you suggested.. which is a relief.. Was losing my mind > (maybe Django 1.3 doesn't require the settings.LOGGING?) While testing with > prints, I realized the

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Scott Danzig
Okay.. update.. it does seem to work right, even without forcing the initialization as you suggested.. which is a relief.. Was losing my mind (maybe Django 1.3 doesn't require the settings.LOGGING?) While testing with prints, I realized the view function I thought should be called wasn't called

Re: ipython 0.11 with django 1.3 /in virtualenv

2011-08-27 Thread Gelonida N
Hi Shawn, On 08/28/2011 02:49 AM, Shawn Milochik wrote: > If iPython is installed it should be used automatically in Django's > manage.py shell. > Apologies. I think I didn't express myself well enough. ipython is being used bydjango. What I just don't understand is why ipython does not import

why is settings.py executed twice?

2011-08-27 Thread Gelonida N
Hi, This is also one of the things (I just started using django, so I have still quite many questions) , that I don't really understand. It doesn't break anything and I am not stuck. I'd just like to understand. $ django-admin startproject settings_twice $ echo 'print "SOMETEXT"' >>

Error was: No module named io

2011-08-27 Thread CrabbyPete
I developed my code with python 2.6 and django 1.3. Now that I am deploying it on a dreamhost server the python is version 2.5 and I get the error above. Is there a work around. Do I need to upgrade python? -- You received this message because you are subscribed to the Google Groups "Django

Re: ipython 0.11 with django 1.3 /in virtualenv

2011-08-27 Thread Shawn Milochik
If iPython is installed it should be used automatically in Django's manage.py shell. If it's not working and works when you run iPython directly, the most likely case is that you're running two different Python environments and one has iPython installed and the other doesn't. You mention

ipython 0.11 with django 1.3 /in virtualenv

2011-08-27 Thread Gelonida N
Hi, I am having issues with ipythin when I run ./manage.py shell then ipython_config.py doesn't seem to be executed. On the other hand if I run ipython directly the file is imported. Am I missing something? My setup: $ find ~/.config/ipython/ /home/gelonida/.config/ipython/

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Gelonida N
On 08/28/2011 12:00 AM, Scott Danzig wrote: > > > Gelonida N wrote: >> So before your three lines: >>> import logging >>> logger = logging.getLogger('otherlogger') >>> logger.warn('hello') >> you had to be sure, that the django settings and thus the logging >> configuration has really been

Re: Combining queries? A "join" in Python?

2011-08-27 Thread Matteius
Since you are combining two sets of different objects you'll want Gelonida's response. Additionally, Use Q to create more logically advanced queries. I find your language difficult to gather what query you are looking for exactly, but here is an example of what I think you might mean: from

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Scott Danzig
Gelonida N wrote: > > On 08/20/2011 06:51 AM, Scott Danzig wrote: > You have to be sure, that logging is configured before actually logging > anything. > > So before your three lines: >> import logging >> logger = logging.getLogger('otherlogger') >> logger.warn('hello') > you had to be sure,

Re: Django 1.3 logging not working as I'd expect

2011-08-27 Thread Scott Danzig
bruno desthuilliers-7 wrote: > > On 22 août, 13:27, Reinout van Rees wrote: >> >> Probably all your logging statements are executed right at file import >> time before the logging is actually configured. > > Using the DictConfig in settings.py, the logger is configured

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-08-27 Thread Cal Leeming [Simplicity Media Ltd]
Bloody thing, had to send it directly to the list cos it doesn't have the option of bulk inviting people. How annoying :X Anyone who didn't receive the invite email, please let me know. Cal On Sat, Aug 27, 2011 at 9:50 PM, Cal Leeming [Simplicity Media Ltd] <

Your Webinar Invitation: Join us for "Django site with 40mil+ rows of data"

2011-08-27 Thread Cal Leeming [Simplicity Media Ltd]
Sorry, the damn thing refused to send invitations to all email addresses. How annoying - so I've had to send to the list directly. Apologies. Django site with 40mil+ rows of data1 hour webcast showing some of the techniques we used to handle large data sets in Django, with minimal

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-08-27 Thread Cal Leeming [Simplicity Media Ltd]
Nope, we're allowed up to 100 attendees per time slot, and we are at 55 at the moment, so feel free to register for both. On Sat, Aug 27, 2011 at 9:46 PM, william ratcliff < william.ratcl...@gmail.com> wrote: > Any problem if we register for both? > > > On Sat, Aug 27, 2011 at 4:33 PM, Cal

Re: Combining queries? A "join" in Python?

2011-08-27 Thread Gelonida N
On 08/27/2011 11:39 AM, graeme wrote: > I have a some models related link this: > > A has a foreign key on B which has a foreign key on C > > I also have D with a foreign key on B, and E with a foreign key of C > > If I do A.filter(**args).select_related() I will get all the As, Bs, > and Cs I

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-08-27 Thread william ratcliff
Any problem if we register for both? On Sat, Aug 27, 2011 at 4:33 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hey guys, > > I'm sending out the webcast invitations now (should receive them in about > 10 minutes from GoToMeeting). Last chance to jump on

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-08-27 Thread Cal Leeming [Simplicity Media Ltd]
Hey guys, I'm sending out the webcast invitations now (should receive them in about 10 minutes from GoToMeeting). Last chance to jump on if you haven't already. Cal On Sat, Aug 20, 2011 at 12:32 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi all, > >

Re: Django Development environment

2011-08-27 Thread Steven Elliott Jr
On Aug 27, 2011, at 11:17 AM, Simon Connah wrote: > > On 27 Aug 2011, at 04:44, Steven Elliott Jr wrote: > >>> On Fri, 2011-08-26 at 15:07 +0100, Simon Connah wrote: Mercurial or Git (depends on whether the project is open source or not) >> >> Kenneth, >> >>

Re: Installation

2011-08-27 Thread PremAnand Lakshmanan
It works now.The problem was with PYTHONPATH variable. Thanks everyone On Sat, Aug 27, 2011 at 2:56 AM, Babatunde Akinyanmi wrote: > Hi Prem, > You said your django is located in a folder named Django-1.0.4. That > is where your PYTHONPATH should be set to not Django-1.3.

Form for inline formset

2011-08-27 Thread Marcos Moyano
Can someone please tell me how can I specify a form to be used by every form inside an inline formset (if possible)? Thanks in advance! Marcos -- Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. Jamie Zawinski, in

Re: Media files not served automatically anymore in 1.3?

2011-08-27 Thread Karen Tracey
On Thu, Aug 25, 2011 at 7:21 AM, Reinout van Rees wrote: > Only, with this 1.3 change django's 1.2's automatic serving of the > media_url stuff has gone the way of the dodo. Django 1.2 never did automatic serving of media_url, you always had to configure that manually if

Re: Django Development environment

2011-08-27 Thread Simon Connah
On 27 Aug 2011, at 04:44, Steven Elliott Jr wrote: >> On Fri, 2011-08-26 at 15:07 +0100, Simon Connah wrote: >>> Mercurial or Git (depends on whether the project is open source or not) > > Kenneth, > > I think he means whether or not the repository will be public or private. > Github (git)

authentication in django

2011-08-27 Thread NISA BALAKRISHNAN
Hi, I am new to django. i am making a django app for a logged in user to add movies he watched. how can i block a logged in user from accessing the log in form ? the url .../accounts/login -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Problem updating data

2011-08-27 Thread Blue
My first thought is that you didn't call parent save method in you custom save method super(YourClass, self).save(*args, **kwargs) On 26 Sie, 03:59, Karen McNeil wrote: > Thank you Malcolm, you were exactly right! > > I would have never thought of that, but I have a

Re: Django Development environment

2011-08-27 Thread Dan He
Mine is: WinXP Eclipse+PyDev MySQL Selenium Firebug chrome+firefox On Sat, Aug 27, 2011 at 10:11 AM, kenneth gonsalves wrote: > On Fri, 2011-08-26 at 15:07 +0100, Simon Connah wrote: > > Mercurial or Git (depends on whether the project is open source or > > not) > >

Re: Django Development environment

2011-08-27 Thread Steven Elliott Jr
> On Fri, 2011-08-26 at 15:07 +0100, Simon Connah wrote: >> Mercurial or Git (depends on whether the project is open source or not) Kenneth, I think he means whether or not the repository will be public or private. Github (git) does not offer private repos unless you pay whereas bitbucket

Re: Django Development environment

2011-08-27 Thread Marc Aymerich
On Tue, Aug 23, 2011 at 12:07 AM, Stephen Jackson wrote: > I am new to the world of Django. I would like to hear from other django > developers describe their dev environment (tools, os, editors, etc.). Ubuntu + chroot with debian squeeze installed via debootstrap

Re: what should be memory size memcached for Django on Ubuntu Os?

2011-08-27 Thread Simon Connah
On 27 Aug 2011, at 12:26, vikas ruhil wrote: > A brief Description of system On i need help for memcached size:- > 1)Cpu :- i7 intel , 16 Gb Ram , Internal SATA Hard-disk :640 Gb , External > Hardisk :-10 Tb, Os :- Ubuntu-32bit > 2)Cpu- i2 intel core2duo , 4Gb Ram, Internal SATA Hard-disk: 320

Historical Djangocon videos available for download in iTunes?

2011-08-27 Thread Simon Connah
Does anyone know of a source for previous Djangocon (both US and EU) videos that allow you to download them in iTunes? So far I've only seen them available on the schedule page of the EU Djangocon site and on Blip.tv. While I can certainly watch them there I prefer to have them on my hard drive

what should be memory size memcached for Django on Ubuntu Os?

2011-08-27 Thread vikas ruhil
A brief Description of system On i need help for memcached size:- 1)Cpu :- i7 intel , 16 Gb Ram , Internal SATA Hard-disk :640 Gb , External Hardisk :-10 Tb, Os :- Ubuntu-32bit 2)Cpu- i2 intel core2duo , 4Gb Ram, Internal SATA Hard-disk: 320 Gb , External Hard-disk :- 2 Tb , Os:-Ubuntu-32bit

Re: Help with Django code.

2011-08-27 Thread GE
You haven't said which OS you use. If you are in a unix-based environment, I found this article very helpful. http://www.juiceanalytics.com/writing/django_settings_module/ Good luck On Aug 26, 5:28 am, Yaşar Arabacı wrote: > Try this, always worked for me, > > import os >

Combining queries? A "join" in Python?

2011-08-27 Thread graeme
I have a some models related link this: A has a foreign key on B which has a foreign key on C I also have D with a foreign key on B, and E with a foreign key of C If I do A.filter(**args).select_related() I will get all the As, Bs, and Cs I want. How do I get the Ds with a foreign key on a B

Re: Installation

2011-08-27 Thread Babatunde Akinyanmi
Hi Prem, You said your django is located in a folder named Django-1.0.4. That is where your PYTHONPATH should be set to not Django-1.3. Since you had multiple python installations, make sure that windows associates .py files with Python 2.7 and not Python 3. If it still doesn't work, you can try