Re: images path[please adrian help]

2006-01-18 Thread Kenneth Gonsalves
On Thursday 19 Jan 2006 9:35 am, Kenneth Gonsalves wrote: > On Thursday 19 Jan 2006 3:35 am, [EMAIL PROTECTED] wrote: > > 1- I write this in my page.py:  full_image = > > meta.ImageField(upload_to ="/media/images/", null = True, blank > > = True ) > > upload_to = "media/images/" oops - upload_to

Re: images path[please adrian help]

2006-01-18 Thread Kenneth Gonsalves
On Thursday 19 Jan 2006 3:35 am, [EMAIL PROTECTED] wrote: > 1- I write this in my page.py:  full_image = > meta.ImageField(upload_to ="/media/images/", null = True, blank = > True ) upload_to = "media/images/" -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in

Re: Exciting job opportunities at Exoweb in Beijing / China

2006-01-18 Thread Dominic
thanks for putting my ad on your BLOG. Are you looking for a job yourself? Cheers, Dom

Re: urls question

2006-01-18 Thread Julio Nobrega
Oh my God sorry about this, Gmail tricked me, the Archive and Send buttoms are too close. On 1/18/06, Julio Nobrega <[EMAIL PROTECTED]> wrote: <>

Re: urls question

2006-01-18 Thread Julio Nobrega
On 1/18/06, Huy Do <[EMAIL PROTECTED]> wrote: > > Sorry for the non django related question. I figured it out already. > > For anyone whos interested in cleaning up your generic views code, just > use, (note the star) > > urlpatterns = patterns('', >*generic_crud(MyModel) > ) > regards, > > Hu

Re: urls question

2006-01-18 Thread Huy Do
Sorry for the non django related question. I figured it out already. For anyone whos interested in cleaning up your generic views code, just use, (note the star) urlpatterns = patterns('', *generic_crud(MyModel) ) regards, Huy Huy Do wrote: Should it be possible for me to do the following

Re: broken link in templates_python

2006-01-18 Thread Luke Plant
On Wed, 18 Jan 2006 16:36:00 - Luke Skibinski Holt wrote: > Luke Skibinski Holt Well are you called Luke or Alice? Is this some cunning ploy to get answers quicker, by pretending to be multiple people? :-) Confused, Luke -- "Idiocy: Never underestimate the power of stupid people in larg

Re: Bulk delete?

2006-01-18 Thread Russell Keith-Magee
On 1/18/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 1/18/06, hugo <[EMAIL PROTECTED]> wrote:> >Ok; in the absence of any objections, I've just committed the change,> >and closed off the ticket. Bulk delete is now available in > >magic-removal.>> Hum. That's a _tad_ bit fast committing for me

Re: unordered_list... explanation?

2006-01-18 Thread gabor
Luke Plant wrote: On Wed, 18 Jan 2006 21:22:29 +0100 gabor wrote: i'm trying to use the unordered_list filter, with little success :( i tried the provided example ( ['States', [['Kansas', [['Lawrence', []], ['Topeka', [, ['Illinois', [ ), and it works, but i am unable to understand

[FWD: images path[please adrian help]]

2006-01-18 Thread mary . adel
> Dear ALL > I still have a problem with the picture feild here what i have done > 1- I write this in my page.py: full_image = meta.ImageField(upload_to > ="/media/images/", null = True, blank = True ) > 2-i opened the admin page and load the pictuer i need > i found that it creat a folder and i

Re: unordered_list... explanation?

2006-01-18 Thread Luke Plant
On Wed, 18 Jan 2006 21:22:29 +0100 gabor wrote: > i'm trying to use the unordered_list filter, with little success :( > > i tried the provided example ( ['States', [['Kansas', [['Lawrence', > []], ['Topeka', [, ['Illinois', [ ), > and it works, > > but i am unable to understand it. It

Re: images path[please adrian help]

2006-01-18 Thread Joseph Kocherhans
On 1/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Dear ALL > I still have a problem with the picture feild here what i have done > 1- I write this in my page.py: full_image = meta.ImageField(upload_to > ="/media/images/", null = True, blank = True ) > 2-i opened the admin page and load

images path[please adrian help]

2006-01-18 Thread mary . adel
Dear ALL I still have a problem with the picture feild here what i have done 1- I write this in my page.py: full_image = meta.ImageField(upload_to ="/media/images/", null = True, blank = True ) 2-i opened the admin page and load the pictuer i need i found that it creat a folder and it's path is /

Re: Preserving data through db updates/changes

2006-01-18 Thread Jeremy Dunck
On 1/18/06, Jeffrey E. Forcier <[EMAIL PROTECTED]> wrote: > > I do something similar to both Eric and Maniac, e.g. I create SQL > language files which contain ALTER TABLE and similar statements, and > apply those to a 'base' database to transform it into the most recent > version without losing da

Re: Preserving data through db updates/changes

2006-01-18 Thread Jeffrey E. Forcier
I do something similar to both Eric and Maniac, e.g. I create SQL language files which contain ALTER TABLE and similar statements, and apply those to a 'base' database to transform it into the most recent version without losing data. I haven't automated it yet like Eric has, but it won't

Re: Preserving data through db updates/changes

2006-01-18 Thread Eric Walstad
Luke Skibinski Holt wrote: ... > I'm just looking for a quick way to update my models in the development > stage while keeping test data. Hey Luke, I keep sample/test data in sql files and have a script that reloads that data into my database. The script: - recreate the app's database (dropdb,

unordered_list... explanation?

2006-01-18 Thread gabor
hi, i'm trying to use the unordered_list filter, with little success :( i tried the provided example ( ['States', [['Kansas', [['Lawrence', []], ['Topeka', [, ['Illinois', [ ), and it works, but i am unable to understand it. i wanted to create a simple flat list. i thought i can u

Re: Preserving data through db updates/changes

2006-01-18 Thread Maniac
Luke Skibinski Holt wrote: I'm just looking for a quick way to update my models in the development stage while keeping test data. I once wrote how I do it: http://groups.google.com/group/django-users/browse_frm/thread/251a42339efc79df/94ab85140ec35c97?lnk=st&rnum=3#94ab85140ec35c97

Re: django on dreamhost

2006-01-18 Thread James Bennett
On 1/18/06, patrick k <[EMAIL PROTECTED]> wrote: > i had some problems with dreamhost & django lately. talking to dreamhost, > they send the following answer: > > "Dreamhost is best place for django Except for places that specialize in Django ;) -- "May the forces of evil become confused on the

Re: django on dreamhost

2006-01-18 Thread Eugene Lazutkin
Jeremy Jones wrote: I already have a Dreamhost account and am looking into writing an app using Django. I was wondering what the consensus is regarding running a Django-powered app on Dreamhost (presumably using fastcgi). Does it mostly work most of the time? Any unreasonable amount of qu

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-18 Thread Krietjur
Okay, now it's very fast :) I forgot that my linux box was busy compiling something :) Thanks for the help everyone

Re: django on dreamhost

2006-01-18 Thread Jeremy Jones
patrick k wrote: i had some problems with dreamhost & django lately. talking to dreamhost, they send the following answer: "Dreamhost is best place for django, there have been a few recent hardware and network issues that have problems but the recent downtimes have not been related to a specifi

Re: django on dreamhost

2006-01-18 Thread patrick k
i had some problems with dreamhost & django lately. talking to dreamhost, they send the following answer: "Dreamhost is best place for django, there have been a few recent hardware and network issues that have problems but the recent downtimes have not been related to a specific application such

Re: django on dreamhost

2006-01-18 Thread Adrian Holovaty
On 1/18/06, Jeremy Jones <[EMAIL PROTECTED]> wrote: > I already have a Dreamhost account and am looking into writing an app > using Django. I was wondering what the consensus is regarding running a > Django-powered app on Dreamhost (presumably using fastcgi). Does it > mostly work most of the ti

django on dreamhost

2006-01-18 Thread Jeremy Jones
I already have a Dreamhost account and am looking into writing an app using Django. I was wondering what the consensus is regarding running a Django-powered app on Dreamhost (presumably using fastcgi). Does it mostly work most of the time? Any unreasonable amount of quirkiness? Any insight

Re: How to setup WingIDE with Django?

2006-01-18 Thread Eric Walstad
On Wednesday 18 January 2006 09:30, den1jay wrote: > Can anyone please provide a solution to my question, thanks in advance. > > Jay. Jay, Have you tried running django-admin.py in interactive debug mode from within WingIDE? Eric.

Re: How to setup WingIDE with Django?

2006-01-18 Thread den1jay
Can anyone please provide a solution to my question, thanks in advance. Jay.

Re: broken link in templates_python

2006-01-18 Thread Adrian Holovaty
On 1/18/06, Luke Skibinski Holt <[EMAIL PROTECTED]> wrote: > The first link in this section > (http://www.djangoproject.com/documentation/templates_python/#subclassing-context-djangocontext) > is broken. Thanks, Luke. I've fixed it. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | c

broken link in templates_python

2006-01-18 Thread Luke Skibinski Holt
The first link in this section (http://www.djangoproject.com/documentation/templates_python/#subclassing-context-djangocontext) is broken. It should be like this (with two dashes): http://www.djangoproject.com/documentation/settings/#template-context-processors Luke Skibinski Holt

urls question

2006-01-18 Thread Huy Do
Should it be possible for me to do the following in my urls.py from django.conf.urls.defaults import * from myproject.myapp.models import MyModel def generic_crud(model): return generic_list(model), generic_create(model), generic_update(model), def generic_list(model): info_dict = { 'm

Re: blog archive links

2006-01-18 Thread Bryan Murdock
On 1/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all, > > Sorry for the off-topic but can you please tell me how do you get the > code for this applications??? > Via svn, wget??? svn co http://code.djangoproject.com/svn/djangoproject.com/ downloads all of djangoproject.com to a di

Re: Preserving data through db updates/changes

2006-01-18 Thread Julio Nobrega
Just dump the data into a file and reload it after re-creating the tables. At most, you will have to edit a few SQL fields/values to comply with the new column/table names. Doing it automated is *really* hard and I don't think it will be better (or more accurate) than just re-inserting the da

Re: blog archive links

2006-01-18 Thread [EMAIL PROTECTED]
Hi all, Sorry for the off-topic but can you please tell me how do you get the code for this applications??? Via svn, wget??? many thx in advance, IvO

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-18 Thread Krietjur
Thanks! That worked very well. I also got the media directory ok now, and I'm able to open the admin interface. Now I can continue exploring django :) I must say that I'm happy allready with what Django is doing, but it's a bit slow. I'm running Django on a dual P200mmx, perhaps that's not enough

Preserving data through db updates/changes

2006-01-18 Thread Luke Skibinski Holt
How probable would it be to implement a means of updating a database schema when only minor changes occur? 'minor' has to be defined, but the removal of columns or entire models could also be considered depending on their impact to the rest of the app/project. With no regard for the actual data,

Re: assign or rename a variable in templates

2006-01-18 Thread Bryan Murdock
On 1/18/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 1/17/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > > Is it possible to somehow rename or assign one variable to another in > > a template? All the generic views provide an object_list, except > > archive_index which provides latest.

Re: assign or rename a variable in templates

2006-01-18 Thread Adrian Holovaty
On 1/17/06, Bryan Murdock <[EMAIL PROTECTED]> wrote: > Is it possible to somehow rename or assign one variable to another in > a template? All the generic views provide an object_list, except > archive_index which provides latest. I'm trying to write a generic > template that loops through the o

Re: Bulk delete?

2006-01-18 Thread Adrian Holovaty
On 1/18/06, hugo <[EMAIL PROTECTED]> wrote: > >Ok; in the absence of any objections, I've just committed the change, > >and closed off the ticket. Bulk delete is now available in > >magic-removal. > > Hum. That's a _tad_ bit fast committing for me - just because nobody > commented on it doesn't sa

Re: making slug field unique

2006-01-18 Thread Bryan Murdock
On 1/17/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Tuesday 17 Jan 2006 9:04 pm, Bryan Murdock wrote: > > OK, so as a database dummy, how exactly is this done? Do I pipe > > the output of 'manage.py sqlreset myapp' to psql, or is there a > > less drastic way since I know I've only chan

Re: One-To-One problem in 0.91?

2006-01-18 Thread gattomatto
The above is -- at least partially -- true. I checked again today with a fresh install: The API example (OneToOne Relation) runs without a glitch, no problem at all. But, the Admin interface run on the example code is somewhat screwed: I'm getting a listing (Select restaurant to change..) with ev

Re: Bulk delete?

2006-01-18 Thread hugo
>Ok; in the absence of any objections, I've just committed the change, >and closed off the ticket. Bulk delete is now available in >magic-removal. Hum. That's a _tad_ bit fast committing for me - just because nobody commented on it doesn't say there aren't any comments on it in the queue :-) One

Re: Bulk delete?

2006-01-18 Thread Russell Keith-Magee
> What happens if you call Something.objects.delete() without any > arguments? Does it delete every row from the table? Why? Are you saying spontaneous accidental destruction of the entire table would be a _bad_ thing? :-) > Something.objects.delete(DELETE_ALL=True) > > Calling the delete() meth

Re: Dreamhost - problem with Django installation

2006-01-18 Thread iGL
>must be 500 and 'also favicon not found' yes, of course, exactly like that.

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-18 Thread iGL
Hi Krietjur, Probably, you need to try something like: SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath sys.path+['/home/kris/my_django_project_dir'] SetEnv DJANGO_SETTINGS_MODULE myproject.settings

Re: extra context processors

2006-01-18 Thread Alice
I opted to writing a small bit of middleware in the end and adding the data I wanted into the request object itself to make it available all the time regardless of Context or DjangoContext. Less fiddly but probably not good practice. Luke Skibinski Holt

Re: Do I use @login_required to extend authentication?

2006-01-18 Thread tonemcd
Amit, *Many thanks* - that is *exactly* the kind of stuff I need to know about. We have people who can write the decorators for LDAP authentication, and will also be able to do the same for Shibboleth authentication too (we'll pick up environment variables from an Apache 2 instance). I didn't wan

Re: Bulk delete?

2006-01-18 Thread Simon Willison
On 17 Jan 2006, at 12:15, Russell Keith-Magee wrote: Ok; in the absence of any objections, I've just committed the change, and closed off the ticket. Bulk delete is now available in magic-removal. What happens if you call Something.objects.delete() without any arguments? Does it delete eve