Re: Python based web reporting tool?

2010-01-08 Thread Hinnack
I am using reportman http://reportman.sf.net it has a WYSIWYG Editor and a console tool or server with viewer and can export to HTML, PDF, ... 2010/1/7 Nick Lo > > I have a question for those of you doing web work with python. Is > > anyone familiar with a python based reporting tool? I am abou

Re: strange behaviour of webfaction

2010-01-08 Thread Brett Parker
On 08 Jan 08:41, Kenneth Gonsalves wrote: > On Friday 08 Jan 2010 7:37:33 am Mike Ramirez wrote: > > > I have a client using webfaction. I had set up a django app there 3 years > > > back. It runs on a particular version of django that I had set up. I have > > > not had occasion to touch the code

make an object available to all views and blocks

2010-01-08 Thread Kevin Coyner
Using template inheritance via base.html, I am creating a simple two-column site with a "content" and "sidebar" block. The inheritance feature works as expected. Basic html is inherited in my sidebar from base.html and can be written over in the sidebar block if so desired. However, I'm perplexed

Re: make an object available to all views and blocks

2010-01-08 Thread Daniel Roseman
On Jan 8, 11:32 am, Kevin Coyner wrote: > Using template inheritance via base.html, I am creating a simple > two-column site with a "content" and "sidebar" block.  The inheritance > feature works as expected. Basic html is inherited in my sidebar from > base.html and can be written over in the sid

Re: why does if statement fail with

2010-01-08 Thread Biju Varghese
if statement in template language checks only whether the variable is empty or not... comparison can be done with other variants of if such as ifequals ifnotequal etc... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Python based web reporting tool?

2010-01-08 Thread Pablo Ilardi
I have used http://www.htmldoc.org/ in different projects, it is very simple and useful as long as you don't need to support for very complex PDF formats. Just create the htmls with django and transform it by command line with htmldoc. - Pablo On Jan 8, 7:17 am, Hinnack wrote: > I am using repor

multidb - partitioning

2010-01-08 Thread tom
Hi, i use postgres and want to use partitioning for tables (see http://www.postgresql.org/docs/8.3/interactive/ddl-partitioning.html ) My Model looks like this: class Measurand(models.Model): project = models.ForeignKey(Project) avg_value = models.DecimalField(max_digits=10, decimal_plac

Re: Python based web reporting tool?

2010-01-08 Thread tom
You could try http://www.xhtml2pdf.com/ It's xhtml+css -> pdf converter. Then you should be able to use django- templates and create from this templates pdf reports. Cheers tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

handle astronomically high number of users via the new BigIntegerField and contrib.auth.user

2010-01-08 Thread G B Smith
Greetings, Let's say I know that the number of users of my app is going to be very really really high. And let's also say I want to use the contrib.auth as it is so convenient. Is it okay if I simply change the code of django.contrib.auth.user to explicitly include an BigIntegerField called id an

Re: Django/Apache/mod_wsgi: How do I specify the SCRIPT_NAME for non-root URLs?

2010-01-08 Thread Tyler Erickson
I added the WSGI logging middleware to write to the Apache log as described in: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Request_and_Response and yes it appears that my SCRIPT_NAME environment variable is being automatically set (see excerpts below). So I guess it is Djan

ModelForm exclude form.is_valid form.save(commit=False) can not work

2010-01-08 Thread 菲平
Hi , Thinks for the new Django 1.2. I just try the 1.2 , if tag and multiple databases is very good. But I have a problem use the old code(run ok in 1.1) like this: class articleDB(models.Model): user = models.ForeignKey(User,related_name='article_user') #文章作者 myclass = models.ForeignKey

Re: ModelForm exclude form.is_valid form.save(commit=False) can not work

2010-01-08 Thread Karen Tracey
2010/1/8 菲平 > Hi , Thinks for the new Django 1.2. > > I just try the 1.2 , if tag and multiple databases is very good. > > But I have a problem use the old code(run ok in 1.1) like this: > > [snip] > > when I submit the error is : > > UnresolvableValidationError at /article/new/ > {'ip': [u'\u8fd

Re: ModelForm exclude form.is_valid form.save(commit=False) can not work

2010-01-08 Thread 菲平
ok, thinks :) On 1月8日, 下午10时35分, Karen Tracey wrote: > 2010/1/8 菲平 > > > > > > > Hi , Thinks for the new Django 1.2. > > > I just try the 1.2 , if tag and multiple databases is very good. > > > But I have a problem use the old code(run ok in 1.1) like this: > > > [snip] > > > when I submit the e

Re: multidb - partitioning

2010-01-08 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 9:36 PM, tom wrote: > Hi, > > i use postgres and want to use partitioning for tables (see > http://www.postgresql.org/docs/8.3/interactive/ddl-partitioning.html ) > > My Model looks like this: > > class Measurand(models.Model): >    project = models.ForeignKey(Project) >    

Register signal on all objects

2010-01-08 Thread Matias
Is there any recommended way to attach a post_save signal to ALL models? The best way I'm thinking of is maybe by using the ContentType class to get a list of all models and iterate over them registering the signal, but I'm not sure if this is the best way to do it... Any comment appreciated.

Django non-relational project (native ORM support for NoSQL DBs)

2010-01-08 Thread Waldemar Kornewald
Hi, if you're interested in helping with the Django non-relational project, which brings native ORM support for cloud/NoSQL DBs, you should join this discussion group: http://groups.google.com/group/django-non-relational This project should make non-relational DB development much easier and make D

Re: multidb - partitioning

2010-01-08 Thread tom
Hi Russell, On 8 Jan., 15:40, Russell Keith-Magee wrote: > On Fri, Jan 8, 2010 at 9:36 PM, tom wrote: > Regardless of how nice and helpful they might be, Django doesn't > provide explicit support for the features of specific databases. i think partitioning is not a feature of a specific databas

Re: make an object available to all views and blocks

2010-01-08 Thread creecode
Hello Kevin, On Jan 8, 3:32 am, Kevin Coyner wrote: > Normally, when I call a view, I can retrieve an object and pass it to > the html page via the dictionary in render_to_response. But in my site > I need that same object in the sidebar of every rendering of the > website. Would a custom conte

Search filter and sort in one step?

2010-01-08 Thread Zeynel
I want to improve the search function in the admin. I asked the same question both here and in stackoverflow previously but there were no answers: http://stackoverflow.com/questions/2029310/django-admin-search Does anyone know if this is impossible to do? Thanks. -- You received this message bec

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2010-01-08 Thread bedros
I use Firefox extension SQLite Manager https://addons.mozilla.org/en-US/firefox/addon/5817 select connect database from database menu and pick your sqlite file and you're set to go. Regards, Bedros On Jan 7, 4:23 pm, Justin Steward wrote: > On Fri, Jan 8, 2010 at 10:50 AM, wormser17 wrote

autocomplete widget

2010-01-08 Thread nameless
Hi at all, I am looking for a working simple example on autocomplete widget for foreign key in Django. I have found many example but I don't understand and doesn't work. This is my model: class profile(models.Model): user = models.ForeignKey(User, unique=True) class profileForm(ModelForm): use

Re: Django/Apache/mod_wsgi: How do I specify the SCRIPT_NAME for non-root URLs?

2010-01-08 Thread Tyler Erickson
Fixed it. It turned out to be a problem with how the django project templates were written. Both of the projects that I was experimenting with were using hardcorded href values, instead of using a url template tag. hardcoded example: Per-geometry styles url template tag example: Per-geometry sty

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2010-01-08 Thread roberto
I think there is a plugin for firefox called "SQLite manager" that is a big help to do simple stuff with sqlite db. Let me know if you need some directions to use it. Good luck -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Seeking Django developer for contract work

2010-01-08 Thread dbakerweb
We have an RFP for 3 web-based prototype applications. We have posted to various freelance sites and I was wondering if anyone here could advise where to post to ensure we get a Django solution proposed. Please advise or email me directly if you would like to participate in the RFP process. Regar

Re: multidb - partitioning

2010-01-08 Thread Adrian Maier
On Fri, Jan 8, 2010 at 15:36, tom wrote: > Hi, > > i use postgres and want to use partitioning for tables (see > http://www.postgresql.org/docs/8.3/interactive/ddl-partitioning.html ) > > My Model looks like this: > > class Measurand(models.Model): >project = models.ForeignKey(Project) >a

Re: Seeking Django developer for contract work

2010-01-08 Thread Nick Lo
> We have an RFP for 3 web-based prototype applications. We have posted > to various freelance sites and I was wondering if anyone here could > advise where to post to ensure we get a Django solution proposed. http://djangogigs.com/ -- You received this message because you are subscribed to the G

Re: handle astronomically high number of users via the new BigIntegerField and contrib.auth.user

2010-01-08 Thread Rolando Espinoza La Fuente
An option is to just use ALTER TABLE.. command to change the column type. Regards, ref: http://www.mail-archive.com/django-develop...@googlegroups.com/msg21171.html On Fri, Jan 8, 2010 at 5:51 AM, G B Smith wrote: > Greetings, > > Let's say I know that the number of users of my app is going to

Re: Seeking Django developer for contract work

2010-01-08 Thread Andy McKay
On 10-01-08 2:47 PM, Nick Lo wrote: We have an RFP for 3 web-based prototype applications. We have posted to various freelance sites and I was wondering if anyone here could advise where to post to ensure we get a Django solution proposed. There is no where to post to "ensure to get a Django so

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2010-01-08 Thread wormser17
Bedros and Roberto, Thank you both for the suggestions. Just downloaded the add-on. Justin, thanks also. You're advice worked (I replied directly to you instead of the group). On Jan 8, 3:47 pm, roberto wrote: > I think there is a plugin for firefox called "SQLite manager" that is > a big help

Re: strange behaviour of webfaction

2010-01-08 Thread Kenneth Gonsalves
On Friday 08 Jan 2010 4:31:10 pm Brett Parker wrote: > > stop and start - not just restart). And everything was fine. No more > > monday morning mails about memory usage. It is possible that the > > 'upstream proxy server' that nginx mentions in the 'bad gateway' message > > is my apache instance.

Re: strange behaviour of webfaction

2010-01-08 Thread Kenneth Gonsalves
On Saturday 09 Jan 2010 5:15:35 am Kenneth Gonsalves wrote: > > together and go "oh, apache takes some time to restart... ah... oh.", so > > when you restart it every 20 minutes, there's the stop and startup time > > of apache where you make well have downtime. That's every 20 minutes. > > > > ma

Need help testing views with csrf in 1.1.1

2010-01-08 Thread Skylar Saveland
I wondering what I'm doing wrong here. These views work as expected with a browser. I was looking to improve my test coverage. >>> c = Client() >>> get_response = c.get( reverse('create', kwargs={'typ':'residential'}) ) >>> get_response.status_code 200 >>> post_response = c.post( reverse('create

Handling Vector/Array Data in Forms

2010-01-08 Thread datta
I am using Django for a scientific applicaition. If I have to transport a vector/array 'to' a form, dismantle it and display the relevant information, it is easy. But how I capture vectors/array datatypes 'from' the HTML forms (submitted by the user) in the view.class and work with them. i.e., i a

Re: why does if statement fail with

2010-01-08 Thread Justin Steward
On Fri, Jan 8, 2010 at 1:25 PM, Biju Varghese wrote: > if statement in template language checks only whether the variable is > empty or not... > comparison can be done with other variants of if such as ifequals > ifnotequal etc... > OP is using django 1.2. http://docs.djangoproject.com/en/dev/rele

What is the uploaded file full path name

2010-01-08 Thread tsmets
Dear, I have a Class that allows to upload Media Files DEFAULT_UPLOAD_SUBFOLDER = 'upload/%Y/%m/%d' # For the time being, the value is set to a real absolute max 200 Gb ABSOLUTE_MAX_SIZE = 200 * 1024 * 1000 * 1024 * 1024 class Media(models.Model): """ Model for any file (image, pdf, MS-docum

Re: Need help testing views with csrf in 1.1.1

2010-01-08 Thread Skylar Saveland
In case anyone else runs across this, the answer appears to be: disable csrf protection while testing. On Jan 8, 7:04 pm, Skylar Saveland wrote: > I wondering what I'm doing wrong here.  These views work as expected > with a browser.  I was looking to improve my test coverage. > > >>> c = Client(

Re: What is the uploaded file full path name

2010-01-08 Thread Sam Lai
If I have understood you correctly, the media_file attribute in your model instances should hold the relative path to your file from MEDIA_ROOT. To get the absolute path to the file, just use os.path.join(settings.MEDIA_ROOT, media.media_file). 2010/1/9 tsmets : > Dear, > I have  a Class that allo

Re: handle astronomically high number of users via the new BigIntegerField and contrib.auth.user

2010-01-08 Thread G B Smith
Yes, I have read that thread. But since BigIntegerField is now available within Django, I would like to handle it from within Django itself. Thus I want to knowif changing the contrib.auth code to explicitly include a BigIntegerField primary key will have any side-effects (for example in contrib.a

Re: Register signal on all objects

2010-01-08 Thread Ronghui Yu
How about creating a meta class for all your models in the project Matias ??: Is there any recommended way to attach a post_save signal to ALL models? The best way I'm thinking of is maybe by using the ContentType class to get a list of all models and iterate over them registering the signal,

building a django integrated youtube website

2010-01-08 Thread mikeymor
Hello all, i want to build an integrated youtube website. i found the syncr project and i'm guessing that it should take care of the uploads mad from the website and sync them to you tube but it would really help me if someone could show me how to implement it, and also how do i get data from youtu

newbie, how to load js in admin panel

2010-01-08 Thread Marc Aymerich
Hi all! I'm trying to load this js in one of the admin panel views. but seems that I'm unable to configure django properly in order to be able media files access through my browser. I have the js in '/var/www/ucp/media/js' I the settings.py I define

Re: handle astronomically high number of users via the new BigIntegerField and contrib.auth.user

2010-01-08 Thread G B Smith
I now realize that primary=True is only one half of the problem. I could not find a way within Django to do something like autoincrement=True to go together with primary=True. At the moment it looks like I would need to go into the database (I'm using MySQL) and set the field to automatically incre