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
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
thanks for putting my ad on your BLOG. Are you looking for a job
yourself?
Cheers,
Dom
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:
<>
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
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
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
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
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
> 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
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
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
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 /
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
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
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,
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
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
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
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
Okay, now it's very fast :) I forgot that my linux box was busy
compiling something :)
Thanks for the help everyone
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
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
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
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
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.
Can anyone please provide a solution to my question, thanks in advance.
Jay.
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
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
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
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
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
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
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
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,
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.
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
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
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
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
>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
> 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
>must be 500 and 'also favicon not found'
yes, of course, exactly like that.
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
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
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
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
47 matches
Mail list logo