Re: Tinymce

2006-01-24 Thread Kenneth Gonsalves
On Wednesday 25 Jan 2006 2:35 am, [EMAIL PROTECTED] wrote: >         admin = meta.Admin(            js = ( >                 '/media/js/tiny_mce/tiny_mce.js', >                 '/media/js/tiny_mce/textareas.js', >             ),) you are still using absolute path for media. Try this: js = ('js/t

Re: django interface

2006-01-24 Thread Kenneth Gonsalves
On Tuesday 24 Jan 2006 4:53 pm, [EMAIL PROTECTED] wrote: > and the result is that mysite is working properly but the only > problem is Django admin interface as it is opened but with no css > or images or anything it looks weired it has just the words > inside it  but i don't know why is this happ

Re: several django questions, models, apache

2006-01-24 Thread oggie rob
> You could remove the "^" in the regex to say it matches any strings that > prefixed the intended url pattern: > r'^cefinban/recettes/(?P\d+)/$', > 'cefinban.recettes.views.detail') > to > r'recettes/(?P\d+)/$', 'cefinban.recettes.views.detail') But that doesn't really solve the problem, just

Re: 'django_admin_log' problem

2006-01-24 Thread [EMAIL PROTECTED]
Oh silly me. Feel so stupid. Thanks, Adrian

Re: 'django_admin_log' problem

2006-01-24 Thread Adrian Holovaty
On 1/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've been wondering what happened to 'django_admin_log' table. I have > started a few projects and initiated them as explained in the tutorial, > but I always miss the 'django_admin_log' table. This prevents me from > logging in into the a

'django_admin_log' problem

2006-01-24 Thread [EMAIL PROTECTED]
Hi, I've been wondering what happened to 'django_admin_log' table. I have started a few projects and initiated them as explained in the tutorial, but I always miss the 'django_admin_log' table. This prevents me from logging in into the admin interface. I did a quick search for 'django_admin_log'

Re: Admin CSS in mod_python vs. runserver

2006-01-24 Thread Darryl Caldwell
Yes, thanks the for reply. I found that info 30secs after sending the darn email. ;-( I will be more diligent in the future. -D On 1/24/06, Eric Walstad <[EMAIL PROTECTED]> wrote: On Tuesday 24 January 2006 11:10, Darryl Caldwell wrote:> Hi,>> When I connect to the admin system to my app via mod_p

Re: Admin CSS in mod_python vs. runserver

2006-01-24 Thread Adrian Holovaty
On 1/24/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > This is a FAQ (although it's not on the FAQ page). Please read the > docs first next time: > > I've added it to the FAQ. http://www.djangoproject.com/documentati

Re: Database API Boolean Queries

2006-01-24 Thread Adrian Holovaty
On 1/24/06, Brian Ray <[EMAIL PROTECTED]> wrote: > For Boolean matching I have been sending anything representative of > true or false as string, "t" here for PostgreSQL > : > > beerlist = beers.get_list(domestic__exact="t"); Try th

Re: several django questions, models, apache

2006-01-24 Thread Dody Suria Wijaya
greg wrote: i have to modifie my url.py file previously urlpatterns = patterns('', (r'^recettes/$', 'cefinban.recettes.views.index'), (r'^recettes/(?P\d+)/$', 'cefinban.recettes.views.detail'), . ) to (r'^cefinban/recettes/(?P\d+)/$', 'cefinban.recettes.views.detail

Tinymce

2006-01-24 Thread mary . adel
I am trying to make my interface better so i used tinymce 1- i downloaded it and i put the folder tiny_mce in my this path django/contrib/admin/media/js/tiny_mce 2-i created the tinyMCE.init as textareas.js in the same folder of tiny_mce 3-i wroet in my model the follows class META:

Re: Admin CSS in mod_python vs. runserver

2006-01-24 Thread Eric Walstad
On Tuesday 24 January 2006 11:10, Darryl Caldwell wrote: > Hi, > > When I connect to the admin system to my app via mod_python I am > not getting the css, images, or javascript. But when I run it using > the development server (python manage.py runserver) id do. > > Why is this? > > -D Hi Darryl,

Re: Admin CSS in mod_python vs. runserver

2006-01-24 Thread Darryl Caldwell
oops! Nevermind. Ok I see that this has been explained here: http://www.djangoproject.com/documentation/modpython/ -DOn 1/24/06, Darryl Caldwell <[EMAIL PROTECTED]> wrote: Hi, When I connect to the admin system to my app via mod_python I am not getting the css, images, or _javascript_. But when

Re: proper use of admin screens

2006-01-24 Thread oggie rob
> But what about web apps where users normally enter, update, and delete the > bulk of the application's data? Is it considered good practice to use the > built-in admin content management functionality as general purpose input > screens? I can't say if this is "good practice" or not. I'm sure

Admin CSS in mod_python vs. runserver

2006-01-24 Thread Darryl Caldwell
Hi, When I connect to the admin system to my app via mod_python I am not getting the css, images, or _javascript_. But when I run it using the development server (python manage.py runserver) id do. Why is this? -D

Re: Multiple Sites one User database

2006-01-24 Thread oggie rob
Hi Jakub, There are probably some other answers that will work, but if the only thing you want to do is allow logins on different servers, possibly the best solution is for you to either use LDAP/AD or some central authorization (many others have been interested in this also), or write your own sy

Re: editing multiple records

2006-01-24 Thread ToddG
> The Django admin site can't do that out of the box, but you could > create your own custom views that do that. I'm wondering when you say this, do you mean within the generated admin interface, or without using the auto-admin functions? This is an area I've long been a bit hazy on -- whether o

Multiple Sites one User database

2006-01-24 Thread Jakub Labath
Hi, I work for a publishing company that publishes several magazines and also maintains websites for those magazines online. Right now most of the websites live on different servers written in different languages. The plan is to unite them all and move to django. However the most important feat

Re: editing multiple records

2006-01-24 Thread patrick kranzlmüller
are there any plans to integrate this feature? thanks, patrick Am 24.01.2006 um 15:58 schrieb Adrian Holovaty: On 1/24/06, patrick k <[EMAIL PROTECTED]> wrote: we have several tables for things like "films of the week", "top trailers" and so on. these tables consist of 5 to 15 records. now

Re: Streaming large responses

2006-01-24 Thread mario ruggier
On Jan 24, 2006, at 3:57 PM, Adrian Holovaty wrote: On 1/24/06, hugo <[EMAIL PROTECTED]> wrote: Currently Django doesn't use this feature - but I think it might be cool if one would be able to pass a generator to HTTPResponse instead of a string and if Django would make use of the WSGI generato

Re: Streaming large responses

2006-01-24 Thread Jeremy Dunck
On 1/24/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > I agree that this would be a fine feature to add. Anybody willing to > work on a patch? I don't think I can do a patch, but I hoped to inform one. I was just reading the bits of WSGI 1.0 to understand what it says on the topic, and this no

Re: Streaming large responses

2006-01-24 Thread Maniac
hugo wrote: It's not required to use chunked transfer, but to know the full size before sending the content, you will have to generate the full content. Sure, if it is some big static thing, you can just ask the filesystem, but if the large stuff is created dynamically, you can't "just set Cont

Re: several django questions, models, apache

2006-01-24 Thread Adrian Holovaty
On 1/24/06, greg <[EMAIL PROTECTED]> wrote: > That works fine,nowin my template when i do {{recette.difficulte }} i > got the number 1,2 or 3 not the name of the difficulty. > SInce DIFFICULTY_CHOICES is not defined as a global variable and it is > not allowed to put DIFFICULTY_CHOICES in class; >

Re: editing multiple records

2006-01-24 Thread Adrian Holovaty
On 1/24/06, patrick k <[EMAIL PROTECTED]> wrote: > we have several tables for things like "films of the week", "top trailers" > and so on. these tables consist of 5 to 15 records. > now, the editors want to change all the records at once (which is > understandable, IMHO). is there any possibility

Re: Streaming large responses

2006-01-24 Thread Adrian Holovaty
On 1/24/06, hugo <[EMAIL PROTECTED]> wrote: > Currently Django doesn't use this feature - but I think it might be > cool if one would be able to pass a generator to HTTPResponse instead > of a string and if Django would make use of the WSGI generator feature > to send out chunked parts. But to do

several django questions, models, apache

2006-01-24 Thread greg
Hello everyone, finally after 3 weeks without Internet and django installed to play with i can ask questions. Firstly about the model, i am doing a recipes website to learn django and / utility. Here is a small part of the recette.py model of recettes app DIFFICULTY_CHOICES = ( (1, 'Si

Re: django interface

2006-01-24 Thread Brian Ray
Reread the section "Serving the admin files" from . So, you have to move or point to the location of the media files and they need to be accessable from Apache. hth, Brian Ray bray sent com http://brianray.chipy.org

Database API Boolean Queries

2006-01-24 Thread Brian Ray
Is there a full-proof way to query a Boolean Field? For Boolean matching I have been sending anything representative of true or false as string, "t" here for PostgreSQL : beerlist = beers.get_list(domestic__exact="t"); Alhtough, I

Re: Streaming large responses

2006-01-24 Thread hugo
>As far as I know such output doesn't have to be chunked. All you need is >to set Content-length and then just feed your your data in small parts >to stdout flushing it every time. That's at least how works my web-mail >system in C++ when outputting attachments. It's not required to use chunked t

customize get_id_list in AbstractSearching?

2006-01-24 Thread FX
Dear Hugo and other folks, I'm working on a django based app that I'd like to combine text search together with tag search. For instance, module storys is tagged with hugo's abstract tagging library, and when I get the search string, I want to do an "OR" search to return storyies that either the t

django interface

2006-01-24 Thread mary . adel
Dear All since i want to work with Appache and mod-python i opened httpd.conf and add thios lines DocumentRoot /var/www/mysite ServerName mysite.com ErrorLog logs/mysite.com-error_log CustomLog logs/mysite.com-access_log common SetHandler python-program PythonHandler d

Re: recovering from interpreter db errors

2006-01-24 Thread exoweb adrian
I do this at this start of every django interpreter session: >>> from django.core.db import db >>> db.cursor().close() >>> db.connection.autocommit() Then you don't need to do a rollback and lose your cursor every time you get a database error.

editing multiple records

2006-01-24 Thread patrick k
while integrating the django admin-interface for one of our customers, we got a complaint from the editors. we have several tables for things like "films of the week", "top trailers" and so on. these tables consist of 5 to 15 records. now, the editors want to change all the records at once (which

Re: Streaming large responses

2006-01-24 Thread Maniac
hugo wrote: But to do this there would have to be support for chunked transfers in the mod_python handler, too, so it wouldn't be a simple patch, but a bit more involved. As far as I know such output doesn't have to be chunked. All you need is to set Content-length and then just feed your y

Re: Streaming large responses

2006-01-24 Thread hugo
>I need to be able to serve potentially large log files with Django. (I >can't serve them as static files.) Rather than loading them into memory >and giving their contents to an HttpResponse object as a string, is it >possible to stream them back to the browser? I'm imagining something like >th

Streaming large responses

2006-01-24 Thread Richie Hindle
Hi, I need to be able to serve potentially large log files with Django. (I can't serve them as static files.) Rather than loading them into memory and giving their contents to an HttpResponse object as a string, is it possible to stream them back to the browser? I'm imagining something like th