fieldsets not working in admin

2010-11-19 Thread Reikje
Hi, playing around with the django tutorial part 2. The fieldsets example does not work at all for me. I don't see the fieldsets. No error displayed. Anyone had this? Using ubuntu 10.04 and django 1.2.3 installed with easy_install not Synaptic. -- You received this message because you are subscri

Re: fieldsets not working in admin

2010-11-19 Thread Reikje
Bah stupid me. Use admin.site.register(Poll, PollAdmin) not just admin.site.register(Poll). Sorry ... On Nov 19, 10:26 am, Reikje wrote: > Hi, playing around with the django tutorial part 2. The fieldsets > example does not work at all for me. I don't see the fieldsets. No > e

empty media_root inside custom admin template

2012-03-17 Thread Reikje
Hi, I am trying to add a Rich Text Fields to my Django admin app following this blog post: http://www.beshrkayali.com/blog/2009/02/tinymce-django-admin/ However, I in my custom admin template "base_site.html" the {{media_root}} placeholder is always replaced with a blank. My settings.py in the pr

buildout development vs. deployment

2012-04-25 Thread Reikje
Hi, I am looking into buildout to deploy a django webapp and all it's dependencies. I find it quite useful even during development because it forces you to keep track of your dependencies. A question regarding some best practices. Lets say I have buildout.cfg and setup.py in my project root and

Re: buildout development vs. deployment

2012-04-30 Thread Reikje
ndled within a egg file. (Let me add that I am new to Django/Python deployment :) /Reik On Wednesday, April 25, 2012 12:21:25 PM UTC+2, Reikje wrote: > > Hi, I am looking into buildout to deploy a django webapp and all it's > dependencies. I find it quite useful even during dev

intercept calls to reverse(..) in tests

2011-09-06 Thread Reikje
Hi, I have a bunch of WebTest's which are using the reverse method from django.core.urlresolvers to resolve a URL which the test should call. Example: url = reverse('webapp_home') form = self.app.get(url).form Now I need to add a query parameter to every url. This is to mimic a Facebook request w

Re: intercept calls to reverse(..) in tests

2011-09-07 Thread Reikje
Excellent Daniel, thanks a lot. On Sep 7, 10:23 am, Daniel Roseman wrote: > On Wednesday, 7 September 2011 07:49:00 UTC+1, Reikje wrote: > > > Hi, I have a bunch of WebTest's which are using the reverse method > > from django.core.urlresolvers to resolve a URL which t

Re: intercept calls to reverse(..) in tests

2011-09-17 Thread Reikje
the original reverse method in django.core.urlresolvers even though it is calling the FacebookWebTest constructor before. Any suggestions :) On Sep 7, 10:23 am, Daniel Roseman wrote: > On Wednesday, 7 September 2011 07:49:00 UTC+1, Reikje wrote: > > > Hi, I have a bunch of WebTest

loaddata and auto_now_add=True

2011-10-03 Thread Reikje
Hi, I have a test fixture file which I use in unit tests. In some Models I have date fields defined like this: models.DateTimeField(auto_now_add=True) for which I don't specify values in the fixture file (users.json). This works well as part of testing but when I want to load the fixture into the r

Re: loaddata and auto_now_add=True

2011-10-03 Thread Reikje
1 3:43 PM, "Reikje" wrote:> Hi, I have a > test fixture file which I use in unit tests. In some > > Models I have date fields defined like this: > > models.DateTimeField(auto_now_add=True) for which I don't specify > > values in the fixture file (users.json). T

suggestion for dependency injection in view tests

2011-10-04 Thread Reikje
In one of my views, I am doing a call to the Facebook graph API which is a bit heavyweight and you also need a valid token. I am looking into ways to use mocking/dependency injection to avoid having to do this call during view tests. So let's say i have this view method: def suggest(request, usrid

Re: Facebook Authentication: Client side vs. Server side

2011-10-19 Thread Reikje
I would do it server side. Some people might have JavaScript disabled, so I wouldn't rely on the JavaScript SDK. Does django-social-auth support OAuth2 for Facebook? I can only see OAuth from the docs. On Oct 18, 5:18 pm, Vijay Khemlani wrote: > Hello, > > I'm just starting with a project that re

Re: How to set up Apache to serve up django websites?

2011-10-25 Thread Reikje
On a side note, I can recommend this book: http://www.packtpub.com/django-1-1-testing-and-debugging/book They have an entire chapter for running Django on Apache. /Reik On Oct 24, 8:39 am, Roger Marcus wrote: > I have the django project Mezzanine up and working well. They have done a > much bett

clear/empty text field on every POST

2011-08-01 Thread Reikje
Hi, I am using django.Forms for a website. I have a text field which is not required. Every time it is posted, I do not retain what was entered in this field, i.e. it should be blank every time the page is rendered. What is the best way to archive this? Here is the form: class SuggestionForm(form

Re: clear/empty text field on every POST

2011-08-02 Thread Reikje
Good workaround :) Adding it. Thanks On Aug 1, 12:05 pm, lokesh wrote: > hi, >  Use Javascript or jquery .reset() to clear the form fields . > Lokesh S > > On Aug 1, 1:41 pm, Reikje wrote: > > > Hi, > > > I am using django.Forms for a website. I have a tex