Re: These waters aren't so friendly after all

2008-01-18 Thread Brett Parker
On 17 Jan 16:01, LRP wrote: > > Hello, > > Wow. This list is not only friendly, it parties! > > Thanks to tips from Jeff Anderson, Tim Chase, and Forest Bond, I now > have start-up directories. > > The trick: Debian redirects django-admin.py to django-admin. And, as > Forest Bond points out, d

Re: best practices for a production site

2008-01-18 Thread Marcin Mierzejewski
Hi Kenneth, I have very similar situation in my projects (some our projects, we develop 4 version in the same time - client specific versions). We do it in this way (we are using SVN): /trunk/ <- latest version /branches/product-1.0 /branches/product-1.1 /branches/product-1.2 /tags/product-1.0.0

postgresql create db script

2008-01-18 Thread Carl Karsten
I am trying to write a shell script that do whatever needs to be done between sudo apt-get install postgresql python-psycopg and manage.py syncdb for MySql, I use this to generate somehting I can pipe into the CLI: print """ DROP DATABASE IF EXISTS %(db)s; CREATE DATABASE %(db)s; GRANT ALL

Re: postgresql create db script

2008-01-18 Thread Brett Parker
On 18 Jan 02:26, Carl Karsten wrote: > > I am trying to write a shell script that do whatever needs to be done between > sudo apt-get install postgresql python-psycopg > and > manage.py syncdb > > for MySql, I use this to generate somehting I can pipe into the CLI: > > print """ > DROP DATABAS

Update multiple rows at once and allow direct updates

2008-01-18 Thread Wolfram Kriesing
What about an extension to the Queryset like this: User.objects.filter(username__istartswith="a").update(is_active=True) it would trigger something like this: UPDATE auth_user SET is_active=1 WHERE username LIKE "a%" This syntax (if it existed) would solve the following problems the cur

Re: about dbpaste

2008-01-18 Thread David Reynolds
On 17 Jan 2008, at 1:52 pm, Lic. José M. Rodriguez Bacallao wrote: Hi folks, I need to know how can I search, explore for codes in http://dpaste.com/ I really can't figure out how. That's not really what dpaste is for. It's more a temporary place to hold code so you can show it to someone e

Re: These waters aren't so friendly after all

2008-01-18 Thread Forest Bond
Hi, On Fri, Jan 18, 2008 at 10:30:53AM +0530, Kenneth Gonsalves wrote: > On 18-Jan-08, at 12:20 AM, LRP wrote: > > I'm still having a problem since my shell can't seem to find django- > > admin.py. I know it's there; found it in /usr/share/python-support/ > > python-django/django/bin. > > this wi

Re: Django Tutorial02 / TEMPLATE_DIRS

2008-01-18 Thread code_berzerker
On Jan 18, 1:11 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 17, 2008 2:08 PM, code_berzerker <[EMAIL PROTECTED]> wrote: > [...] > Check the value of settings.__file__ from python manage.py shell after > importing settings, just to make sure it is using the file you think it is. > I do

Re: Django Tutorial02 / TEMPLATE_DIRS

2008-01-18 Thread code_berzerker
On Jan 18, 2:01 am, Rock <[EMAIL PROTECTED]> wrote: > The templates have to be within a directory named "templates" found in > the /var/www/ directory. > BUT DON'T PUT TEMPLATES THERE! Put the templates dir in the same > directory as your settings.py > file and set the path accordingly in the se

Escaping "_" (underscore character) by psycopg1 backend?

2008-01-18 Thread Jarek Zgoda
I just stumbled upon strange behavior of django-0.96.1 and postgresql-8.2 combo. Essentially, different versions of postgresql-8.2 client libraries (or server, I am not a PostgreSQL expert) used with Django-0.96.1 ORM produce different results for lookups that use ILIKE (eg. iexact, icontains). Wh

Re: open flash chart & django

2008-01-18 Thread patrickk
thanks, this works fine. I´ll still try to get "open flash chart" working and I´ll post my experience here. patrick. On 17 Jan., 18:23, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm embarrassed to admit I can't remember exactly which flash charting > solution I went with, but I believe i

Re: These waters aren't so friendly after all

2008-01-18 Thread Kenneth Gonsalves
On 18-Jan-08, at 4:57 PM, Forest Bond wrote: >>> Then there's Kenneth Gonzales. All I can say is, "hey dude, >>> that's not >>> very friendly." >> >> well, I was one of the people who told you *not* to rely on debian's >> apt-get for installing django - django is developing too fast for >> pac

Re: Escaping "_" (underscore character) by psycopg1 backend?

2008-01-18 Thread Michal Chruszcz
On Jan 18, 12:54 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Basically, PostgreSQL is trying to be more standards compliant by > default, at the cost of slightly impacting backwards compatibility. You > might also want to look at escape_string_warning (setting it to false, > since the warn

Cannot catch _mysql_exceptions.OperationalError

2008-01-18 Thread Robert Swerdlow
I posted this note at comp.lang.python and the response there was that this all works outside of Django. What is the problem with using MySQL OperationalErrors with Django? - In our database code (we are using django v0.96) we wanted to catch and handle MySQL OperationalErrors. We us

Re: These waters are friendly after all

2008-01-18 Thread Brett Parker
On 18 Jan 07:16, Tim Chase wrote: > > >> The trick: Debian redirects django-admin.py to django-admin. And, as > >> Forest Bond points out, django-admin is in a shell-executable path. > > > > Yup - because debian policy dictates that things in /usr/bin should > > *not* have an extension telling y

Help tracking down runaway RAM

2008-01-18 Thread Peter Baumgartner
I'm serving up 6 Django apps on Ubuntu Gutsy with Ngninx 0.5.26 for a frontend and Apache 2.2.4 prefork MPM (tried both mod_python and mod_wsgi) serving Django rev. 6898. MySQL 5.045, Python 2.5.1 These are low traffic sites, 2 a bit more complex, 1 Satchmo install, and 3 very simple sites mostly

Re: Help tracking down runaway RAM

2008-01-18 Thread James Bennett
Do you have "DEBUG = True" in your Django settings file? -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Help tracking down runaway RAM

2008-01-18 Thread Peter Baumgartner
On Jan 18, 2008 8:48 AM, Peter Baumgartner <[EMAIL PROTECTED]> wrote: > I'm serving up 6 Django apps on Ubuntu Gutsy with Ngninx 0.5.26 for a > frontend and Apache 2.2.4 prefork MPM (tried both mod_python and mod_wsgi) > serving Django rev. 6898. MySQL 5.045, Python 2.5.1 > > That's 6 projects, no

Re: development server and settings.MEDIA_ROOT

2008-01-18 Thread Grindizer
> But why django use this path but not that was defined at > settings.MEDIA_ROOT? Because ADMIN_MEDIA_PREFIX is set to "/media/" so the url "http:// localhost:8000/media/" makes django point to the admin media directory. To serve your own media juste choose another url for that, may be like thi

development server and settings.MEDIA_ROOT

2008-01-18 Thread sector119
Hi All! When I try to get http://127.0.0.1:8000/media/ I got Permission denied: /home/sector119/devel/django_src/django/contrib/admin/media/ But why django use this path but not that was defined at settings.MEDIA_ROOT? part of my urls.py: import settings if settings.DEBUG: urlpatterns += p

Re: "Can't pickle function objects" in Sessions middleware. Any help ?

2008-01-18 Thread Jarek Zgoda
David Marquis napisał(a): > 'Can't pickle function objects' > > I can't seem to understand why on earth Django is trying to pickle a > 'function' into the user's session. > This error often happens when users leave their browser open and try > to continue the process later on (a few hours la

"Can't pickle function objects" in Sessions middleware. Any help ?

2008-01-18 Thread David Marquis
Hi folks, My first post on the forum! I've been watching the threads for a while, but now I need your help :) For a recent project, my users sometimes get the following error: (this error is output raw to the user, as text sent back to the browser as the response content) ** Mod_python

ContentType caching not effective with mod_python?

2008-01-18 Thread [EMAIL PROTECTED]
Hi, We are running django on mod_python with PythonDebug set to Off, and PythonAutoReload set to Off and we see that the calls to ContentType.objects.get_for_model(Model) hit the database any way. Any clue? Thanks, Julien --~--~-~--~~~---~--~~ You received this m

Re: These waters are friendly after all

2008-01-18 Thread Tim Chase
>> The trick: Debian redirects django-admin.py to django-admin. And, as >> Forest Bond points out, django-admin is in a shell-executable path. > > Yup - because debian policy dictates that things in /usr/bin should > *not* have an extension telling you which language they're implemented > in (*wa

Re: django multi application, multi database, need to sync..

2008-01-18 Thread Ivan Illarionov
And it's also important to not really delete records from database. Use the 'delete' boolean field to mark unneeded records. On 18 янв, 06:18, otonk <[EMAIL PROTECTED]> wrote: > > Create the sync script using the Python DB API directly (no Django > > ORM). And then trigger it either automatically

Re: Escaping "_" (underscore character) by psycopg1 backend?

2008-01-18 Thread Malcolm Tredinnick
On Fri, 2008-01-18 at 12:30 +0100, Jarek Zgoda wrote: > I just stumbled upon strange behavior of django-0.96.1 and > postgresql-8.2 combo. Essentially, different versions of postgresql-8.2 > client libraries (or server, I am not a PostgreSQL expert) used with > Django-0.96.1 ORM produce different

Re: Problem in installing Django on Windows XP

2008-01-18 Thread cjl
I'm not sure why you're getting the error that you are seeing, but if you want to try out Django on Windows without the hassle of installation, you can check out my site: http://www.instantdjango.com There is a download that provides a portable Django development environment on Windows, no inst

memcached

2008-01-18 Thread bfrederi
I am using memcached as my backend for cache, but I am not sure how to check the statistics on memcached, to see what it is actually doing. I can tell it is working, but I want to see some actual stats on how well it is working. I've heard there is a "stat" command for memcached, and I tried doing

Re: development server and settings.MEDIA_ROOT

2008-01-18 Thread Karen Tracey
On Jan 18, 2008 10:08 AM, sector119 <[EMAIL PROTECTED]> wrote: > > Hi All! > > When I try to get http://127.0.0.1:8000/media/ I got Permission > denied: /home/sector119/devel/django_src/django/contrib/admin/media/ > > But why django use this path but not that was defined at > settings.MEDIA_ROOT?

Running django+apache on my macbook

2008-01-18 Thread John M
OK, So I know Linux / Apache pretty well, never really done any hard-core stuff with it. Now I want to use apache on my macbook (intel) OSx 10.5 (upgrade),but have no clue about how to do it. Googling for how to install mod_python results in a lot of issues from what I can find, 64bit vs 32bit,

Re: postgresql create db script

2008-01-18 Thread Anton P. Linevich
Greeting, Carl! Fri, Jan 18, 2008 at 02:26:33AM -0600, carl wrote: > I am trying to write a shell script that do whatever needs to be done between > sudo apt-get install postgresql python-psycopg > and > manage.py syncdb > > for MySql, I use this to generate somehting I can pipe into the CLI:

Re: open flash chart & django

2008-01-18 Thread patrickk
I also like the way xmls/wf works. it´s very easy (to setup and install). unfortunately, it just doesn´t look so good (to me). I´m not much of a programmer myself - and for our current project, the "look" is very important. I´ll try some other tools as well ... keep you updated. patrick On Jan

Re: Running django+apache on my macbook

2008-01-18 Thread John M
I guess I wasn't clear on the PURPOSE to do it, experience, not practicality. I love the built-in django server, it's awesome, how much easier could anyone make it, I think none. But, I wanted to get ready for what it might be like to deploy django at a hosting facility, or maybe even on a home

select and update

2008-01-18 Thread Oğuz Yarımtepe
Hi, I need to use a select box in my Django application. But i want it to be filled dynamically when it is clicked so that the user will select some specified values that are taken from the database. Instead of that select box i may use a new page that will be opened when a button or check box c

Re: memcached

2008-01-18 Thread bfrederi
Sweet, thanks! Do you know how to use the cmemcache library instead of the python- memcached library to do what effbot did? Because I'm pretty sure you can't have both modules, because the Django documentation says to pick ONE. And since they emphasized it, I think they mean it. Also it seems tha

Re: best practices for a production site

2008-01-18 Thread Kenneth Gonsalves
On 18-Jan-08, at 9:54 PM, William Siegrist wrote: > If the spelling changes are in 1 file, and the new feature is in > another file, can't you "svn update" just the spelling change file > and not the new feature file? And if they are in the same file, I > think the --revision option to svn

Re: memcached

2008-01-18 Thread bfrederi
Is python-memcached the same as the memcache he is trying to import in his memcached_status.py? http://effbot.org/zone/django-memcached-view.htm On Jan 18, 1:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I take it back. I see now that python's memcached module is named > 'memcache', no

Re: Running django+apache on my macbook

2008-01-18 Thread Graham Dumpleton
On Jan 19, 8:49 am, John M <[EMAIL PROTECTED]> wrote: > I guess I wasn't clear on the PURPOSE to do it, experience, not > practicality. > > I love the built-in django server, it's awesome, how much easier could > anyone make it, I think none.  But, I wanted to get ready for what it > might be like

Re: ContentType caching not effective with mod_python?

2008-01-18 Thread Graham Dumpleton
On Jan 19, 1:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > We are running django on mod_python with PythonDebug set to Off, and > PythonAutoReload set to Off and we see that the calls to > ContentType.objects.get_for_model(Model) hit the database any way. Any > clue? Do note t

Re: Running django+apache on my macbook

2008-01-18 Thread Christian Joergensen
John M wrote: > OK, > > So I know Linux / Apache pretty well, never really done any hard-core > stuff with it. Now I want to use apache on my macbook (intel) OSx > 10.5 (upgrade),but have no clue about how to do it. > > Googling for how to install mod_python results in a lot of issues from > wh

Re: Sending SMS messages

2008-01-18 Thread Anton P. Linevich
Greeting, Marinho! Fri, Jan 18, 2008 at 04:31:48PM -0200, marinho wrote: > > I'd see this app [1], but it has no files in the repository. > > > > Does somebody knows a code, tool or something about this? (I wanna > > write only what is left) Thing is you need to stick to one of the API of SMS-

Re: best practices for a production site

2008-01-18 Thread William Siegrist
If the spelling changes are in 1 file, and the new feature is in another file, can't you "svn update" just the spelling change file and not the new feature file? And if they are in the same file, I think the --revision option to svn update might also help. -Bill On Jan 17, 2008, at 11:55

Re: Running django+apache on my macbook

2008-01-18 Thread John M
Thanks for the macports idea, i'll have a look. On Jan 18, 10:13 am, William Siegrist <[EMAIL PROTECTED]> wrote: > I recommend installing apache, python, and mod_python via MacPorts. > Thats what I do to run django on various Mac platforms. Granted, I > work with the MacPorts project, so maybe I'

Re: Running django+apache on my macbook

2008-01-18 Thread Anton P. Linevich
Greeting, John! Fri, Jan 18, 2008 at 09:55:55AM -0800, retireoncsco wrote: > > OK, > > So I know Linux / Apache pretty well, never really done any hard-core > stuff with it. Now I want to use apache on my macbook (intel) OSx > 10.5 (upgrade),but have no clue about how to do it. > > Googling

Sending SMS messages

2008-01-18 Thread Marinho Brandao
Hello everybody, I need to write an app to send SMS messages to the most mobile companies I can, like Gmail does. I'd see this app [1], but it has no files in the repository. Does somebody knows a code, tool or something about this? (I wanna write only what is left) -- Marinho Brandão (José M

Re: Sending SMS messages

2008-01-18 Thread Marinho Brandao
sorry, the [1] is this: http://code.google.com/p/django-sms/ 2008/1/18, Marinho Brandao <[EMAIL PROTECTED]>: > Hello everybody, > > I need to write an app to send SMS messages to the most mobile > companies I can, like Gmail does. > > I'd see this app [1], but it has no files in the repository.

Re: GeoDjango: distance calculation

2008-01-18 Thread Justin Bronn
> We are starting to usegeodjango(revision 7003) and are having > problems using the api to calculate distance. > > class Airport(models.Model): > icao = models.CharField('ICAO', max_length=4) > location = models.PointField() > First, a reminder to add the `objects.GeoManager()` to your m

Meaning of IOError: [Errno 9] Bad file descriptor

2008-01-18 Thread mamcxyz
I'm getting this after generate a xml from a semi-csv file. Other times I get this but not found what this mean. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: memcached

2008-01-18 Thread [EMAIL PROTECTED]
I take it back. I see now that python's memcached module is named 'memcache', not 'memcached'. I'm not sure what I was thinking. On Jan 18, 1:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I think the problem is that python's memcached module is named > 'memcached', and also your app i

Re: memcached

2008-01-18 Thread bfrederi
Just a note to everyone, if you are giving out code used for developmental purposes like the code found here: http://effbot.org/zone/django-memcached-view.htm Don't do this in your code: try: #do something except: raise http.Http404 Raising a 404 doesn't give you any clue as to what the p

Re: Sending SMS messages

2008-01-18 Thread David Marquis
Hi, You know that you can send SMS messages to most phones using an e-mail address ? [EMAIL PROTECTED] The exact domain name is specific to each mobile phone provider. This information can be obtained from the provider's web site. For more : http://en.wikipedia.org/wiki/SMS_gateways I don

Re: Running django+apache on my macbook

2008-01-18 Thread William Siegrist
I recommend installing apache, python, and mod_python via MacPorts. Thats what I do to run django on various Mac platforms. Granted, I work with the MacPorts project, so maybe I'm biased, but I also came from a linux environment and find MacPorts to be very useful for package management.

Re: open flash chart & django

2008-01-18 Thread [EMAIL PROTECTED]
For whatever it's worth, I messed around with open flash charts a fair bit before going with the xml-based solution... I never got it working, either, got close, but could never really make sense of the output strings. But then, I'm not much of a programmer. I do know that I found the xml-based ch

geodjango existing install question

2008-01-18 Thread Matthew Miller
I would like to install geodjango but have an existing django 0.96 installed on my devel server. The instructions for geodjango say check the svn then ln -s to /path/to/sitepackages/django. My question is will this in any way affect the current install. If I am running .96 of django and I install g

Status of iterative rendering?

2008-01-18 Thread Steve Bergman
Last June there was some work done on iterative rendering of templates, generating the out on the fly, directly down the connection to the browsers rather than rendering the whole thing in memory and then sending it. The issue turned out to be more complicated than it appeared on the surface, and

Re: Update multiple rows at once and allow direct updates

2008-01-18 Thread Jonathan Buchanan
On Jan 18, 2008 4:03 AM, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > What about an extension to the Queryset like this: > > User.objects.filter(username__istartswith="a").update(is_active=True) > > it would trigger something like this: > >UPDATE auth_user SET is_active=1 WHERE username

Re: memcached

2008-01-18 Thread bfrederi
Great, that looks like it will serve its purpose. I am trying to get it to work, and I am messing it up somehow. I made it into and app. memcached/ __init__.py memcached_status.py templates/ memcached/ memcached_status.html and I put memcached into my settings file

Re: geodjango existing install question

2008-01-18 Thread Karen Tracey
On Jan 18, 2008 12:40 PM, Matthew Miller <[EMAIL PROTECTED]> wrote: > I would like to install geodjango but have an existing django 0.96installed > on my devel server. The instructions for geodjango say check the > svn then ln -s to /path/to/sitepackages/django. My question is will this in > any

Re: Django Tutorial02 / TEMPLATE_DIRS

2008-01-18 Thread Rajesh Dhawan
Perhaps try removing all comment cruft from your settings.TEMPLATE_DIRS so it's just this: TEMPLATE_DIRS = ('/var/www/test/djtest/tpl',) # <-- remember to put a trailing comma here --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Free online Games &Free softwares logon to www.ns-ismail.page.tl

2008-01-18 Thread smile
Hai friends Log on to http://ns-ismail.page.tl/ to get (download) free software's and all other accessories. To get free gift's Log on to http://ns-ismail.page.tl/ and so on. The site consist of many useful material's Like Google search, games, and etc.You can earn money through http://ns-ismail.

Re: memcached

2008-01-18 Thread Alex Koshelev
http://effbot.org/zone/django-memcached-view.htm On 18 янв, 19:51, bfrederi <[EMAIL PROTECTED]> wrote: > I am using memcached as my backend for cache, but I am not sure how to > check the statistics on memcached, to see what it is actually doing. I > can tell it is working, but I want to see some

Re: Problem in installing Django on Windows XP

2008-01-18 Thread Guillermo
Hakan, Assuming you are using Django 0.96.1, make sure you're installing from a top folder in your drive. E.g.: d:\django Not something like: d:\django\django\ That worked for me. Regards, Guillermo --~--~-~--~~~---~--~~ You received this message because you

Re: best practices for a production site

2008-01-18 Thread Rajesh Dhawan
Hi Kenneth, > I have a site in production and being developed at the same time - a > common django usecase I am sure. This is the first time I am > developing a site with a team comprised of several remote > contributors also. My previous teams were all in the same lab. > Currently everyone with

Re: Cannot catch _mysql_exceptions.OperationalError

2008-01-18 Thread Karen Tracey
On Jan 18, 2008 10:51 AM, Robert Swerdlow <[EMAIL PROTECTED]> wrote: > I posted this note at comp.lang.python and the response there was that > this all works outside of Django. What is the problem with using MySQL > OperationalErrors with Django? > > - > In our database code (we are usin

Re: Running django+apache on my macbook

2008-01-18 Thread John M
Anton, that was sort of my question, how do I complete your second idea but w/o the recompile. The mac already comes with apache 2 installed and running rather well, how hard would it be to add mod_python or mod_wsgi to that environment? Thanks John On Jan 18, 10:09 am, "Anton P. Linevich" <[E

Re: Help tracking down runaway RAM

2008-01-18 Thread Peter Baumgartner
No. On Jan 18, 2008 9:23 AM, James Bennett <[EMAIL PROTECTED]> wrote: > > Do you have "DEBUG = True" in your Django settings file? > > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of > correct." > > > > --~--~-~--~~~---~--~~ You received

Re: memcached

2008-01-18 Thread [EMAIL PROTECTED]
I think the problem is that python's memcached module is named 'memcached', and also your app is named 'memcached'. Maybe try renaming your app to 'memcached_status' or something and see if that works better. Thanks, Eric Florenzano On Jan 18, 12:38 pm, bfrederi <[EMAIL PROTECTED]> wrote: > Gre

Re: memcached

2008-01-18 Thread [EMAIL PROTECTED]
> Is python-memcached the same as the memcache he is trying to import in > his memcached_status.py? Yes. By the way, I just figured out why it's not working: your urls.py file has a small typo. It's pointing to "memcached.memcached_status", however the function that you defined is called cache_s

Re: Running django+apache on my macbook

2008-01-18 Thread John M
Thakn you Graham, thats what I'm talking about. I just finished trying to compile mod_python, and it's not working, and I figured it was something like that. So it's off to try mod_wsgi. Thanks J On Jan 18, 4:29 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Jan 19, 8:49 am, John M <[EM