Source of Project using dojo and reportlab

2006-10-14 Thread coulix
Hello, I have to do a comparison between Java EE and what ever framework i like for a simple student report system. I started by Django since i dont know anything about java EE, and here is the result. To see it working http://www.coulix.net/demo Sources http://www.coulix.net/projects/student-re

Mad SELECT with the admin view.

2006-10-14 Thread ggundy
I'm getting an error (bubbled up from PostgreSQL) when visiting the Admin page for a table I have called "staged_order." Here is the class: *** class StagedOrder(models.Model): def __str__(self): return 'FIXME' staging_area = models.ForeignKey(StagingAr

Re: What IDE do you use? (semi-OT)

2006-10-14 Thread Bjørn Stabell
TextMate also has a Django bundle so you get syntax hilighting and snippets for Django models, templates, etc. If you name view and model files the same, you can also easily switch between them using Option+Command+Up/Down. --~--~-~--~~~---~--~~ You received this

How to override the admin save method?

2006-10-14 Thread iain duncan
I got some previous advice on overriding how the admin does delete which was pretty straightforward as it does just uses a url. The Save button doesn't seem to work that way. I would like to save a file name not as it is given, but in an altered format based on another field, so before the file g

Re: Choosing a format for built-in comments

2006-10-14 Thread Tool69
Hi Waylan, Thanks for pointing me this site, I've learned a lot. The problem is that I'm using the built-in freecomment, so if I need to add a field I'm obliged to change the original Django code in \django\contrib\comments. Is there any problem(s) with this ? --~--~-~--~~---

Re: Paginator Overhall

2006-10-14 Thread Afternoon
We have a modified Paginator class that is designed to provide Google-style abbreviated lists. It may be a useful starting point as it stores the page number and providers an __iter__ for displaying page lists. Rewriting this to produce unabbreviated page lists would be trivial. http://django.pas

admin interface for legacy database

2006-10-14 Thread Ewout ter Haar
I am trying to make use of the django admin, to use with a database which is normally managed by another (PHP) application. I ran inspectdb, and after tweaking the models a little bit, it works for basic fields like InterFields, CharFields etc. I would also like to use the ForeignKey features tha

Re: AttributeError thrown by Validator

2006-10-14 Thread Paul Childs
Thanks a million Rajesh! It is so great to have such a helpful community. Cheers, /Paul --~--~-~--~~~---~--~~ 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@googl

Re: Caching with cache middleware disabled?

2006-10-14 Thread [EMAIL PROTECTED]
RajeshD wrote: > > Any other ideas? > > Yes. You mention that you "use some available Django generic views". > Can you show us your urls.py? No problem, here is the complete urls.py: # -*- coding: utf-8 -*- from datetime import datetime from django.conf.urls.defaults import * from django.core

Re: Serialization on part of a model

2006-10-14 Thread Deryck Hodge
On 10/6/06, Daniel Roseman <[EMAIL PROTECTED]> wrote: > Thanks a lot, this is exactly the sort of thing I was after. > Unfortunately, it doesn't seem to work on JSON. Running from the shell, > I get the following: > > >>> serializers.serialize('json', sec.article_set.all(), fields=('id', > >>> 'n

Re: Serialization on part of a model

2006-10-14 Thread Deryck Hodge
On 10/5/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > It already has my attention. I looked it over a week ago when I had some > time to put into bugs and it didn't seem obviously insane (which is the > first hurdle to get over). I wanted to think about the API a little bit > -- it's not obv

Re: Django + views like a threads

2006-10-14 Thread gabor
pako wrote: > It is possible to run view method in new thread? > For example if i have > > (r'^items/(?P\d)/$', 'cyber.core.views.list_items') > > and function list_items do sleep(10) a new requests to django > application will not be acceptable, cause main thread is currently > sleeping by list

Re: Django + views like a threads

2006-10-14 Thread pako
gabor wrote: > pako wrote: > > It is possible to run view method in new thread? > > For example if i have > > > > (r'^items/(?P\d)/$', 'cyber.core.views.list_items') > > > > and function list_items do sleep(10) a new requests to django > > application will not be acceptable, cause main thread is c

Re: Caching with cache middleware disabled?

2006-10-14 Thread RajeshD
> The part that serves the front-page is: > > (r'^$','django.views.generic.list_detail.object_list', > dict( > queryset=Post.objects.filter(state=PUBLISHED).filter(pub_date__lte=datetime.now()), > paginate_by=10, > allow_empty=True)), In th

Re: How to override the admin save method?

2006-10-14 Thread Julio Nobrega
Override the "save" method. http://www.djangoproject.com/documentation/model_api/#overriding-default-model-methods I use nesh's ImageWithThumbnailField() which does this file rename on save, you might want to check its source code for tips. http://trac.studioquattro.biz/djangoutils/wik

Re: Auth and flash

2006-10-14 Thread Rob Hudson
Use an Apache based authentication on that directory? Roodie wrote: > Hi, > > I am working on a web application at the moment, and I have a question > about the authentication mechanism. > The interface of the application will be a flash app. No page reloading, > no redirects - only a big flash f

Re: [tool] Autodoc (a script to grap and generate django documentation at html format)

2006-10-14 Thread Nicolas Steinmetz
Jyrki Pulliainen wrote: > Own trivial projects are the best way to learn things. Have fun diving > in to that world =) Done in a cleaner way (with use of pysvn and docutils lib). Nicolas --~--~-~--~~~---~--~~ You received this message because you are subscrib

print_r

2006-10-14 Thread code enquest
in PhP i used to print_r(array) to see what if got in my array that I want to bring on the screen. Smarty even had a popup screen to show this. How can I see in Django what I got in the view? So that working in the template goes a tat faster? What is the print_r($array) in the template or Djan

print_r

2006-10-14 Thread code enquest
in PhP i used to print_r(array) to see what if got in my array that I want to bring on the screen. Smarty even had a popup screen to show this. How can I see in Django what I got in the view? So that working in the template goes a tat faster? What is the print_r($array) in the template or Django

Re: print_r

2006-10-14 Thread Steven Armstrong
On 10/14/06 19:46, code enquest wrote: > in PhP i used to print_r(array) to see what if got in my array that I > want to bring on the screen. Smarty even had a popup screen to show this. > > How can I see in Django what I got in the view? So that working in the > template goes a tat faster? Wha

Re: print_r

2006-10-14 Thread Bryan L. Fordham
code enquest wrote: >in PhP i used to print_r(array) to see what if got in my array that I >want to bring on the screen. Smarty even had a popup screen to show this. > >How can I see in Django what I got in the view? So that working in the >template goes a tat faster? What is the print_r($array)

Re: print_r

2006-10-14 Thread code enquest
Steven Armstrong schreef: > On 10/14/06 19:46, code enquest wrote: > >> in PhP i used to print_r(array) to see what if got in my array that I >> want to bring on the screen. Smarty even had a popup screen to show this. >> >> How can I see in Django what I got in the view? So that working in th

Re: print_r

2006-10-14 Thread Steven Armstrong
On 10/14/06 20:11, code enquest wrote: > Steven Armstrong schreef: >> On 10/14/06 19:46, code enquest wrote: >> >>> in PhP i used to print_r(array) to see what if got in my array that I >>> want to bring on the screen. Smarty even had a popup screen to show this. >>> >>> How can I see in Djang

doctests and type(_) is bool ?

2006-10-14 Thread dummy
Hi all, I'm currently writing some doctests for a model and got the following error message which I don't understand: Failed example: print q Exception raised: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/test/doctest.py", line 1243, in _

Adding to a Model while operational?

2006-10-14 Thread [EMAIL PROTECTED]
Hey All, Just wondering if there is a quick way to add something to a model, without Django throwing a hissy fit with the existing entries in the database because they are missing the data for the new fields. Allow me to illustrate, say I have the following model: class Foo(models.Model):

adding related objects

2006-10-14 Thread Vittorino Parenti
Hello world, these my models: *class* Anagrafica (models.Model): /## generic fields/ dateCreate = models.DateTimeField(auto_now_add=True, verbose_name="Data Creazione") dateLastModify = models.DateTimeField(auto_now=True, verbose_name="Data Modifica") /## table fields/ codic

Re: Adding to a Model while operational?

2006-10-14 Thread James Bennett
On 10/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > If I do this and go to edit an existing entry then django just throws > errors at me. Am I missing something? If you change the fields on your model, you must also change your database to match. For example, if you add a new field to the

Re: adding related objects

2006-10-14 Thread RajeshD
Hi, Add an __str__ method to your model classes (in particular to the class RuoloContatto). http://www.djangoproject.com/documentation/models/str/ -Rajesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Hosting on GoDaddy?

2006-10-14 Thread iain duncan
I just landed a job for a python CMS and custom shopping cart, but unfortunately the client has recently purchased 5 years of hosting from GoDaddy. Go Daddy says it supports Python CGI. He is prepared to switch hosts and bite the cost if need be, but obviously would prefer not to. Can anyone on

Re: print_r

2006-10-14 Thread [EMAIL PROTECTED]
I quite often plug in a nonsense command e.g. "fudge" just to raise the debug page, maybe with a few x = dir(some_var) .. to see what's in them. Once the Django debug page is up, you can have a really good poke around with things. The other alternative is the shell, which is great for working o

settings

2006-10-14 Thread devel - Fashion Content
Being a complete python newbie I have really struggled to get Django up and running with scgi. No I don't want to use mod_python if I can avoid it as apache is handling all trafic for several sites and only one will be using python. I can get 'manage.py runserver' started no problem, so I woul

Re: settings

2006-10-14 Thread Ian Holsman
hi Devel-Fashion content. I would suggest you start a 2nd apache instance on your machine, and let it run mod-python. you can then have the first apache reverse proxy the request to the mod-python apache. regards Ian. On 15/10/2006, at 8:08 AM, devel - Fashion Content wrote: > > Being a co

Best way to delete a project

2006-10-14 Thread Andy Skogrand
I am looking to just do a clean sweep and get rid of everything I have on a project. I considered deleting the files on the server and then wiping the entries off from the mySQL database. Is there a better way? --~--~-~--~~~---~--~~ You received this message becau

Re: Best way to delete a project

2006-10-14 Thread Kenneth Gonsalves
On 15-Oct-06, at 6:16 AM, Andy Skogrand wrote: > I am looking to just do a clean sweep and get rid of everything I have > on a project. I considered deleting the files on the server and then > wiping the entries off from the mySQL database. Is there a better way? no -- regards kg http://lawg

Re: Caching with cache middleware disabled?

2006-10-14 Thread [EMAIL PROTECTED]
oh I see now. Thanks a lot for pointing it out, I've pulled my hair so much I almost went bald! :-) Thanks a lot! Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: admin interface for legacy database

2006-10-14 Thread moberley
I'm not familiar with how ForeignKey fields interact with the database, but I wondered if you could have an instance of the Icon model that represented no icon (-1). Otherwise, I think you might need to override the model methods (probably the save() method), but that's just a guess. --~--~-

Re: Mad SELECT with the admin view.

2006-10-14 Thread Gabriel Gunderson
On 10/14/06, ggundy <[EMAIL PROTECTED]> wrote: > There must be some kind of spanning or looping going on as the SELECT > is full of this type of thing: "AND "country176"."world_region_id" = > "world_region177"."id" AND "shipper169"."message_type_id" = > "message_type178"."id" AND." I thought I wo

Ten very good Powerpoint Files added in the Powerpoint Link Given Below

2006-10-14 Thread P K Kothari
-- With warm regardsP K KothariDownload PowerPoint Presentation files:  http://powerpoint-presentation.blogspot.com Download eBooks:  http://ebook-share.blogspot.Download Audio books in MP3:  http://audiobook-share.blogspot.com Download Management Articles: http://management-article.blogspot.comDow

Re: mod_python help needed

2006-10-14 Thread moberley
doug wrote: > I am setting up mod_python on test server and having some problems. I > am getting 'it worked!' initially- I am able to access admin and set up > flatpages. But I hit a wall when just trying to do 'polls' app ... > getting 404s only . No problem when using development server. > > te

Re: Model-level DB cache

2006-10-14 Thread Jeremy Dunck
On 9/28/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > Django probably does start a transaction somewhere, I don't know. > Try to trace your session and you'll see. The way I read the spec for DB-API's connection.commit, all cursors are implicitly under transactions. ".commit Note