Re: Django on win xp

2006-07-21 Thread Tyson Tate
Wait, Linux or XP? Regardless, you might want to read the documentation first: http://www.djangoproject.com/documentation/install/ -Tyson On Jul 21, 2006, at 9:52 PM, Rajeshwar Singh Jenwar wrote: > Hi All, > Can anybody provide step by step procedure for installing django on > Win XP on

Django on win xp

2006-07-21 Thread Rajeshwar Singh Jenwar
Hi All, Can anybody provide step by step procedure for installing django on Win XP on Linux with MySQL. Thanks in advance. rsj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Tag Definition

2006-07-21 Thread Malcolm Tredinnick
On Sat, 2006-07-22 at 02:39 +, Martin wrote: > Hi, > > I was wondering what is the best way to define new tags which don't > really belong to a specific application. > For example, I would like to create a urlmatch tag: > > {% urlmatch "^accouonts/login/$" } >Should only be display the

Tag Definition

2006-07-21 Thread Martin
Hi, I was wondering what is the best way to define new tags which don't really belong to a specific application. For example, I would like to create a urlmatch tag: {% urlmatch "^accouonts/login/$" } Should only be display the current url matches the specified reg-ex {% endurlmatch %}

sort custom list display column

2006-07-21 Thread Vixiom
Hi, I have a 'Product' model that has the following list_display list_display = ('title','category','price_adjusted', 'on_sale', 'featured', 'visible') 'price_adjusted' is the following method def price_adjusted(self): if self.on_sale: return

Re: CSS and JavaScript manager

2006-07-21 Thread Tyson Tate
On Jul 21, 2006, at 3:19 PM, [EMAIL PROTECTED] wrote: > I'm thinking about making a simple JavaScript and CSS manager that > would look like this: > - It generates one JavaScript and one CSS file for a current > page/template This could get ugly fast when you take into account CSS cascading.

Re: Djboss? Jyngo?

2006-07-21 Thread Kenneth Gonsalves
On 22-Jul-06, at 12:27 AM, [EMAIL PROTECTED] wrote: > The JRuby project recently announced that their next release will > include the ability to run Ruby on Rails within J2EE application > servers like JBoss or WebSphere. Would there be any interest in > pursuing a similar project for Django +

Malcolm Tredinnick's SQL puzzle

2006-07-21 Thread Maciej Bliziński
Malcolm asked, how to find the classes that were attended by all of the students from a given list. http://www.pointy-stick.com/blog/2006/06/12/sql-puzzle/ Then, he proposed a solution with HAVING clause: http://www.pointy-stick.com/blog/2006/06/13/sql-puzzle-solution/ I'd like to submit

Re: CSS and JavaScript manager

2006-07-21 Thread [EMAIL PROTECTED]
it would be rather pre-generated - if style_2_4_.css doesn't exist - generate it, else use it. When I edit snippet id 4 then kill all css files with_4_ or regenerate them :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: CSS and JavaScript manager

2006-07-21 Thread Jay Klehr
I'm not sure I fully understand your suggestion, I just wanted to bring up the point of JS and CSS caching, and speed of loading. In the PHP world (where I've had most of my experience) serving CSS files through a PHP script is always slower than just serving a static CSS file (even if the

CSS and JavaScript manager

2006-07-21 Thread [EMAIL PROTECTED]
I'm thinking about making a simple JavaScript and CSS manager that would look like this: - It generates one JavaScript and one CSS file for a current page/template - It uses a database or a pickle/shelve/flat files (?) to store code snippets: id, code, comment, show_always - Extra code snippets

Re: Can't create new app

2006-07-21 Thread [EMAIL PROTECTED]
a) does your app is called "menues" ? (typos?) b) try it on the django server. If it works the mod_python doesn't have all the settings it needs :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Can't create new app

2006-07-21 Thread Facundo Casco
Hi, I've just installed Django (last development version) and when I add my app to the settings.py file I get this error: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299,

Re: (Re)ordering stuff

2006-07-21 Thread Martin Robinsson
"reorder stuff" is quite vague... If you mean specifying the order of and which fields should appear on the admin page you can do that using the ´´fields´´ parameter to Admin as is shown in tutorial 2: http://www.djangoproject.com/documentation/tutorial2/ If you want to control the order in

Re: Djboss? Jyngo?

2006-07-21 Thread mamcxyz
I too waiting for .NET support... I try to run a django site and found that os module is not done... so I think is a large way to go... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: (Re)ordering stuff

2006-07-21 Thread [EMAIL PROTECTED]
Admin panel can be customized, see this docs: http://www.djangoproject.com/documentation/tutorial2/ and similar tutorial, in Polish can be found on my site - www.linux.rk.edu.pl some tips are also in http://www.djangoproject.com/documentation/model_api/

Re: request for applications

2006-07-21 Thread Ian Holsman
On 22/07/2006, at 2:54 AM, Tim wrote:I'm wondering if anyone out there has build a classified adsapplication. I'm pretty new to Django and Python (but I LOVE it so far)and I find I really learn from example (compared to reading the docs).I guess I'm mainly looking for the models, the urls stuff,

(Re)ordering stuff

2006-07-21 Thread Baczek
Hello, world! I finally convinced my boss to ditch php in favour of django (this little screencast with an automagical admin generation made his jaw hit the floor), but I've got a question - is it possible to reorder stuff? It's not covered in the tutorial and it is one of the most basic needs

Re: Djboss? Jyngo?

2006-07-21 Thread Jacob Kaplan-Moss
On Jul 21, 2006, at 1:57 PM, [EMAIL PROTECTED] wrote: > The JRuby project recently announced that their next release will > include the ability to run Ruby on Rails within J2EE application > servers like JBoss or WebSphere. Would there be any interest in > pursuing a similar project for Django +

Re: And-ing together searches on a ManyToMany field.

2006-07-21 Thread Neilen Marais
On Fri, 21 Jul 2006 09:50:15 +1000, Malcolm Tredinnick wrote: > Because of the way QuerySets are constructed, there's no easy way to > tell when a user is walking into this case. The current behaviour may > reasonably be considered a semi-bug, however it's unavoidable at the > moment since we

Djboss? Jyngo?

2006-07-21 Thread [EMAIL PROTECTED]
The JRuby project recently announced that their next release will include the ability to run Ruby on Rails within J2EE application servers like JBoss or WebSphere. Would there be any interest in pursuing a similar project for Django + Jython? Jython has been stuck at version 2.1 for a long

Re: CGI Setup

2006-07-21 Thread Martin
OK, sounds simple enough but guess my code needs some tweaking to match your coding guidelines So, will change it and create the ticket during the weekend, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Is Django the framework I've been looking for?

2006-07-21 Thread ToddG
Elver Loho wrote: > In CherryPy, every "directory" of the website is mapped to a class > with its exposed methods being the "files" in that directory. It's a > godsend as you can write any kind of functionality (shopping cart, > blog, whatnot) into a class or two and plop it anywhere else. Very >

Re: [OT] Is Django the framework I've been looking for?

2006-07-21 Thread Josh Trutwin
On Fri, 21 Jul 2006 11:56:14 -0500 Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Jul 21, 2006, at 11:50 AM, Josh Trutwin wrote: > > What's the digg link out of curiousity? > > http://digg.com/offbeat_news/Dog_eats_Nintendo..._DS_Lite%3B_Oh% > 2C_and_NIntendo_s_Customer_Service_rocks. >

Re: Create default data at syncdb

2006-07-21 Thread Seth Buntin
Just what I needed. Thanks again. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email

Re: CGI Setup

2006-07-21 Thread Adrian Holovaty
On 7/21/06, Martin <[EMAIL PROTECTED]> wrote: > My only problem is that I don't really have a server where I can put > the code on (at least not at the moment). > > So, what's the best way to proceed here? No problem at all. You can post the code as an attachment to a ticket in Django's ticket

Re: CGI Setup

2006-07-21 Thread Martin
Hi, I'm definitely willing to contribute. I like django, so I guess you will see me around here more often in the future (it's a shame that I didn't found django a few month ago). My only problem is that I don't really have a server where I can put the code on (at least not at the moment). So,

Re: Create default data at syncdb

2006-07-21 Thread Adrian Holovaty
On 7/21/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > Is there a way to create data from a model when running syncdb or > something? I have a couple of tables that hold the same data and when > I during development I sometime reset my data can I put this in the > model or something and it create

Re: Duct tape

2006-07-21 Thread Waylan Limberg
On 7/21/06, Elver Loho <[EMAIL PROTECTED]> wrote: > > On 7/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > > > On Jul 20, 2006, at 9:58 PM, Elver Loho wrote: > > > Speaking of duct-tape, though. The various "magic" bits of Django > > > seemed, to me at least, to be somewhat duct-tape-ish.

Create default data at syncdb

2006-07-21 Thread Seth Buntin
Is there a way to create data from a model when running syncdb or something? I have a couple of tables that hold the same data and when I during development I sometime reset my data can I put this in the model or something and it create the data when the tables are created?

Re: request for applications

2006-07-21 Thread Waylan Limberg
On 7/21/06, Tim <[EMAIL PROTECTED]> wrote: > > I'm wondering if anyone out there has build a classified ads > application. I'm pretty new to Django and Python (but I LOVE it so far) > and I find I really learn from example (compared to reading the docs). > I guess I'm mainly looking for the

Re: Users in Django admin

2006-07-21 Thread Seth Buntin
Thanks Adrian. BTW nice framework!!! I have thouroghly enjoyed working with it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Users in Django admin

2006-07-21 Thread Adrian Holovaty
On 7/21/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > I am new to Django (Rails convert) and I have a quick question. I am > trying to build a basic CMS for my company. For each entry into the > system I want to align the user that is logged in to the entry. I have > a foreign key for the user

Users in Django admin

2006-07-21 Thread Seth Buntin
I am new to Django (Rails convert) and I have a quick question. I am trying to build a basic CMS for my company. For each entry into the system I want to align the user that is logged in to the entry. I have a foreign key for the user which works because when I go to the admin I get a

Re: Duct tape

2006-07-21 Thread Simon Willison
On 21 Jul 2006, at 17:55, Elver Loho wrote: >> I wonder if you could be a bit more explicit here... I can't think of >> a single place where you "just set a variable and have it do >> something cool", so I'd like to know more about what scares you. > > The admin module?

Re: Duct tape

2006-07-21 Thread James Bennett
On 7/21/06, Elver Loho <[EMAIL PROTECTED]> wrote: > On 7/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > I wonder if you could be a bit more explicit here... I can't think of > > a single place where you "just set a variable and have it do > > something cool", so I'd like to know more

Re: Duct tape

2006-07-21 Thread Ben Bangert
I'm inclined to agree with Jacob. On the note of "magic", it never ceases to amaze me how people complain that there's too much of it, but also complain when they have to keep passing the same objects around (a common sign of no/little magic). CherryPy has its share of magic as well, including

Re: request for applications

2006-07-21 Thread James Bennett
On 7/21/06, Tim <[EMAIL PROTECTED]> wrote: > I'm wondering if anyone out there has build a classified ads > application. Yes. :) -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ You received this

Re: [OT] Is Django the framework I've been looking for?

2006-07-21 Thread Jacob Kaplan-Moss
On Jul 21, 2006, at 11:50 AM, Josh Trutwin wrote: > What's the digg link out of curiousity? http://digg.com/offbeat_news/Dog_eats_Nintendo..._DS_Lite%3B_Oh% 2C_and_NIntendo_s_Customer_Service_rocks. Wow, almost 1200 diggs now... schweet. Jacob

request for applications

2006-07-21 Thread Tim
I'm wondering if anyone out there has build a classified ads application. I'm pretty new to Django and Python (but I LOVE it so far) and I find I really learn from example (compared to reading the docs). I guess I'm mainly looking for the models, the urls stuff, the views and template (and any

Re: [OT] Is Django the framework I've been looking for?

2006-07-21 Thread Josh Trutwin
On Fri, 21 Jul 2006 09:14:39 -0500 Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > * My personal server just got Dugg and handled it without > hiccupping. The box cost me around $3k, has 8GB of RAM and dual > Opteron processors; load peaked around 0.7. What's the digg link out of

Re: CGI Setup

2006-07-21 Thread Waylan Limberg
On 7/21/06, Martin <[EMAIL PROTECTED]> wrote: > > Adrian, > > > So, if anyone is interested in the code, I could make it available > somewhere... > There is a short reference to CGI on the wiki[1]. Perhaps you could point to your code from there? [1]:

Re: Is Django the framework I've been looking for?

2006-07-21 Thread Kenneth Gonsalves
On 21-Jul-06, at 7:44 PM, Jacob Kaplan-Moss wrote: >>> How about memory footprint? Can I run 100+ >>> Django sites on a shared server and expect smooth sailing? > > Well, it certainly depends on the server, of course -- you obviously > get what you pay for. > > The memory consumption for a

Re: How to debug ajax transfer

2006-07-21 Thread limodou
On 7/21/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > I use FireBug https://addons.mozilla.org/firefox/1843/ with > mozilla. > it lets me see each Ajax request, with the responses in a separate window. > (so you can see the actual exception). > so do I. > (I also put modified the debug.py so it

Re: CGI Setup

2006-07-21 Thread Adrian Holovaty
On 7/20/06, Martin <[EMAIL PROTECTED]> wrote: > I have already implemented a CGI interface for Django... I'm still in a > test phase but so dar it does look prety good. > > And the performance it not really bad. I don't have any comparison with > a FCGI or mod_python installation, but it fast

Duct tape

2006-07-21 Thread Jacob Kaplan-Moss
On Jul 20, 2006, at 9:58 PM, Elver Loho wrote: > Speaking of duct-tape, though. The various "magic" bits of Django > seemed, to me at least, to be somewhat duct-tape-ish. Yeah, it was > certainly useful being able to just set a variable and have it do > something cool that you need, but it made

login and last_login

2006-07-21 Thread patrickk
when I use login(request, user), shouldn´t the field last_login be updated automatically? patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django 0.91 and SVN (magic removal) on Dreamhost

2006-07-21 Thread Waylan Limberg
On 7/20/06, Julio Nobrega <[EMAIL PROTECTED]> wrote: > > Hi all! > > After some time I've managed to be able to run Django 0.91 and and > the SVN version together on Dreamhost. I had a few projects done in > 0.91 and I couldn't simply "svn update" the django_src directory. > > I don't know

Re: shared apps accross multiple sites/projects

2006-07-21 Thread Brian Hamman
Sweet. Thanks guys for the quick answer. This is very reassuring. Of course, this also means that I'm now looking at several hours of reorganization. Part of me was hoping you'd say "No! Don't touch." >From Jacob's example it looks like you guys take it a step further and more or less invert

Re: Generic Create with Url Parameters

2006-07-21 Thread Malcolm Tredinnick
On Fri, 2006-07-21 at 22:00 +1000, Malcolm Tredinnick wrote: [...] > If you want to pass extra information into a generic view that requires > some processing (as in this case), write a little view of your own that > does the processing and then passes off handling to the generic view: > >

Re: Having trouble with views

2006-07-21 Thread Malcolm Tredinnick
On Fri, 2006-07-21 at 04:53 -0700, Tomas Jacobsen wrote: > I have done some more reading of other tutorials, and Im slowly getting > further. I now understand that I can use django generic views instead > of writing my own view. (sorry Malcolm, I diden't get that before). I > have now made one

Re: Generic Create with Url Parameters

2006-07-21 Thread Malcolm Tredinnick
On Fri, 2006-07-21 at 01:16 -0700, Steve Wedig wrote: > Hello, > > This may be a rudimentary question, sorry if is... > > I would like to use the generic create_object view, but populate a > hidden form field with a location_id argument which is extracted from > the url. I've tried this url

New - monkey

2006-07-21 Thread Rajeshwar Singh Jenwar
Hi ALL, I m new to Django. My linux box does not have net connection. Can someone suggest me how to intsall Django with MySQL on Linux RH FC4 without net connection. Anyway i can transfer file on Linux machine from my windows machine by FTP. --~--~-~--~~~---~--~~

Re: Having trouble with views

2006-07-21 Thread Tomas Jacobsen
I have done some more reading of other tutorials, and Im slowly getting further. I now understand that I can use django generic views instead of writing my own view. (sorry Malcolm, I diden't get that before). I have now made one url pattern for my project listing. It's listing all of my project,

Re: How to debug ajax transfer

2006-07-21 Thread Ian Holsman
I use FireBug https://addons.mozilla.org/firefox/1843/ with mozilla.it lets me see each Ajax request, with the responses in a separate window.(so you can see the actual exception).(I also put modified the debug.py so it prints a stack trace at the very top of the HTML as well)regardsIanOn

One-to-Many with a twist?

2006-07-21 Thread flipflop
I have a database of articles, where I want each article to have several prices for different price groups. So I have the following: class PriceGroup (models.Model): description = models.CharField(maxlength=255) code = models.IntegerField(unique=1) class Admin: pass def

Generic Create with Url Parameters

2006-07-21 Thread Steve Wedig
Hello, This may be a rudimentary question, sorry if is... I would like to use the generic create_object view, but populate a hidden form field with a location_id argument which is extracted from the url. I've tried this url pattern below, but get this error: create_object() got an unexpected

Re: How to debug ajax transfer

2006-07-21 Thread limodou
On 7/21/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-07-21 at 15:53 +0800, limodou wrote: > > On 7/21/06, limodou <[EMAIL PROTECTED]> wrote: > > > Recently I wrote some ajax code in my django project. And as I > > > invoking xmlhttprequest to call view methods, and sometimes

Re: How to debug ajax transfer

2006-07-21 Thread Malcolm Tredinnick
On Fri, 2006-07-21 at 15:53 +0800, limodou wrote: > On 7/21/06, limodou <[EMAIL PROTECTED]> wrote: > > Recently I wrote some ajax code in my django project. And as I > > invoking xmlhttprequest to call view methods, and sometimes I see > > nothing happened in browser, but I found some messages in

Re: How to debug ajax transfer

2006-07-21 Thread limodou
On 7/21/06, limodou <[EMAIL PROTECTED]> wrote: > Recently I wrote some ajax code in my django project. And as I > invoking xmlhttprequest to call view methods, and sometimes I see > nothing happened in browser, but I found some messages in development > server's log output, just like: > >

How to debug ajax transfer

2006-07-21 Thread limodou
Recently I wrote some ajax code in my django project. And as I invoking xmlhttprequest to call view methods, and sometimes I see nothing happened in browser, but I found some messages in development server's log output, just like: [21/Jul/2006 08:35:36] "POST /easyadmin/add/users/TPermission/