Re: How adjust Django form input elements generated so they don't have "/>" at end and hence will VALIDATE?

2011-04-08 Thread Chris Seberino
Sorry n/m.  Apparently this is a long running discussion.  I just
found the
start of a big part of it...

http://groups.google.com/group/django-developers/browse_thread/thread/bbf75f0eeaf9fa64/59822bbce1e0be22?#59822bbce1e0be22

cs

On Apr 9, 12:08 am, Chris Seberino  wrote:
> By the wayby "validate" I meant to say that I want it be be *valid
> HTML*.
>
> cs
>
> On Apr 9, 12:06 am, Chris Seberino  wrote:
>
> > I'm using Django authentication for myhttp://phil4.com/sign_inpage.
>
> > You notice all the Django form input elements generated on that page
> > don't validate
> > (They have a "/>" at the end rather than just ">".)
>
> > How fix!?
>
> > cs

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How adjust Django form input elements generated so they don't have "/>" at end and hence will VALIDATE?

2011-04-08 Thread Chris Seberino
By the wayby "validate" I meant to say that I want it be be *valid
HTML*.

cs

On Apr 9, 12:06 am, Chris Seberino  wrote:
> I'm using Django authentication for myhttp://phil4.com/sign_inpage.
>
> You notice all the Django form input elements generated on that page
> don't validate
> (They have a "/>" at the end rather than just ">".)
>
> How fix!?
>
> cs

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How adjust Django form input elements generated so they don't have "/>" at end and hence will VALIDATE?

2011-04-08 Thread Chris Seberino
I'm using Django authentication for my http://phil4.com/sign_in page.

You notice all the Django form input elements generated on that page
don't validate
(They have a "/>" at the end rather than just ">".)

How fix!?

cs

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



how to have different logo for django admin based on URL

2011-04-08 Thread rahul jain
Anyone ever tried to have different logos for admin based on the URL

Like

http://url/comp1

use comp1 logo for django admin always


http://url/comp2

use comp2 logo for django admin always

Thanks.

Rahul

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: not getting the default admin theme available with django

2011-04-08 Thread GOUTAM KUMAR RANA
there was an error in link in settings.py

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: not getting the default admin theme available with django

2011-04-08 Thread GOUTAM KUMAR RANA
done


-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



not getting the default admin theme available with django

2011-04-08 Thread GOUTAM KUMAR RANA
not getting the default admin theme available with django when i m joining 
it with other models. its presenting me in a basic without themed mode.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Unit test successful in isolation, fails when the whole app is tested

2011-04-08 Thread Evgeny
Thanks, Karen.

The specifics are:
* when the test is run as
  "python manage.py test askbot"
   - all tests from this suite fail (there are two, only one shown for
brevity)
   and the remaining 400 or so tests pass
* the nature of failure - there are 0 email in the outbox (with one
expected)
* when the tests are run as
  "python manage.py test
askbot.TagFollowedInstantWholeForumEmailAlertTests"
  tests pass.

So there must be something in the previous tests
or the application code they ran before...

Another thing - I use celery to send emails and have setting
CELERY_ALWAYS_EAGER = True, as recommended for the testing purposes.






On Apr 8, 3:47 am, Karen Tracey  wrote:
> On Thu, Apr 7, 2011 at 11:21 PM, Evgeny  wrote:
>
> > I have one test suite (among many others) in my application that
> > succeeds in isolation, but fails
> > when I run the whole battery. Could anyone suggest where to start
> > looking?
>
> Start with the specifics of the failure, look at the previously run tests
> and see what they may have done that could cause the failure. I don't think,
> for example, that the email outbox is reset between test methods (which
> strikes me as a bit odd at the moment, I'm not sure why that is not reset
> for each test run...perhaps I'm wrong about it not being reset or there is a
> good reason that escapes me at the moment). Anyway I think your assertions
> that are testing for a specific number of emails in the box could fail if a
> previous test caused email to be sent also. But you haven't said what the
> specifics of the failure are so I'm not sure that is what you are seeing.
>
> Karen
> --http://tracey.org/kmt/

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django real world website samples (with django source codes)

2011-04-08 Thread CrabbyPete
pinax is great project to learn from
http://pinaxproject.com/

On Apr 8, 4:08 am, mengu  wrote:
> go tohttp://github.comandhttp://bitbucket.organd search for
> django.
>
> On Apr 8, 5:21 am, djangodjango django  wrote:
>
> > thanks.
>
> > On Thu, Apr 7, 2011 at 4:38 PM, Nikos K  wrote:
> > > Here is a list with a lot of sites based in django
>
> > >http://www.djangosites.org/
>
> > > 
>
> > > On 7 April 2011 08:48, django beginner  wrote:
>
> > >> Hi all,
>
> > >> Could someone please give a link on some of the samples for real world
> > >> Django websites?
> > >> Thanks and have a nice day!
>
> > >> Regards,
> > >> Django Beginner
>
> > >> --
> > >> 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 to
> > >> django-users+unsubscr...@googlegroups.com.
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/django-users?hl=en.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django app for data management and visualization

2011-04-08 Thread Marwan Al-Sabbagh
Hi Chris,
  there stuff looks pretty nice. I'll add that link to my research.

Marwan

On Fri, Apr 8, 2011 at 9:22 AM, Chris Matthews  wrote:
> Hi Marwan,
>
> Another option that I'll investigate is Google Chart Tools / Image Charts 
> (aka Chart API) see http://code.google.com/apis/chart/
> Regards
> Chris
>
> -Original Message-
> From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
> Behalf Of Marwan Al-Sabbagh
> Sent: 07 April 2011 09:59
> To: django-users@googlegroups.com
> Subject: Re: Django app for data management and visualization
>
> Hi Chris,
>  thanks so much for all the information and the links, Its really
> helpful. I really like xlwt it's easy, fast, and powerful. I'll most
> likely start with allowing the user to export a table of results to an
> excel sheet where they can do whatever additional calculations,
> formatting, or analysis they want.
>  I'm very interested in dealing with charts and graphs but I must say
> at this stage its more of a bonus then something our users are
> demanding. I'll keep you guys updated on my progress and would love to
> get all your feedback on the direction I'm taking and if it's
> something that any of you can use on your projects. looking forward to
> it.
>
> cheers,
> Marwan
>
> On Thu, Apr 7, 2011 at 9:50 AM, Chris Matthews  wrote:
>> Hi Marwan,
>>
>> I am considering an "Excel Export" button wherever I have a table (or 
>> jQuery-UI grid).
>>
>> If you just want data sheets, before writing something, consider this:
>> xlwt 0.7.2 Library to create spreadsheet files compatible with MS Excel 
>> 97/2000/XP/2003 XLS files, on any platform, with Python 2.3 to 2.6
>> http://pypi.python.org/pypi/xlwt
>>
>> Example (using xwlt) to do export_selected_objects 
>> http://davidmburke.com/tag/django/
>>
>> Xwlt does not do graphs.
>>
>> There is probably a lot on graphs but I just saw this:
>> http://www.gnuplot.info/ and then also a Python interface 
>> http://gnuplot-py.sourceforge.net/
>>
>> Or
>> http://sourceforge.net/projects/django-dataplot/
>>
>>
>> For a interesting take on spreadsheets:
>> Use Django and jQuery to create a spreadsheet application 
>> http://www.ibm.com/developerworks/web/library/wa-django/?ca=drs-
>>
>> http://www.spreadsheetgear.com/ seemed cool but you net .Net and it will 
>> cost you (not sure if it will save you some money).
>>
>> Regards
>> Chris
>>
>> -Original Message-
>> From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] 
>> On Behalf Of Marwan Al-Sabbagh
>> Sent: 06 April 2011 16:59
>> To: django-users@googlegroups.com
>> Subject: Re: Django app for data management and visualization
>>
>> this sounds very interesting to me too. I'm working at a financial
>> institution and I'm facing a similar challenge of allowing the users
>> to generate ad hoc reports and export those reports to excel. I've
>> already implemented this requirement in PHP and I'm in the process of
>> migrating these reporting systems to django. I'm very interested to
>> see how you plan to do excel exports. I'll also be righting a library
>> within the next two months to do that, because I haven't found
>> anything that meets our requirements. If it's something you are
>> interested in please shoot me an email.
>>  as far as importing data from excel sheets into a database check out
>> www.python-excel.org and specifically their xlrd package that lets you
>> read excel files and traverse the cells. You could use this to extract
>> values and populate your database.
>>
>> Marwan
>>
>> On Tue, Apr 5, 2011 at 7:03 PM, Gianluca Riccardi
>>  wrote:
>>>
>>>
>>> On 5 Apr, 17:06, alessio c  wrote:
 Ciao,
>>>
>>> ciao Alessio,
>>>

 yes I do. I need more basic stuff then that and I need tables. Think of 
 this
 as tentative to reduce Excel use (which is killing me).

 I can use matplotlib or openflash if I want to go really fancy. However, 
 now
 I need to set up the framework. After that, I have a platform from which I
 can run all my scripts.

 Let's say I have a database with invoice data from different subsidiaries. 
 I
 want to be able to: 1) create different views (subsidiary level, macro
 level, invoice level, first 10 invoice, first 10 customers, etc.); 2) 
 upload
 data from different formats (because people are lazy and it is impossible 
 to
 impose a single format); 3) allow some users to upload data (to avoid them
 to send me excel files by email, this is a huge feature...); 4) allow some
 other users (managers) to access and download online reports (tables and
 graphs).

 Theoretically, when I get this right I am hoping to start a project on git.
 The main idea is to create a shared reporting tool.
>>>
>>> sounds like your going to have some fun ;) good luck, especially if
>>> you can get rid of dealing with 

Re: framework web comparison

2011-04-08 Thread bobhaugen
Another factor that was important to me was the community.  Django has
a friendly and helpful expert community.  When I was picking a
framework, I did not get the same impression from Rails.  Smelled more
like competitive-rockstar.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: {% extends "view/base.html" %}

2011-04-08 Thread Daniel Roseman


On Friday, April 8, 2011 4:39:30 PM UTC+1, Harry wrote:
>
> {% extends "base.html" %} works fine, but I want to point to a 
> static_dir. 
>
> Here is app.yaml: 
> - url: /view 
>   static_dir: static/view 
>
> Here is main.py: 
> template_values = { 
> 'url': url, 
> 'url_linktext': url_linktext, 
> } 
> path = os.path.join(os.path.dirname(__file__), 'index.html') 
> self.response.out.write(template.render(path, 
> template_values)) 
>
> Here is the error: 
> raise TemplateSyntaxError, "Template %r cannot be extended, because it 
> doesn't exist" % parent 
> TemplateSyntaxError: Template 'view/base.html' cannot be extended, 
> because it doesn't exist 
>
> You can browse to the base.html, but class main() cannot see it. 
>
> Thanks for any assistance, 
> Harry


This is the wrong forum for that question, since it appears to be about 
Google AppEngine rather than Django.

However, what you are attempting to do will not work. Files served as static 
assets are just that, and not templates. If you want to extend a template, 
it has to be in a template directory.
--
DR.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to check if request.FILES is empty

2011-04-08 Thread Martin Pajuste
You'll find well written documentation how to treat basic file uploads in 
Django documentation
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/#basic-file-uploads

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django News Site Resources

2011-04-08 Thread Martin Pajuste
http://djangopackages.com/

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



{% extends "view/base.html" %}

2011-04-08 Thread Harry
{% extends "base.html" %} works fine, but I want to point to a
static_dir.

Here is app.yaml:
- url: /view
  static_dir: static/view

Here is main.py:
template_values = {
'url': url,
'url_linktext': url_linktext,
}
path = os.path.join(os.path.dirname(__file__), 'index.html')
self.response.out.write(template.render(path,
template_values))

Here is the error:
raise TemplateSyntaxError, "Template %r cannot be extended, because it
doesn't exist" % parent
TemplateSyntaxError: Template 'view/base.html' cannot be extended,
because it doesn't exist

You can browse to the base.html, but class main() cannot see it.

Thanks for any assistance,
Harry

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to check if request.FILES is empty

2011-04-08 Thread Martin Pajuste
What you are looking for is probably something like

if 'uploadphoto' in request.FILES:

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django News Site Resources

2011-04-08 Thread Nate Aune
You might be interested in an emerging Django-based CMS for building news 
sites called ArmstrongCMS. It's expected to be released in June, and you can 
read more about it at http://armstrongcms.org

Nate

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Structuring URLs by category?

2011-04-08 Thread Alastair Campbell
Hi Bruno,

> url(r'(?P[a-z-]+)/news/$', "news.views.by_category"),
>  url(r'(?P[a-z-]+)/galleries/$', 
> "galleries.views.by_category"),

Ah, ok, thanks, I had tried that and run into a problem. I'll go back
and check why that didn't work, as if that's possible that's great.


> Note that if your project is well designed, the dependancies between
> categories and contents should be inverted so categories knows about
> contents,...
> NB : one of the first things I usually do when starting a new django
> project is to create a project-specific app where I can put all the
> code that's specific to the project (templatetags, urls, custom views
> etc).

I've /sort/ of got that with a 'categories' module that contains the
categorisations and miscellaneous stuff that ties other things
together, but I'll keep that in mind.

Thanks for your help,

-Alastair

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to check if request.FILES is empty

2011-04-08 Thread Areai51
Hi,
I have this form which has a couple of form items and a file upload.
Now as long as I select an image to be uploaded the form works fine
and the data is saved, however, when you try to submit the form
without uploading an image I land up getting the error
Exception Type: MultiValueDictKeyError
Exception Value:
"Key 'uploadphoto' not found in "

My code looks something like this

if request.FILES['uploadphoto']:
up = request.FILES['uploadphoto']
upn = up.name
handle_uploaded_file(up)
photo = upn

and in trace back the error is on this line "up =
request.FILES['uploadphoto'] "

How do I write an if statement where I can check if the request.FILES
is not empty then execute the below statements

Thanks for your help in advance
J

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Structuring URLs by category?

2011-04-08 Thread bruno desthuilliers
On 8 avr, 16:37, Alastair Campbell  wrote:
> Hi,
>
> Hopefully a newbie question with an easy answer?
>
> I have a site with various modules (news, events, pictures galleries
> etc.), but I would like the site to be structured by categories rather
> than function.
>
> It's a windsurfing site, so the categories are race, wave, freestyle, etc.
>
> In my URLs, how would I get it to filter various apps by discipline so
> that you have:
> /freestyle/news/
> /freestyle/galleries/
> /racing/news/
> /racing/galleries/
> etc.
>
> Without creating a huge set of URL patterns?

At the url level, it's no big deal:

url(r'(?P[a-z-]+)/news/$', "news.views.by_category"),
  url(r'(?P[a-z-]+)/galleries/$',
"galleries.views.by_category"),

etc...

Now you need to write the relevant views, and of course tie all your
news / galleries / whatever contents to categories.

Note that if your project is well designed, the dependancies between
categories and contents should be inverted so categories knows about
contents, not the other way round. In this case, you could as well
have a generic "content_type_by_category(request, ct_name,
category_slug)" view, and one single url pattern:

  url(r'(?P[a-z-]+)/(?P[a-z]+)/$',
"categories.views.content_type_by_category")


These are of course Q examples - as we don't know what your apps /
project look like.

> Is there a pattern matching approach for this sort of thing, or is it
> always done by function?

url resolution in Django is only patterns to views mapping, and if
some app doesn't provide the appropriate view function nothing
prevents you from writing it yourself. Just make sure your patterns
dont overlap or are in the correct order.

NB : one of the first things I usually do when starting a new django
project is to create a project-specific app where I can put all the
code that's specific to the project (templatetags, urls, custom views
etc).

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Structuring URLs by category?

2011-04-08 Thread Alastair Campbell
Hi,

Hopefully a newbie question with an easy answer?

I have a site with various modules (news, events, pictures galleries
etc.), but I would like the site to be structured by categories rather
than function.

It's a windsurfing site, so the categories are race, wave, freestyle, etc.

In my URLs, how would I get it to filter various apps by discipline so
that you have:
/freestyle/news/
/freestyle/galleries/
/racing/news/
/racing/galleries/
etc.

Without creating a huge set of URL patterns?

Is there a pattern matching approach for this sort of thing, or is it
always done by function?

Kind regards,

-Alastair

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: framework web comparison

2011-04-08 Thread refreegrata
thanks for the answers.

On 8 abr, 03:52, Xavier Ordoquy  wrote:
>
> Isn't Ruby a language ?


Ok, my mistake, I want to say Ruby on Rails (typing error).

Bye.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django News Site Resources

2011-04-08 Thread Anoop Thomas Mathew
Search in the groups history first. You'll get a lot of related topics.
regards,
atm
___
Life is short, Live it hard.




On 8 April 2011 17:51, Ed Sutherland  wrote:

> Can anyone point me to some resources for building a Django-based news
> site?
>
> --
> 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 to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: framework web comparison

2011-04-08 Thread Mike Dewhirst

On 8/04/2011 7:19pm, Stuart MacKay wrote:
Evaluating frameworks that are reasonably feature complete can only be 
a subjective exercise. You could compare features but even with a 
specific feature set that you were looking for you stil have to 
evaluate the claims to make sure that the framework supports it 
effectively. So you are left with opinions and annecdotes which are 
going to be extremely subjective, to day the least, and what works for 
one group will not work for another.


Importantly, you need to consider the groups by "maturity" as well.

One framework might suit beginners really well but as they "mature" it 
might begin to fail them.


Another framework might have a steeper learning curve and scare off 
newbs. The same framework may continuously satisfy those with more 
sophisticated requirements well beyond any learning curve.


Mike



So you are left with doing your own evaluation. Many of the frameworks 
use the creation of a blog as a introductory example. This is a 
reasonabe first application that covers many of the features offered 
by each framework and allows you to "kick the tires". I would go 
through the frameworks that offer this as a tutorial and then attempt 
to write one for the frameworks that do not. That would give you a 
good feeling for how each works and would give you enough information 
to make your evaluation more objective.


Stuart
Lisboa, Portugal



--
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django News Site Resources

2011-04-08 Thread Ed Sutherland
Can anyone point me to some resources for building a Django-based news site?

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Dajaxice and CSRF issues

2011-04-08 Thread Casey Greene
Can you change the request type from POST to GET?  It sounds like this 
is not a database modifying operation.


Casey

On 04/08/2011 07:06 AM, Sam Walters wrote:

Dajaxice

 is used on both the static and Django pages to check whether the user is logged
 in


--
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Dajaxice and CSRF issues

2011-04-08 Thread Sam Walters
Hi Vincent
Yes.

Look at the HTTP  Headers.
Just in case you need to read the docs on 1.2.5 which identified the
CSRF AJAX issue.

http://www.djangoproject.com/weblog/2011/feb/08/security/

Also looking at the request in firebug you can see the 'X-CSRFToken'
needs to be added as an attribute with the javascript you use.
This is not labour intensive and i was able to do a grep to find and
replace in my files to make them compatible.

Here is the required code in prototype. Could be adapted to the
framework of your choice.

function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');

for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i].strip();
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue =
decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}

function requestPage(event) {
var element = event;//event.element();
var url = '/'+element.identify()+'/';
new Ajax.Updater('content', url, {
method: 'post',
requestHeaders: {'X-CSRFToken':getCookie('csrftoken') },
});
}


On Fri, Apr 8, 2011 at 6:49 PM, Vincent den Boer  wrote:
> We have a site with a lot of static HTML pages and a few Django pages. 
> Dajaxice
> is used on both the static and Django pages to check whether the user is 
> logged
> in and show the login status to the user. The problem is that since the user
> will typically visit the HTML pages first, the user will not have a CSRF 
> cookie
> stored when the first AJAX request is made and Django rejects the request. Is
> there any elegant way to solve this? I've now disabled CSRF protection for all
> AJAX requests, which is not a problem right now since we don't do anything
> dangerous or send sensitive data with AJAX, but could become risk in the 
> future.
>
> Kind regards,
> Vincent
>
> --
> 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 to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Unit test successful in isolation, fails when the whole app is tested

2011-04-08 Thread Karen Tracey
On Thu, Apr 7, 2011 at 11:21 PM, Evgeny  wrote:

>
> I have one test suite (among many others) in my application that
> succeeds in isolation, but fails
> when I run the whole battery. Could anyone suggest where to start
> looking?


Start with the specifics of the failure, look at the previously run tests
and see what they may have done that could cause the failure. I don't think,
for example, that the email outbox is reset between test methods (which
strikes me as a bit odd at the moment, I'm not sure why that is not reset
for each test run...perhaps I'm wrong about it not being reset or there is a
good reason that escapes me at the moment). Anyway I think your assertions
that are testing for a specific number of emails in the box could fail if a
previous test caused email to be sent also. But you haven't said what the
specifics of the failure are so I'm not sure that is what you are seeing.

Karen
-- 
http://tracey.org/kmt/

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Dajaxice and CSRF issues

2011-04-08 Thread Vincent den Boer
We have a site with a lot of static HTML pages and a few Django pages. Dajaxice 
is used on both the static and Django pages to check whether the user is logged 
in and show the login status to the user. The problem is that since the user 
will typically visit the HTML pages first, the user will not have a CSRF cookie 
stored when the first AJAX request is made and Django rejects the request. Is 
there any elegant way to solve this? I've now disabled CSRF protection for all 
AJAX requests, which is not a problem right now since we don't do anything 
dangerous or send sensitive data with AJAX, but could become risk in the future.

Kind regards,
Vincent

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: model field assignment

2011-04-08 Thread bruno desthuilliers
On 8 avr, 11:25, gintare  wrote:
> I do not know how to save changes:
>
>  for Lists in [a.SynGREn, a.SynGREnn]:
> ...
> .. make changes in field by editing Lists, i.e. cropping part of
> text: changed_text=crop(Lists, words)
> ...Lists=changed_text
> ... a.save()
>
> HOW to save these changes to model back?
> #  a.save() does save changes  for model field a.SynGREn ,
> a.SynGREnn

Indeed - you have to reassign the newly computed values to you model
instance's attributes. You want something like:

for fieldname in ("SynGREn", "SynGREnn"):
value = getattr(a, fieldname)
new_value = do_something_to(value)
setattr(a, fieldname, new_value)
a.save()

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



model field assignment

2011-04-08 Thread gintare
I would like to remove multiplicative items in several fields of the
model.
I do not know how to save changes:

 for Lists in [a.SynGREn, a.SynGREnn]:
...
.. make changes in field by editing Lists, i.e. cropping part of
text: changed_text=crop(Lists, words)
...Lists=changed_text
... a.save()

HOW to save these changes to model back?
#  a.save() does save changes  for model field a.SynGREn ,
a.SynGREnn


#Suppose threre is a model GRE, with Char fieldsSynGREn,
SynGREnn

for Lists in [a.SynGREn, a.SynGREnn]:
strc=''
List=Lists.split(',')
for item in List:
if (len(item)!=0):
searchs='\s+'+item+'\s+'
if ( re.search(searchs, strc)==None ):
strc=strc+', '+item+' '
Lists=strc
a.save();
#saves changes only for variable Lists, not for model field a.SynGREn
or a.SynGREnn

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: framework web comparison

2011-04-08 Thread Stuart MacKay
Evaluating frameworks that are reasonably feature complete can only be a 
subjective exercise. You could compare features but even with a specific 
feature set that you were looking for you stil have to evaluate the 
claims to make sure that the framework supports it effectively. So you 
are left with opinions and annecdotes which are going to be extremely 
subjective, to day the least, and what works for one group will not work 
for another.


So you are left with doing your own evaluation. Many of the frameworks 
use the creation of a blog as a introductory example. This is a 
reasonabe first application that covers many of the features offered by 
each framework and allows you to "kick the tires". I would go through 
the frameworks that offer this as a tutorial and then attempt to write 
one for the frameworks that do not. That would give you a good feeling 
for how each works and would give you enough information to make your 
evaluation more objective.


Stuart
Lisboa, Portugal

--
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Admin can't/won't upload new images?

2011-04-08 Thread JonRob
Problem solved. 

The site was running on passenger and I fogrot to update passenger_wsgi.py 
to point away from the old site. 

Jon

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django app for data management and visualization

2011-04-08 Thread alessio c
Hi again,

do you know of any django app providing interactive python sessions? I mean,
you have a text boy where you input your python, then you click a button and
the script runs, then the output is presented in another box.

2011/4/7 Marwan Al-Sabbagh 

> Hi Chris,
>  thanks so much for all the information and the links, Its really
> helpful. I really like xlwt it's easy, fast, and powerful. I'll most
> likely start with allowing the user to export a table of results to an
> excel sheet where they can do whatever additional calculations,
> formatting, or analysis they want.
>  I'm very interested in dealing with charts and graphs but I must say
> at this stage its more of a bonus then something our users are
> demanding. I'll keep you guys updated on my progress and would love to
> get all your feedback on the direction I'm taking and if it's
> something that any of you can use on your projects. looking forward to
> it.
>
> cheers,
> Marwan
>
> On Thu, Apr 7, 2011 at 9:50 AM, Chris Matthews  wrote:
> > Hi Marwan,
> >
> > I am considering an "Excel Export" button wherever I have a table (or
> jQuery-UI grid).
> >
> > If you just want data sheets, before writing something, consider this:
> > xlwt 0.7.2 Library to create spreadsheet files compatible with MS Excel
> 97/2000/XP/2003 XLS files, on any platform, with Python 2.3 to 2.6
> > http://pypi.python.org/pypi/xlwt
> >
> > Example (using xwlt) to do export_selected_objects
> http://davidmburke.com/tag/django/
> >
> > Xwlt does not do graphs.
> >
> > There is probably a lot on graphs but I just saw this:
> > http://www.gnuplot.info/ and then also a Python interface
> http://gnuplot-py.sourceforge.net/
> >
> > Or
> > http://sourceforge.net/projects/django-dataplot/
> >
> >
> > For a interesting take on spreadsheets:
> > Use Django and jQuery to create a spreadsheet application
> http://www.ibm.com/developerworks/web/library/wa-django/?ca=drs-
> >
> > http://www.spreadsheetgear.com/ seemed cool but you net .Net and it will
> cost you (not sure if it will save you some money).
> >
> > Regards
> > Chris
> >
> > -Original Message-
> > From: django-users@googlegroups.com [mailto:
> django-users@googlegroups.com] On Behalf Of Marwan Al-Sabbagh
> > Sent: 06 April 2011 16:59
> > To: django-users@googlegroups.com
> > Subject: Re: Django app for data management and visualization
> >
> > this sounds very interesting to me too. I'm working at a financial
> > institution and I'm facing a similar challenge of allowing the users
> > to generate ad hoc reports and export those reports to excel. I've
> > already implemented this requirement in PHP and I'm in the process of
> > migrating these reporting systems to django. I'm very interested to
> > see how you plan to do excel exports. I'll also be righting a library
> > within the next two months to do that, because I haven't found
> > anything that meets our requirements. If it's something you are
> > interested in please shoot me an email.
> >  as far as importing data from excel sheets into a database check out
> > www.python-excel.org and specifically their xlrd package that lets you
> > read excel files and traverse the cells. You could use this to extract
> > values and populate your database.
> >
> > Marwan
> >
> > On Tue, Apr 5, 2011 at 7:03 PM, Gianluca Riccardi
> >  wrote:
> >>
> >>
> >> On 5 Apr, 17:06, alessio c  wrote:
> >>> Ciao,
> >>
> >> ciao Alessio,
> >>
> >>>
> >>> yes I do. I need more basic stuff then that and I need tables. Think of
> this
> >>> as tentative to reduce Excel use (which is killing me).
> >>>
> >>> I can use matplotlib or openflash if I want to go really fancy.
> However, now
> >>> I need to set up the framework. After that, I have a platform from
> which I
> >>> can run all my scripts.
> >>>
> >>> Let's say I have a database with invoice data from different
> subsidiaries. I
> >>> want to be able to: 1) create different views (subsidiary level, macro
> >>> level, invoice level, first 10 invoice, first 10 customers, etc.); 2)
> upload
> >>> data from different formats (because people are lazy and it is
> impossible to
> >>> impose a single format); 3) allow some users to upload data (to avoid
> them
> >>> to send me excel files by email, this is a huge feature...); 4) allow
> some
> >>> other users (managers) to access and download online reports (tables
> and
> >>> graphs).
> >>>
> >>> Theoretically, when I get this right I am hoping to start a project on
> git.
> >>> The main idea is to create a shared reporting tool.
> >>
> >> sounds like your going to have some fun ;) good luck, especially if
> >> you can get rid of dealing with spreadsheets and automate it I'm sure
> >> users will be happier(you at first;)
> >>
> >> if You start a public git repo i'd like to read your progresses
> >>
> >> regards,
> >> Gianluca Riccardi
> >>
> >> --
> >> You received this message because you are 

Re: Notify user at admin interface if custom save fails

2011-04-08 Thread Daniel Roseman


On Friday, April 8, 2011 9:26:05 AM UTC+1, shadyabhi wrote:
>
> I have a class in models.py like:
>
> class UserProfile(models.Model):
> user = models.ForeignKey(User)
> is_counter = models.BooleanField()
> is_student = models.BooleanField()
> 
> def save(self):
> if self.is_counter != self.is_student:
> super(UserProfile, self).save()
> else:
> return False
>
> I have defined two types of user, either it can be a student or counterbut 
> never both.
> I do not want the user to be both coutner as well as student. So, I defined 
> a custom save() such that entry is added to database when is_counter != 
> is_student.
>
> Now, when I use Admin interface to add inconsistent entry, the interface 
> says entry added successfully but "actually" it isn't added. How can I add 
> an error message that will be displayed when *False* is returned by save().
>
 
This is the wrong place to be doing this check. If you want to validate 
something, you should do it in the validation step. 
See 
http://docs.djangoproject.com/en/1.3/ref/models/instances/#validating-objects 
- you probably want to override Model.clean().
--
DR.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Notify user at admin interface if custom save fails

2011-04-08 Thread Abhijeet Rastogi
I have a class in models.py like:

class UserProfile(models.Model):
user = models.ForeignKey(User)
is_counter = models.BooleanField()
is_student = models.BooleanField()

def save(self):
if self.is_counter != self.is_student:
super(UserProfile, self).save()
else:
return False

I have defined two types of user, either it can be a student or counterbut
never both.
I do not want the user to be both coutner as well as student. So, I defined
a custom save() such that entry is added to database when is_counter !=
is_student.

Now, when I use Admin interface to add inconsistent entry, the interface
says entry added successfully but "actually" it isn't added. How can I add
an error message that will be displayed when *False* is returned by save().

-- 
Regards,
Abhijeet Rastogi (shadyabhi)
http://www.google.com/profiles/abhijeet.1989

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Admin can't/won't upload new images?

2011-04-08 Thread JonRob
Hi,

I have a strange problem, possibly permissions related, that I was
hoping someone might be able to help me diagnose.

I have my Django app configured so that I can upload images.
Previously this worked fine, I've uploaded over 200 images with no
problems. All of a sudden, however, it has stopped working.

Now, when I upload a new image (or try to change an old one), the
admin interface registers the new object, it's filename etc, but the
image never actually makes it to the appropriate folder.

I've checked that in the models upload_to is still set as I expect it,
I've also checked that settings.py is still pointing at the correct
media_root.

I can only conclude that somehow the permissions on my media_root
folder have somehow been mixed up and Django can no longer write to
it. The only thing to have changed recently is that I migrated the
site to a different domain (away from a subdomain to the main domain),
so it's conceivable it happened then.

Many thanks,

Jon

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how does this not work????

2011-04-08 Thread bruno desthuilliers
On 7 avr, 18:59, "Cal Leeming [Simplicity Media Ltd]"
 wrote:
> Oops, sorry, that should have been:
>
> try:
>     res = UserAccount.objects.all().filter(user_id=check.id
> ).filter(video_id=pid).order_by('-datestamp',)
>     assert res
>     checkview = res[0]
>
> except AssertionError, e:
>     pass
>

Still not. Assertions are disabled when running with the -o flag, so
you'd better only use them for debugging purpose only (which is the
intended use).

Also and FWIW, the call to objects.all is useless (and costly -
cloning a queryset is not free) if you apply a filter on the resulting
queryset. idem for the second call to filter, which is functionally
equivalent to passing both criterions in the same call.

If you can't use a QuerySet.get() method, the proper code would look
like:

res = UserAccount.objects.filter(
 user_id=check.id,
 video_id=pid
 ).order_by('-datestamp',)

try:
checkview = res[0]
except IndexError:
handle_the_case_here

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django real world website samples (with django source codes)

2011-04-08 Thread mengu
go to http://github.com and http://bitbucket.org and search for
django.

On Apr 8, 5:21 am, djangodjango django  wrote:
> thanks.
>
>
>
>
>
>
>
> On Thu, Apr 7, 2011 at 4:38 PM, Nikos K  wrote:
> > Here is a list with a lot of sites based in django
>
> >http://www.djangosites.org/
>
> > 
>
> > On 7 April 2011 08:48, django beginner  wrote:
>
> >> Hi all,
>
> >> Could someone please give a link on some of the samples for real world
> >> Django websites?
> >> Thanks and have a nice day!
>
> >> Regards,
> >> Django Beginner
>
> >> --
> >> 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 to
> >> django-users+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/django-users?hl=en.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: framework web comparison

2011-04-08 Thread Raúl Cumplido
He means Ruby on Rails

On Fri, Apr 8, 2011 at 9:52 AM, Xavier Ordoquy  wrote:

> Hi there
>
> > Hello list. I must to do a document to compare the most populars web
> > frameworks (Django, Ruby, Zend, ...), in terms like performance,
> > utilities, documentation, etc. For this document, the opinions of this
> > list would be helpful.
>
>
> Isn't Ruby a language ?
>
> Regards,
> Xavier.
>
> --
> 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 to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Raúl Cumplido

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: framework web comparison

2011-04-08 Thread bruno desthuilliers
On 8 avr, 09:52, Xavier Ordoquy  wrote:
> Hi there
>
> > Hello list. I must to do a document to compare the most populars web
> > frameworks (Django, Ruby, Zend, ...), in terms like performance,
> > utilities, documentation, etc. For this document, the opinions of this
> > list would be helpful.
>
> Isn't Ruby a language ?

Well, yes, indeed. But it seems so tied to Rails that non-techies tend
to confuse the language with the framework.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: framework web comparison

2011-04-08 Thread Xavier Ordoquy
Hi there

> Hello list. I must to do a document to compare the most populars web
> frameworks (Django, Ruby, Zend, ...), in terms like performance,
> utilities, documentation, etc. For this document, the opinions of this
> list would be helpful.


Isn't Ruby a language ?

Regards,
Xavier.

-- 
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 to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



RE: Django app for data management and visualization

2011-04-08 Thread Chris Matthews
Hi Marwan,

Another option that I'll investigate is Google Chart Tools / Image Charts (aka 
Chart API) see http://code.google.com/apis/chart/
Regards
Chris

-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Marwan Al-Sabbagh
Sent: 07 April 2011 09:59
To: django-users@googlegroups.com
Subject: Re: Django app for data management and visualization

Hi Chris,
  thanks so much for all the information and the links, Its really
helpful. I really like xlwt it's easy, fast, and powerful. I'll most
likely start with allowing the user to export a table of results to an
excel sheet where they can do whatever additional calculations,
formatting, or analysis they want.
  I'm very interested in dealing with charts and graphs but I must say
at this stage its more of a bonus then something our users are
demanding. I'll keep you guys updated on my progress and would love to
get all your feedback on the direction I'm taking and if it's
something that any of you can use on your projects. looking forward to
it.

cheers,
Marwan

On Thu, Apr 7, 2011 at 9:50 AM, Chris Matthews  wrote:
> Hi Marwan,
>
> I am considering an "Excel Export" button wherever I have a table (or 
> jQuery-UI grid).
>
> If you just want data sheets, before writing something, consider this:
> xlwt 0.7.2 Library to create spreadsheet files compatible with MS Excel 
> 97/2000/XP/2003 XLS files, on any platform, with Python 2.3 to 2.6
> http://pypi.python.org/pypi/xlwt
>
> Example (using xwlt) to do export_selected_objects 
> http://davidmburke.com/tag/django/
>
> Xwlt does not do graphs.
>
> There is probably a lot on graphs but I just saw this:
> http://www.gnuplot.info/ and then also a Python interface 
> http://gnuplot-py.sourceforge.net/
>
> Or
> http://sourceforge.net/projects/django-dataplot/
>
>
> For a interesting take on spreadsheets:
> Use Django and jQuery to create a spreadsheet application 
> http://www.ibm.com/developerworks/web/library/wa-django/?ca=drs-
>
> http://www.spreadsheetgear.com/ seemed cool but you net .Net and it will cost 
> you (not sure if it will save you some money).
>
> Regards
> Chris
>
> -Original Message-
> From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
> Behalf Of Marwan Al-Sabbagh
> Sent: 06 April 2011 16:59
> To: django-users@googlegroups.com
> Subject: Re: Django app for data management and visualization
>
> this sounds very interesting to me too. I'm working at a financial
> institution and I'm facing a similar challenge of allowing the users
> to generate ad hoc reports and export those reports to excel. I've
> already implemented this requirement in PHP and I'm in the process of
> migrating these reporting systems to django. I'm very interested to
> see how you plan to do excel exports. I'll also be righting a library
> within the next two months to do that, because I haven't found
> anything that meets our requirements. If it's something you are
> interested in please shoot me an email.
>  as far as importing data from excel sheets into a database check out
> www.python-excel.org and specifically their xlrd package that lets you
> read excel files and traverse the cells. You could use this to extract
> values and populate your database.
>
> Marwan
>
> On Tue, Apr 5, 2011 at 7:03 PM, Gianluca Riccardi
>  wrote:
>>
>>
>> On 5 Apr, 17:06, alessio c  wrote:
>>> Ciao,
>>
>> ciao Alessio,
>>
>>>
>>> yes I do. I need more basic stuff then that and I need tables. Think of this
>>> as tentative to reduce Excel use (which is killing me).
>>>
>>> I can use matplotlib or openflash if I want to go really fancy. However, now
>>> I need to set up the framework. After that, I have a platform from which I
>>> can run all my scripts.
>>>
>>> Let's say I have a database with invoice data from different subsidiaries. I
>>> want to be able to: 1) create different views (subsidiary level, macro
>>> level, invoice level, first 10 invoice, first 10 customers, etc.); 2) upload
>>> data from different formats (because people are lazy and it is impossible to
>>> impose a single format); 3) allow some users to upload data (to avoid them
>>> to send me excel files by email, this is a huge feature...); 4) allow some
>>> other users (managers) to access and download online reports (tables and
>>> graphs).
>>>
>>> Theoretically, when I get this right I am hoping to start a project on git.
>>> The main idea is to create a shared reporting tool.
>>
>> sounds like your going to have some fun ;) good luck, especially if
>> you can get rid of dealing with spreadsheets and automate it I'm sure
>> users will be happier(you at first;)
>>
>> if You start a public git repo i'd like to read your progresses
>>
>> regards,
>> Gianluca Riccardi
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send