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

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. >

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 opinio

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/ > > >

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: >     p

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 stopp

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(User

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 sa

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

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.c

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 w

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 ...

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 th

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 no

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 r

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 t

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 y

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 djang

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

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

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

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,

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 th

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

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 p

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"

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 emai

{% 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__), 'inde

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 opt

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 gro

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_linktex

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 Go

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/ > Regard

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 i

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) * whe

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

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

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.co

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 use

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 G

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 h

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 "val