multi_db support for doctests? How to enable?

2010-08-04 Thread Reinout van Rees
hack, I cannot set the multi_db to true otherwise. for test in doctests._tests: test.multi_db = True # End of hack, which doesn't work anyway... suite.addTest(doctests) return suite = Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.va

Re: multi_db support for doctests? How to enable?

2010-08-04 Thread Reinout van Rees
;ENGINE': 'django.db.backends.sqlite3', 'NAME': 'testunblobbed.db', } } No special options, I'd say. The test database *used* to get created when I last ran the tests a few weeks ago, now that I think about it. I'll have t

Re: multi_db support for doctests? How to enable?

2010-08-04 Thread Reinout van Rees
thing that 1.2betasomething did right? Gotta drink wine with my wife now, I'll test tomorrow :-) Thanks, Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineer

Re: multi_db support for doctests? How to enable?

2010-08-05 Thread Reinout van Rees
ose lines, the tests would work again. I really should have spotted that by running the tests before and after making that config change... Ok, now I'll have to figure out a different way of getting xml output (for hudson) out of django's tests. Thanks, Reinout -- Reinout van Rees

Re: importing models to script file

2010-08-05 Thread Reinout van Rees
tings to use. See http://docs.djangoproject.com/en/dev/topics/settings/#designating-the-settings Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You re

Re: Python Segfaults with Django 1.1

2010-08-05 Thread Reinout van Rees
ope server would have nowhere to print its console output once an infrequent error occured. And it would die. The wsgi stuff works differently, so this shouldn't be the problem. Mentioning it anyway, perhaps it rings some distant bell :-) Reinout -- Reinout van Rees - rein...@van

Re: Python Segfaults with Django 1.1

2010-08-05 Thread Reinout van Rees
etting closed? Watch your /tmp size, for instance. Normally if you do it from views or so, the tempfile object gets garbage collected and closed. Anyway, you probably already know where to look :-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Progr

Re: Creating a html table...

2010-08-05 Thread Reinout van Rees
. And perhaps even a search function. On the template side you often only have to create a html table and tell the javascript to do its job. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers

Re: django.views.static.serve issue

2010-08-05 Thread Reinout van Rees
lem once, too. The reason was that the template is rendered without the proper context. You'll need to pass along a RequestContext: from django.template import RequestContext def your_view(request): ... return render_to_response( your_template, {'some':

Re: Linkedin Search

2010-08-06 Thread Reinout van Rees
uot; searching: there are specialized databases for that. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this message because you

Re: portable apps problem

2010-08-06 Thread Reinout van Rees
for things that need customizing for the various sites. Have you seen the "reusable apps" talk by James Bennett? http://www.youtube.com/watch?v=A-S0tqpPga4 If not: 45 minutes of highly recommended information that'll give you lots of ideas :-) Reinout -- Reinout van

Re: django comments problem

2010-08-06 Thread Reinout van Rees
POST form, use the csrf_token tag inside the element if the form is for an internal URL, e.g.: {% csrf_token %} So just add that csrf_token tag and you're probably done. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-sch

Re: Deploying application media files

2010-08-06 Thread Reinout van Rees
log/2010/05/19/django-css-javascript-files.html (http://tinyurl.com/377g9l9). Read it and you'll know if django-staticfiles is what you're looking for. Note: at djangocon.eu in Berlin, there were voices to make this django-staticfiles solution standard in django 1.3. Reinout -- Rei

Re: extends templates with the same name

2010-08-06 Thread Reinout van Rees
And my site can override ui/base.html and fill in the logo block and the footer block (which are normally not touched by the applications). I hope I'm clear enough without a code example. The code, should you want to take a look, is at http://pypi.python.org/pypi/lizard-ui Reinou

Re: Multipart and Content-Type

2010-08-06 Thread Reinout van Rees
n Django, but I've seen this happen once elsewhere, so it might have bitten you too. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets&q

Re: Beautiful popup windows

2010-08-06 Thread Reinout van Rees
(big python CMS) also uses jquery tools because it doesn't have its own css: the UI library doesn't fight your existing css. That's a big difference with for instance jqueryui (which I also use and like, btw :-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.

Re: 'module' object has no attribute 'instancemethod' error

2010-08-11 Thread Reinout van Rees
py, but that it isn't available in views.py. Perhaps a missing import? Tip: "easy_install pyflakes" and call "pyflakes views.py", it'll report on missing (or extraneous) imports or variables. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.v

geodjango: windows installer for geos dependency?

2010-08-17 Thread Reinout van Rees
nobody uses oracle+geo stuff on windows :-) a) Do I really need that geos library? Or could there be something wrong with the oracle installation (like missing geo templates whatever). b) Where can I grab a windows installer for GEOS? I only see mentions of binary packages for osx and linux, none

Re: geodjango: windows installer for geos dependency?

2010-08-18 Thread Reinout van Rees
don't have access to the win2008 box from home). Thanks, Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this messag

Re: deserializing json

2010-08-20 Thread Reinout van Rees
guess... Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this message because you are subscribed to the Google Groups "Django

Re: installing DB engine

2010-08-22 Thread Reinout van Rees
tance. I'm sure windows also has a clicky-clicky installer. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this message

Re: ANN: nosedjango 0.8.1

2010-08-23 Thread Reinout van Rees
o I'm interested in alternatives :-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this message because you are subscribed

Re: manage.py syncdb not working

2010-08-24 Thread Reinout van Rees
alternative is for instance South (http://south.aeracode.org/) which *can* do the database migration for you, also in the case of added fields. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build mis

apache, mod_wsgi, windows: config hints?

2010-08-25 Thread Reinout van Rees
obvious. Alternatives are fine, too. But it has to be windows :-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this message

Re: Caching JSON in Django

2010-08-25 Thread Reinout van Rees
. Since my application is heavily AJAX, that's not what I want -- I want to cache JSON -- but it doesn't work! Any hints how I can make it work? Quick guess: difference in RequestContext between regular html pages and ajax views? Reinout -- Reinout van Rees - rein..

Re: Help with Geodjango+Postgres to find a Point, variance in decimal places

2010-08-25 Thread Reinout van Rees
coordinates? Normally, searching by coordinates would mean clicking on a map which results in a DB query with a location plus a margin around that location. => Can you work with a "search radius" in your query? Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinou

Re: command python not recognized with syncdb

2010-08-25 Thread Reinout van Rees
thon path is in your windows' path. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this message because you are subscri

Re: Help with Geodjango+Postgres to find a Point, variance in decimal places

2010-08-25 Thread Reinout van Rees
) calculations are lightning fast. Indexes optimized for it. So if you can keep the calculation inside the DB it ought to be fast enough. I agree however that it's best not to have to work around this issue. So your fix-it-with-javascript idea might be best. Reinout -- Reinout van Rees -

Re: Caching JSON in Django

2010-08-25 Thread Reinout van Rees
for [] over and over again without caching it :-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message because you are subscribed to the Google Group

Re: Django Database problems

2010-08-25 Thread Reinout van Rees
y who system as I have a few web projects running from it all ready, so if anyone has come across this or has a fix, please let me know Could you paste the database part of your config (with user/password obfuscated, of course)? Reinout -- Reinout van Rees - rein...@van

Re: Django Database problems

2010-08-25 Thread Reinout van Rees
; followed by a "print sys.path". That'll tell you where python is looking for code. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message

Re: apache, mod_wsgi, windows: config hints?

2010-08-26 Thread Reinout van Rees
On 08/26/2010 05:01 AM, Sam Lai wrote: On 25 August 2010 20:09, Reinout van Rees wrote: I normally deploy everything on linux, but a customer requires windows. I have a working setup with apache and mod_wsgi, but I wonder about the efficiency. I see hints like "mod_wsgi, daemon

Re: how to turn off CSRF in django 1.2?

2010-08-27 Thread Reinout van Rees
le for 1.0, too. Otherwise, a template tag that hacks this is quick to make yourself, I'd guess. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message

Re: order of middleware

2010-08-27 Thread Reinout van Rees
p to prevent errors. It mucks about with the content-length, that's why. By the way: have you already optimised the non-django-view parts of your application? Combined js; combined css; static hosting of media files by apache/ngnix; perhaps a varnish cache; etc. Optimizing *there* might b

Re: Template not found

2010-08-27 Thread Reinout van Rees
quot; :-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Problems loading static files on runserver (I mean images and css)

2010-08-27 Thread Reinout van Rees
right? I'd put a slash in front of "media". Even better would be: (Note the lack of a slash after {{ MEDIA_URL }}, btw). For those {{ MEDIA_URL }}-like urls to work you need to use the RequestContext, see http://tinyurl.com/yllym5h Reinout -- Reinout van Rees - rein...

Re: order of middleware

2010-08-27 Thread Reinout van Rees
On 08/27/2010 12:43 PM, Alessandro Ronchi wrote: 2010/8/27 Reinout van Rees mailto:rein...@vanrees.org>> I don't know about performance, but at least the GZipMiddleware documentation says it has to be right at the top to prevent errors. It mucks about with the con

Re: What replaced mod_python

2010-08-27 Thread Reinout van Rees
still have to follow up on that tip: that'll be on monday.). Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message because you are subscribed to the Go

Re: GeoDjango: default 4326 SRID doesn't work for transform()

2010-08-30 Thread Reinout van Rees
ed to add to your proj4 or whatever files to enable proper transformations. Just a brainstorm to get you started ;-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You rece

Re: GeoDjango: default 4326 SRID doesn't work for transform()

2010-09-01 Thread Reinout van Rees
x27;s 900913 instead of 900973 (google written in characters that look a bit similar). Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message because you are

Re: Surreptitious caching of JS in Django

2010-09-01 Thread Reinout van Rees
hat's probably something you configured yourself. Anyway, in development you can uncomment any CACHE_BACKEND in your settings.py and no caching will happen. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature i

Re: static files

2010-09-01 Thread Reinout van Rees
r.gif". And: you're apparently not using {{ MEDIA_URL }} in your template, which is intended precisely to get the url right (and absolute). Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyur

multiple oracle database queries in one request problem

2010-09-01 Thread Reinout van Rees
at fires off queries to both databases, so within the same request. Anyone got any hints on where to look? How to debug? How to fix it? Reinout (who dislikes the amount of handy debug info he's got...) -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Col

Re: multiple oracle database queries in one request problem

2010-09-01 Thread Reinout van Rees
On 09/01/2010 02:00 PM, Reinout van Rees wrote: Hi, I'm deploying a site on windows with oracle (and I don't know either of them well). Simple apache+wsgi setup for now. I'll have to test it out tomorrow when I'm near the windows machine again, but I might have foun

Re: multiple oracle database queries in one request problem

2010-09-02 Thread Reinout van Rees
On 09/01/2010 11:54 PM, Reinout van Rees wrote: On 09/01/2010 02:00 PM, Reinout van Rees wrote: Hi, I'm deploying a site on windows with oracle (and I don't know either of them well). Simple apache+wsgi setup for now. I'll have to test it out tomorrow when I'm near the w

Re: mod_wsgi, apache, windows XP

2010-09-03 Thread Reinout van Rees
sus django's own wsgi handling: http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html I haven't figured out yet what's wrong. I'm using buildout's djangorecipe to set it all up and djangorecipe's wsgi file does most of the tricks

Re: mod_wsgi, apache, windows XP

2010-09-03 Thread Reinout van Rees
n my settings.py. I'm by now convinced that "settings.py only gets loaded once so that's a nice place to put it" is wrong. So I'm probably better off adding lines I want run only once to one of my django applications' __init__py? I *do* want to be sure they&#x

Re: mod_wsgi, apache, windows XP

2010-09-05 Thread Reinout van Rees
e of the python libraries (pdb and so), but I couldn't check every detail. And the c-level libraries were beyond me. In the end I got it working (that is, "not actively dying") by telling apache to run with just one single thread... That's some solution... This is the firs

Re: Python Restarting After Every Request, MaxRequests Per Child is High

2010-10-04 Thread Reinout van Rees
and the end of the main call in your django.wsgi? Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message because you are subscribed to the Google Groups "

Re: Empty Response

2010-11-02 Thread Reinout van Rees
s: firebug (lets you inspect the headers). Or just "wget" in a pretty verbose mode. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message becau

Re: Do Fixtures have a limit?

2010-11-22 Thread Reinout van Rees
. I can't any mention of an upper limit for fixtures and this really has me stumped. Any ideas? Duplicate primary keys is the only thing I can think off right now. So: it added 32k objects, but 12k of them were duplicates. Worth a quick check. Reinout -- Reinout van Rees - rein...@van

Re: ajax and django

2010-11-22 Thread Reinout van Rees
quot;URL dispatching". This frees your method to just do their actual job instead of also having to figure out on which object to do their work. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht:

Re: Hosting multiple projects

2010-11-23 Thread Reinout van Rees
etically you should then only have to run the buildouts and symlink the various apache configs into your /etc/apache2/sites-available/. Anyhow, make sure their projects look a bit similar. A setup.py and an apache config, for instance. Hook it up with virtualenv or buildout. Reinou

Re: How do I get tracebacks printed to terminal?

2010-11-24 Thread Reinout van Rees
o the MIDDLEWARE_CLASSES thingy in the docstring. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Collega's gezocht! Django/python vacature in Utrecht: http://tinyurl.com/35v34f9 -- You received this message because you are subscribed to the Google Groups &quo

Re: Got Django and Buildout working, but what about PIL and Postgres?

2010-01-06 Thread Reinout van Rees
; PIL = 1.1.6<<< [python] recipe = zc.recipe.egg interpreter = python eggs = ${buildout:eggs} [django] recipe = djangorecipe version = 1.1.1 project = myproject projectegg = myproject settings = testsettings test = myproject eggs = ${buildout:eggs} Reinout

Re: Python based web reporting tool?

2010-01-07 Thread Reinout van Rees
some more google inspiration. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer/advisor at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this message because you are subscribed

Re: Why there are so few open-source business applications in django?

2010-01-07 Thread Reinout van Rees
iness. There's not too much room in open source land for such elaborate full-fledged business apps. I'm happy one of them is in python, at least :-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer/advisor at http://www.nelen-schuurmans.nl "Mili

Re: Splitting tests.py

2010-01-18 Thread Reinout van Rees
virtually empty anyway). Again: pretty wild guess ;-) Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer/advisor at http://www.nelen-schuurmans.nl "Military engineers build missiles. Civil engineers build targets" -- You received this message because

Re: eurodjangocon?

2010-01-20 Thread Reinout van Rees
On 01/20/2010 08:41 AM, Alex_Gaynor wrote: http://djangocon.eu/ is the official website for djangocon.eu (the new name). Please mention the old eurodjango name somewhere on that page so that google can find it. I was also searching in vain :-) Reinout -- Reinout van Rees - rein

Re: "Pro Django" book still up to date

2010-01-27 Thread Reinout van Rees
django. If I later need to apply it, I can look it up again in the book or, perhaps more likely, I can google for it in the django documentation. Reinout -- Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org Programmer/advisor at http://www.nelen-schuurmans.nl "Milit

Re: sqlite3 error

2012-02-12 Thread Reinout van Rees
;, Just "sqlite3" by itself was fine in older django versions, so you might have picked up an example from there. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what

Re: Request Context problem

2012-02-19 Thread Reinout van Rees
token. It won't even hit your "else add csrf token" code. The solution is simple: just add a {{ csrf_token }} somewhere in your form. That ought to do it. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nele

Re: Weird stacktrace coming from manage.py test

2012-03-23 Thread Reinout van Rees
not quite right. In your geodjango case, do you perhaps miss django.contrib.gis in your INSTALLED_APPS list? Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make

Re: Django-1.4c2 logging issue on Snow Leopard

2012-03-23 Thread Reinout van Rees
u spot something wrong with sys.path or so. Or the `#!` python line at the top. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham"

Re: Django log lines spamming syslog

2012-03-23 Thread Reinout van Rees
s/middleware.py for debug purposes. So check the django that your site is using and see if you have to beat someone with a stout stick. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're

Re: Pip install matplotlib error with virtualenv

2012-03-23 Thread Reinout van Rees
. Only reason I can think of is that it might be safer on the server or something like that. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- P

Re: Pip install matplotlib error with virtualenv

2012-03-23 Thread Reinout van Rees
ystem python. "virtualenv -s" or something like that. Perhaps you passed along that option? In that case, nothing in your virtualenv can find the system python's matplotlib. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org

Re: Pip install matplotlib error with virtualenv

2012-03-23 Thread Reinout van Rees
On 23-03-12 21:37, Reinout van Rees wrote: On 23-03-12 18:51, darwin_tech wrote: the weird thing is that matplotlib works fine on my system. If I have a Django project running outside of virtualenv, there is no problem and matplotlib is on the pythonpath. One of virtualenv's options

Re: Accessing objects from a dictionary in templates

2012-03-23 Thread Reinout van Rees
thing like {{ my_dict.42 }}. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are

Re: Accessing objects from a dictionary in templates

2012-03-23 Thread Reinout van Rees
n }} or so? Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are subscribed to the Goo

Re: Pip install matplotlib error with virtualenv

2012-03-26 Thread Reinout van Rees
*does* mean you must have all xyz-devel packages installed. An alternative is to keep your global python clean and only install specific packages with your OS that are best handled by the OS. Don't "pip install" other stuff by hand. Reinout -- Reinout van Rees

Re: philosophy behind sites and applications in Django

2012-03-26 Thread Reinout van Rees
that just provides a layout. Use that in the apps. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this mess

Re: myproject/wsgi.py vs. myproject.wsgi?

2012-03-26 Thread Reinout van Rees
-- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are subscribed to the Google Groups "Django

Re: TestCase Client.login() fails

2012-03-28 Thread Reinout van Rees
veral mistakes with them already :-) Look at [1] for an example error. Reinout [1]: http://reinout.vanrees.org/weblog/2011/11/18/django_unicodedecodeerror.html -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ &

Re: TestCase Client.login() fails

2012-03-28 Thread Reinout van Rees
s and returns a User. You're right, I was wrong :-) I overlooked that create_user is a special call and thought it was just a generic create statement. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.

Re: Django Book

2012-04-21 Thread Reinout van Rees
ok.html Most available books are quite old, so I'm doing my best to get this one out so that there's a current book. I'm targetting Django 1.4 so that's pretty current :-) Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org

Re: Loading static files from a dev environment

2012-04-29 Thread Reinout van Rees
iour for development. The directory that collectstatic fills is just for your production environment where you've got a proper webserver to serve that directory. So... it is by design :-) Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org

Re: buildout development vs. deployment

2012-04-29 Thread Reinout van Rees
ything *within* your project directory, nothing beats the functionality of buildout. And it combines fine with tools like fabric that can handle everything outside of the project directory. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org

Re: Unable to get result using distance query

2012-04-29 Thread Reinout van Rees
hat treats points differently? Wild guesses... Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message be

Re: outdated django book

2012-04-29 Thread Reinout van Rees
the following link: http://www.caktusgroup.com/blog/2011/12/29/class-based-views-django-13/ You need to decorate the dispatch() method in the class-based-view case. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ &q

Re: @login_required do nothing

2012-04-29 Thread Reinout van Rees
django-13/ Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are subscribed to the Google Group

Re: buildout development vs. deployment

2012-04-30 Thread Reinout van Rees
. That way you can also reuse them and be sure that everything you need is included. The core point is that setup.py's are "recursive" where buildouts are not. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org h

Re: How to get caller function from a function

2012-05-04 Thread Reinout van Rees
helper function, not returning its results. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message bec

Re: template logic vs AJAX newbie seeks advice

2012-05-04 Thread Reinout van Rees
inout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are subscribed to the Google Groups "Djan

Re: template logic vs AJAX newbie seeks advice

2012-05-05 Thread Reinout van Rees
them together too much. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are subscribed t

Re: template logic vs AJAX newbie seeks advice

2012-05-05 Thread Reinout van Rees
no problem: take a look. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are subscr

Re: How to serve staticfiles with full URL for local development?

2012-05-05 Thread Reinout van Rees
ticfiles.urls.staticfiles_urlpatterns applies. You have to add that to your urls.py. But normally, you don't have to. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure wha

Re: How to serve staticfiles with full URL for local development?

2012-05-14 Thread Reinout van Rees
ne of my messages something about "needing a full path name '/tmp/' for saved pages". What did you mean by that? Such a full path is different from a proper localhost:8000 url. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@van

Re: JSONField: which app to choose ?

2012-07-10 Thread Reinout van Rees
t.org/schinckel/django-jsonfield/ on bitbucket. I looked at it with a colleague and it seemed to have a bit more validation than some others. Little things. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ &quo

Re: Release considerations

2012-07-10 Thread Reinout van Rees
r. Make sure you've got example configurations on how to integrate it with a webserver (apache/nginx). Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, m

Re: get_or_create gave IntegrityError: (1062, "Duplicate entry) error sometimes

2012-10-15 Thread Reinout van Rees
entry. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this message because you are subscribed to the Google G

Re: problem with a grph image in template

2011-08-18 Thread Reinout van Rees
;disk full" to "python syntax error". Perhaps there's a difference that your first example is a POST to that image? And means a GET request? by putting in the template a simple tag in the template That src attribute again doesn't seem to match your original url.

Re: 'dict' object has no attribute 'META'

2011-08-18 Thread Reinout van Rees
Apparently the request is now a 'dict' object instead of a real django request object. Do you have some middleware or so that does something to the request? Does your view modify the request, inadvertently modifying it into a dict? Just brainstorming about possible ca

Re: Anyone use mod_security with Django?

2011-08-18 Thread Reinout van Rees
need to gain knowledge on what mod_security actually does and how to configure it. Personally, I've never heard of anyone using it for Django and I'd be surprised if it is needed. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org

Re: Anyone use mod_security with Django?

2011-08-18 Thread Reinout van Rees
s secure even though Django protects against that just fine ;-) Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You received this me

Re: problem with a graph image in template

2011-08-19 Thread Reinout van Rees
you can normally directly see the 500 error text. Seeing the traceback ought to show you the problem. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make som

Re: Django admin site and DEBUG flag.

2011-08-19 Thread Reinout van Rees
DEBUG:" around where the admin site is mounted in your urls. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- You rece

Re: Django admin site and DEBUG flag.

2011-08-19 Thread Reinout van Rees
roups/* *did* work? Which ones don't? If it is for instance /admin/issues/*, look at that issues app and see if there's an 'if settings.DEBUG' somewhere in there. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org http://www.n

Re: Django 1.3 logging not working as I'd expect

2011-08-22 Thread Reinout van Rees
efore the logging is actually configured. Just as a simple test, put such a logging statement inside one of your view methods and hit it in your browser. Just to make sure your logging setup as such works. Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@

Re: why can't I access a dictionary with an initial form field value from my django template?

2011-08-23 Thread Reinout van Rees
tems and then apply that to the first item. That's the basic problem. Best solution probably: just do the MYDICT[myform.somefield.value] in your view and pass the value to the template? Reinout -- Reinout van Reeshttp://reinout.vanrees.org/ rein...@vanrees.org

  1   2   >