Re: Django Knowledge Strorehouse

2011-07-07 Thread sebastien piquemal
Hi all ! My humble opinion, ... where there is the most room for improvements in existing services is django-snippets. It is very useful, the idea is good, but it is not so nice to use at the moment. Instead of using own custom code to power the site, wouldn't it be good to use something like OSQA

Re: Serving static files weirdness

2011-07-07 Thread Xavier Ordoquy
Hi, If you want help, you'll need to provide more information. What django version, what env (wsgi, devserver), what's your admin media and so on. Regards, Xavier. Le 8 juil. 2011 à 04:40, neridaj a écrit : > I had my static files being served form media i.e., the tree looked > like this: > >

Re: RegistrationForm subclass not showing up

2011-07-07 Thread CareerDhaba tech
Hi Kat, You have to tell the your registration view to use the RegistrationFormTermsofService. First, import that class from forms and change your form_call from None to to RegistrationFormTermsofService. Hope this helps. On Thu, Jul 7, 2011 at 5:34 PM, katstevens wrote: > Hi - I'm new to Djan

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-07 Thread Roberto De Ioris
> 2011/7/8 Bjarni Rúnar Einarsson > >> >>http://pagekite.net/wiki/Floss/PyBreeder/ >>https://github.com/pagekite/PyBreeder >> >> It's basically a small tool for combining multiple .py files into one. >> It's trivial I know, but I looked all over and couldn't find anything >> quite >> like

Re: anybody using PhoneGap with Django

2011-07-07 Thread John Fabiani
On Thursday, July 07, 2011 08:48:51 pm Andy McKay wrote: > On 2011-07-07, at 2:22 PM, John Fabiani wrote: > > I'm wondering if anyone has had any success with PhoneGap and Django? > > Yes. > -- > Andy McKay > a...@clearwind.ca > twitter: @andymckay LOL - I guess I could have asked a better

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-07 Thread Venkatraman S
2011/7/8 Bjarni Rúnar Einarsson > >http://pagekite.net/wiki/Floss/PyBreeder/ >https://github.com/pagekite/PyBreeder > > It's basically a small tool for combining multiple .py files into one. > It's trivial I know, but I looked all over and couldn't find anything quite > like it, so I ende

Re: Django Knowledge Strorehouse

2011-07-07 Thread Venkatraman S
On Fri, Jul 8, 2011 at 5:20 AM, Russell Keith-Magee wrote: > So -- my humble suggestion: If you think there is a need for improving > Django documentation, I wholeheartedly agree. There's plenty of room > for improvement in Django's docs. But the place to start isn't to > write a massive technica

Re: anybody using PhoneGap with Django

2011-07-07 Thread Andy McKay
On 2011-07-07, at 2:22 PM, John Fabiani wrote: > I'm wondering if anyone has had any success with PhoneGap and Django? Yes. -- Andy McKay a...@clearwind.ca twitter: @andymckay -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
Problem solved: nose.tools.set_trace :) 2011/7/8 Daniel França > but my set_trace still freezes =/ If anyone have any idea what could be > that. > > I'm on a Mac OS 10.6 > > > 2011/7/8 Daniel França > >> yeah, thanks a lot, it's not 'BR' but I passed the ID of country and state >> and it worked

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
but my set_trace still freezes =/ If anyone have any idea what could be that. I'm on a Mac OS 10.6 2011/7/8 Daniel França > yeah, thanks a lot, it's not 'BR' but I passed the ID of country and state > and it worked. =) > > > On Fri, Jul 8, 2011 at 12:15 AM, Shawn Milochik wrote: > >> Could it b

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
yeah, thanks a lot, it's not 'BR' but I passed the ID of country and state and it worked. =) On Fri, Jul 8, 2011 at 12:15 AM, Shawn Milochik wrote: > Could it be because the test is passing 'Brasil' instead of 'BR'? I'm > assuming 'BR' is a valid choice and 'Brasil' is invalid. That's why you're

Re: KeyError in UnitTests

2011-07-07 Thread Shawn Milochik
Could it be because the test is passing 'Brasil' instead of 'BR'? I'm assuming 'BR' is a valid choice and 'Brasil' is invalid. That's why you're passing 'PR' instead of 'Paraná' in your data dictionary. If the field isn't a required field, then your form.is_valid() would be true, but there wou

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
Here's the verbosity result of tests running (using nose), the most important part, I guess Creating table cadastroav_country == ERROR: Tests Novo Usuario Cliente --

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
I was thinking, if country isn't created, so this test should fail, but that's not what happen when I was using nose *country = Country.objects.get(pk=35)* *self.assertEqual( country.name, 'Brasil' )* * * On Thu, Jul 7, 2011 at 11:47 PM, Shawn Milochik wrote: > On 07/07/2011 10:

Re: KeyError in UnitTests

2011-07-07 Thread Shawn Milochik
On 07/07/2011 10:44 PM, Daniel França wrote: I changed the test runner to default and the error message is a lot more clear. I got a DatabaseError: no such table: cadastroav_country but this should be created by tests, right? I'm using South, maybe it's a problem? The problem could be with y

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
I changed the test runner to default and the error message is a lot more clear. I got a DatabaseError: no such table: cadastroav_country but this should be created by tests, right? I'm using South, maybe it's a problem? 2011/7/7 Daniel França > I did some tests > I put self.cleaned_data['X'] >

Serving static files weirdness

2011-07-07 Thread neridaj
I had my static files being served form media i.e., the tree looked like this: media/ /css /js /images with this in my url conf: if settings.SERVE_MEDIA_FROM_DJANGO: urlpatterns += patterns('', (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': r'media'}), (r'^tiny_mce

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
I did some tests I put self.cleaned_data['X'] where X I change to all the fields of my form, it in *def clean() *function and it seems only 2 fields aren't available, state and country, I believe that it's not a coincidence that both of them are foreign key(objects). I'm using a sqlite database an

Re: KeyError in UnitTests

2011-07-07 Thread Shawn Milochik
You should be able to use pdb and then examine variables in scope. Aren't you getting a pdb prompt? Are you redirecting your output? You can also using logging and put a bunch of debug statements in to narrow down where the problem lies. If you can make a bare-bones copy of your app that dupl

Re: KeyError in UnitTests

2011-07-07 Thread Daniel França
I already tried to put the code in def clean(), same error, and I did this change you suggested andré, but same error again. as I said using the manual process the validation works fine I don't know how to debug this in unit tests, pdb.set_trace simply freeze my running tests =/ On Thu, Jul 7, 2

Re: KeyError in UnitTests

2011-07-07 Thread Andre Terra
My guess is that the input for the country field in the test is not the same as when a user POSTs the form. This is probably because you're passing a Country instance rather than country.name in your 'values' variable. Furthermore, if country can be blank, you should use if cleaned_data.get('cou

Re: KeyError in UnitTests

2011-07-07 Thread Shawn Milochik
If you want to mess with 'country' then you write a clean_country(self) function. If you want to mess with 'document' you write a clean_document(self) function. If you want to do something with one and be sure the other is also available, you write a clean(self) function, which executes after

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Kenneth Gonsalves
On Thu, 2011-07-07 at 10:46 -0400, Shawn Milochik wrote: > > mentioned. With a threaded mail client, I use Mutt, they're much > > easier to keep up with than anything web based. > > > > +1 > > I prefer this mailing list to anything else. It's far superior to IRC > and a forum site (such as Stack

Re: Django Knowledge Strorehouse

2011-07-07 Thread Russell Keith-Magee
On Thu, Jul 7, 2011 at 9:30 PM, Venkatraman S wrote: > > > > On Thu, Jul 7, 2011 at 6:50 PM, Tom Evans wrote: >> >> Thinking 'but we can make our own Q&A site' is foolish. See Jeff >> Attwood's post on the same subject: > > I wouldnt do this and am in no way going to be doing this. Instead, i am

KeyError in UnitTests

2011-07-07 Thread Daniel França
Hi, I'm starting to use unit tests in Django, I got stuck in a client test I can't figure out the solution, As I don't have much experience in Django unit tests maybe the error is easy to solve I got this error message executing unit tests apps/usuarios/forms.py", line 95, in clean_document

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-07 Thread Bjarni Rúnar Einarsson
I actually just wrote a similar tool for solving a (very limited) subset of this problem: http://pagekite.net/wiki/Floss/PyBreeder/ https://github.com/pagekite/PyBreeder It's basically a small tool for combining multiple .py files into one. It's trivial I know, but I looked all over and co

Django model with 3 many to many fields

2011-07-07 Thread shwetanka
I have these models class User(models.Model): user_name = models.CharField() ph_number = models.CharField() class ExamPaper(models.Model): paper_name = models.CharField() paper_subject = models.CharField() class Questions(models.Model): paper = models.ManyToManyField(ExamPape

anybody using PhoneGap with Django

2011-07-07 Thread John Fabiani
Hi guys, I'm wondering if anyone has had any success with PhoneGap and Django? Johnf -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

Re: cropping of an image

2011-07-07 Thread jaspreet kaur
On Fri, Jul 8, 2011 at 2:01 AM, Jonas Geiregat wrote: > > >> >> I want the code for including an image with crop feature. > > Django doesn't come with any image handling libraries. > I've done this before and have used PIL (Python Image Library) for it. > > It might be advised to use this in combi

Re: Django Debug Toolbar

2011-07-07 Thread Cal Leeming [Simplicity Media Ltd]
+1 DDT is a great thing. Altho if you are doing data intensive applications, you might need to disable it for some pages. For example ,one of our webapps increases to 55s loading time from 5s (its a heavy data reporting page). Other than that, its a lovely thing :) On 7 Jul 2011 17:42, "Venkatraman

Re: error on django-admin.py startproject

2011-07-07 Thread jaspreet kaur
Your problem is solved or not? On Fri, Jul 8, 2011 at 12:39 AM, Phil wrote: > > Thanks for advice everyone. > > I had installed python2.7 the normal way using "wget > http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2"; > > I am reading up a bit more on it and will give it another go hopeful

Re: cropping of an image

2011-07-07 Thread Jonas Geiregat
> > I want the code for including an image with crop feature. Django doesn't come with any image handling libraries. I've done this before and have used PIL (Python Image Library) for it. It might be advised to use this in combination with celery if you're handling large files. That way it w

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Cal Leeming [Simplicity Media Ltd]
To be honest, there is no reason why someone cant make something which they believe will be useful, and use the django-users archive as db filler. If it doesnt catch on in the community, at least you'd learn a bunch of new stuff and get the opportunity to try out new things outside of a typical pro

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Cal Leeming
To be honest, there is no reason why someone cant make something which they believe will be useful, and use the django-users archive as db filler. If it doesnt catch on in the community, at least you'd learn a bunch of new stuff and get the opportunity to try out new things outside of a typical pro

NoReverseMatch in django production server

2011-07-07 Thread mf
The project is working fine in the dev server but when I try to use it in the production sv(Gunicorn + Nginx), NoReverseMatch error appears. I checked the code several times and I can't find the error. urls.py: from django.conf.urls.defaults import patterns, include, url from django.conf import s

cropping of an image

2011-07-07 Thread jaspreet kaur
Hello everyone I want the code for including an image with crop feature. Please help me Thanks in advance Jaspreet -- 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

Re: django/python performance vs play/java

2011-07-07 Thread Jason
I recommend you give this a shot: http://backslashn.com/post/505601626/profiling-execution-with-the-django-debug-toolbar It might give some clues and is VERY fast to setup. On Jul 6, 8:44 am, drakkan wrote: > You can download the code here: > > http://77.43.75.110/temp/cinquestelle.tar.gz > > y

Re: error on django-admin.py startproject

2011-07-07 Thread Phil
Thanks for advice everyone. I had installed python2.7 the normal way using "wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2"; I am reading up a bit more on it and will give it another go hopefully with more success. Thanks again. On Jul 4, 10:15 am, Tim Diggins wrote: > I think i

Re: django/python performance vs play/java

2011-07-07 Thread Jason
Good catch. Drakkan, I suggest trying out this ProfilingPanel for the Django Debug Toolbar (very easy to setup). http://backslashn.com/post/505601626/profiling-execution-with-the-django-debug-toolbar I'd be very curious to know what you find. On Jul 7, 8:16 am, akaariai wrote: > On Jul 6, 6:44

Re: delete unnecessarily fields =D

2011-07-07 Thread Kase
i have 30 gb disk and meaby 15 webs... some dont use, so delete it my problem is not the space of disk, my problem is the count of fileds =/ only 50 000 > in this momento in have 39 000 so i delete webs dont in use, and i like delete fields dont in use too an i think that a f

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Micky Hulse
I personally have a dedicated gMail account for lists, which forwards everything to my main gMail account, and then all list e-mails get filtered into a "lists" label/folder. Here's some (random) thoughts from a (self proclaimed) listserv veteran and Django/Python noob: 1. Am I the only one th

Re: django/python performance vs play/java

2011-07-07 Thread Venkatraman S
On Wed, Jul 6, 2011 at 7:21 PM, akaariai wrote: > > The best way to check where your performance problems come from is > using profiling. > > In my experience, the most likely things to cause you performance > problems in Django are database queries and template rendering. If > template rendering

Django Debug Toolbar

2011-07-07 Thread Venkatraman S
If you are *not* developing RIA applications, then this is a MUST app in your workspace. I have reduced the number of queries in some of my pages from 40+ to 4+ and i can see HUGE performance benefits. Also, more importantly, this has *significantly* improved my design skills. -V -- You received

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 8:42 PM, Andre Terra wrote: > So basically, if SO emailed you new questions tagged as 'django' and > your replies were posted as answers, you would be okay? > Guys, SO, mailing lists, IRC etc are different channels for communication; and no ONE channel alone can be usefu

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Shawn Milochik
On 07/07/2011 11:21 AM, Kevin Monceaux wrote: On Thu, Jul 07, 2011 at 10:46:47AM -0400, Shawn Milochik wrote: If I even filter a mailing list so it doesn't go into my inbox I end up falling behind and deleting all the messages unread. The only way I actively participate in this list is because

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Kevin Monceaux
On Thu, Jul 07, 2011 at 10:46:47AM -0400, Shawn Milochik wrote: > If I even filter a mailing list so it doesn't go into my inbox I end > up falling behind and deleting all the messages unread. The only way I > actively participate in this list is because it hits my inbox. I'm on too many mailing

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Shawn Milochik
On 07/07/2011 11:12 AM, Andre Terra wrote: So basically, if SO emailed you new questions tagged as 'django' and your replies were posted as answers, you would be okay? Cheers, André I think my answer to that is 'yes.' It might be even better that way, because of the ability to vote questions

Re: django/python performance vs play/java

2011-07-07 Thread akaariai
On Jul 6, 6:44 pm, drakkan wrote: > You can download the code here: > > http://77.43.75.110/temp/cinquestelle.tar.gz > > you need sorl as dependencies too: > > http://pypi.python.org/pypi/sorl-thumbnail/3.2.5 > I took a quick look of the source. I think the limiting factor for you is template ren

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Andre Terra
So basically, if SO emailed you new questions tagged as 'django' and your replies were posted as answers, you would be okay? Cheers, André On 7/7/11, Shawn Milochik wrote: > On Thu, Jul 7, 2011 at 10:41 AM, Kevin Monceaux > wrote: >> On Wed, Jul 06, 2011 at 08:38:42PM -0300, Andre Terra wrote:

Re: Display FK List

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 7:19 PM, urukay wrote: > maybe autocomplete will user frendly solution. > Yup - i just got this working with ajax-selects. Thanks. -V http://blizzardzblogs.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Shawn Milochik
On Thu, Jul 7, 2011 at 10:41 AM, Kevin Monceaux wrote: > On Wed, Jul 06, 2011 at 08:38:42PM -0300, Andre Terra wrote: > >> If we could move the questions to a specific site, everyone would >> benefit. > > Not everyone.  I much prefer mailing lists to any of the other options > mentioned.  With a t

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Kevin Monceaux
On Wed, Jul 06, 2011 at 08:38:42PM -0300, Andre Terra wrote: > If we could move the questions to a specific site, everyone would > benefit. Not everyone. I much prefer mailing lists to any of the other options mentioned. With a threaded mail client, I use Mutt, they're much easier to keep up wi

Re: Issue with saving user information during django_registration

2011-07-07 Thread CareerDhaba tech
Yep, that solved the problem. Very stupid mistake on my part, but this is a mistake I will learn from. I am a newbie at HTML as well, and I thought the action was the redirect page, not the page to submit form data. Thanks for your help André. On Thu, Jul 7, 2011 at 6:27 PM, Andre Terra wrote:

Re: Any Polling/Survey Examples?

2011-07-07 Thread Shawn Milochik
Hi Gagiel, I'm happy that you're getting interested in Django. You'll find a lot of smart people here willing to help you out as you get started, but it would help us a lot if you customize your approach to the list a bit to help us help you. Please check this out: https://code.djangoproject.com/

Re: Display FK List

2011-07-07 Thread urukay
Hi, maybe autocomplete will user frendly solution. Radovan http://www.yau.sk On 7. Júl, 10:39 h., Venkatraman S wrote: > i have 2 models: Items and a Transactions . > > Transactions has a fk to Items. Now, there can be millions of Items, and > when i render Transaction as a modelform, i see tha

Re: Django Knowledge Strorehouse

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 6:50 PM, Tom Evans wrote: > Do you intend to revalidate every article and snippet on every django > release? > How will you do that, will each snippet/article be required to have > testcases? > Who will write the testcases? > Test cases are required only when they *are* re

Re: Django Knowledge Strorehouse

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 6:50 PM, Tom Evans wrote: > Thinking 'but we can make our own Q&A site' is foolish. See Jeff > Attwood's post on the same subject: > I wouldnt do this and am in no way going to be doing this. Instead, i am suggesting an ArticleBase.

Re: Django Knowledge Strorehouse

2011-07-07 Thread Cal Leeming [Simplicity Media Ltd]
Hmm, Tom does have a point :/ On Thu, Jul 7, 2011 at 2:20 PM, Tom Evans wrote: > On Thu, Jul 7, 2011 at 2:04 PM, Cal Leeming [Simplicity Media Ltd] > wrote: >> +1 SO (stackoverflow) style interface on the mailing list.. >> >> +1 searchable code snippet database >> >> +1 importing of all existing

Re: Complex Query help - get items from the org to which the user belongs

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 3:49 PM, DrBloodmoney wrote: > On Thu, Jul 7, 2011 at 12:04 AM, Venkatraman S wrote: > > I am doing some bechmarking on the performance of both the versions of > the > > query: > > 1. > > > Item.objects.filter(created_by__employees__org__in=u.employees_set.all().values_lis

Re: Django Knowledge Strorehouse

2011-07-07 Thread Tom Evans
On Thu, Jul 7, 2011 at 2:04 PM, Cal Leeming [Simplicity Media Ltd] wrote: > +1 SO (stackoverflow) style interface on the mailing list.. > > +1 searchable code snippet database > > +1 importing of all existing django-users topics with smart topic linkage > > +1 ability to link related topics to eac

Re: Django Knowledge Strorehouse

2011-07-07 Thread Andre Terra
This is what I was talking about. We *definitely* need something like this as the docs don't cover a lot of gotchas that impose a steeper learning curve for newcomers. I'm willing to write articles and contribute with some useful snippets, as well as testing the code. +1 on having per-release ver

Re: Dreamhost Virtualenv Question

2011-07-07 Thread Andre Terra
A few more important things to note: Your projects shouldn't live within your virtualenv directory. You can create projects and virtualenvs with the same name (I often do), but it's not mandatory. So here's an example setup ~/virtual/djangotrunk ~/virtual/socialwebzone ~/projects/socialwebzone

Re: Django Knowledge Strorehouse

2011-07-07 Thread Cal Leeming [Simplicity Media Ltd]
+1 SO (stackoverflow) style interface on the mailing list.. +1 searchable code snippet database +1 importing of all existing django-users topics with smart topic linkage +1 ability to link related topics to each other. On Thu, Jul 7, 2011 at 2:02 PM, Cal Leeming [Simplicity Media Ltd] wrote:

Re: Django Knowledge Strorehouse

2011-07-07 Thread Cal Leeming [Simplicity Media Ltd]
I'd be willing to put some time into this, for sure. Not sure how much code I could contribute (as I'm already involved in a few other long term projects), but could certainly offer up feedback/testing/resources etc. Cal On Thu, Jul 7, 2011 at 4:26 AM, Venkatraman S wrote: > Hi All, > > Probabl

Re: Issue with saving user information during django_registration

2011-07-07 Thread Andre Terra
I'm mostly guessing, but try this for your registration_form.html template instead http://dpaste.com/hold/564305/ Cheers, André On Thu, Jul 7, 2011 at 12:03 AM, CareerDhaba tech wrote: > Hi André, > > Thanks for the feedback. > > Here is the relevant code: > > registration_form view: > > http:/

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-07 Thread Andre Terra
THIS. IS. SPARTA!!! On 7/7/11, Cal Leeming [Simplicity Media Ltd] wrote: > Hydra is already a used package name in Pypi, and a few other code > related projects (would prefer to use a name which isn't already used > in a similar area). :/ > > On Thu, Jul 7, 2011 at 5:28 AM, Venkatraman S wrote:

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-07 Thread Cal Leeming [Simplicity Media Ltd]
Hydra is already a used package name in Pypi, and a few other code related projects (would prefer to use a name which isn't already used in a similar area). :/ On Thu, Jul 7, 2011 at 5:28 AM, Venkatraman S wrote: > > On Thu, Jul 7, 2011 at 9:40 AM, Roberto De Ioris wrote: >> >> http://cloudsilve

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-07 Thread Cal Leeming [Simplicity Media Ltd]
Also, thanks Roberto for suggesting Silver Lining, it's certainly given me some food for thought :) On Thu, Jul 7, 2011 at 1:28 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Hi Roberto, > > As Venkatraman said, Silver Lining seems to be aimed more at distribution. > > Also, they have stated in

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-07 Thread Cal Leeming [Simplicity Media Ltd]
Hi Roberto, As Venkatraman said, Silver Lining seems to be aimed more at distribution. Also, they have stated in the docs that it is locked down heavily to the host OS, and it would appear that the whole thing is tied into libcloud (which is completely the opposite from the direction we want to g

RegistrationForm subclass not showing up

2011-07-07 Thread katstevens
Hi - I'm new to Django and am using django-registration to set up new users. The basic RegistrationForm shows up fine in my template (which just uses {{ form.as_table }} to generate fields inside the form HTML), but I now want to use the RegistrationFormTermsOfService subclass instead. I set it a

Re: ERROR: test_14377 (django.contrib.auth.tests.views.LogoutTest), AttributeError: 'module' object has no attribute 'handler500'

2011-07-07 Thread David Markey
Anyone any ideas? Is this a bug in 1.2.5? On 3 July 2011 12:52, David Markey wrote: > Anyone any idea how to fix this, in my urls.py im explicitly doing: > > from django.conf.urls.defaults import handler404, handler500, include, > patterns, url > > > =

Re: How to add CSRF to context when using test client???

2011-07-07 Thread Craig Blaszczyk
csrf_token is a proxy object not a string. Try doing: csrf_token = '%s' % response.context['csrf_token'] -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Dt

Re: delete unnecessarily fields =D

2011-07-07 Thread Calvin Spealman
It deleting "the language files that do not use" will save you any significant portion of your storage quota, then you seriously need a new hosting provider. On Thu, Jul 7, 2011 at 4:18 AM, Kase wrote: > I need to lower the amount of files on my server becouse is a shared > server. > > so I wonde

Any Polling/Survey Examples?

2011-07-07 Thread Gagiel
Hello everyone, I'm doing a survey site to collect a group of parameters submitted by users. Those parameters are between 0 and 99(%). Now I'd like to do this with django, and I'm seeking advice for apps i can make a good reference, better if they use jQuery or something for users to choose for t

Re: Complex Query help - get items from the org to which the user belongs

2011-07-07 Thread DrBloodmoney
On Thu, Jul 7, 2011 at 12:04 AM, Venkatraman S wrote: > I am doing some bechmarking on the performance of both the versions of the > query: > 1. > Item.objects.filter(created_by__employees__org__in=u.employees_set.all().values_list('org')) > and > 2. Items.objects.extra(where=['created_by_id in (s

Re: Speed of search question

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 3:01 PM, Marc Aymerich wrote: > https://github.com/robhudson/django-debug-toolbar/commits/master/ > DDT rocks. Btw, does this fork have any special features when compared with the Master? -V -- You received this message because you are subscribed to the Google Groups "

Re: Speed of search question

2011-07-07 Thread Marc Aymerich
On Thu, Jul 7, 2011 at 8:15 AM, Benedict Verheyen wrote: > On 6/07/2011 12:28, Malcolm Box wrote: >> I think this should work: >> >> Calendar.objects.filter(appointment__owner = request.user) >> >> Try it and see. >> >> Malcolm >> > > Thanks, > > > I'll see if I can make a test script to test this

Re: Speed of search question

2011-07-07 Thread Venkatraman S
On Thu, Jul 7, 2011 at 11:45 AM, Benedict Verheyen < benedict.verhe...@gmail.com> wrote: > > I'll see if I can make a test script to test this. > It's actually a good idea to put in a performance test of some sorts. > I have much complex relationships, and i dont see any peformance issues. -V

Display FK List

2011-07-07 Thread Venkatraman S
i have 2 models: Items and a Transactions . Transactions has a fk to Items. Now, there can be millions of Items, and when i render Transaction as a modelform, i see that all the Items are being fetched - and this is quiet a lot of txt being sent over the wire. Is there an efficient way of associat

delete unnecessarily fields =D

2011-07-07 Thread Kase
I need to lower the amount of files on my server becouse is a shared server. so I wonder if I can delete the folder that uses django during instalaccion (where the setup.py) and I also wonder if I can delete the language files that do not use, and where I can find -- You received this message be