Re: Looking for a job in the Arctic Circle

2011-09-30 Thread Kevin Renskers
Thanks for the suggestion, but the US is not really an option, social- and economic security wise and also the distance back to the Netherlands. I'd like to be able to afford a flight back to friends and family more then once or twice a year :) Pretty much the same goes for Chile or Argentina.

Re: Looking for a job in the Arctic Circle

2011-09-30 Thread Kevin Renskers
I don't think many people will ever understand why I'd want to move to the Arctic region. But, I really don't understand how many people would like to live in Spain, France or Italy. Me, I like long, cold winters with lots of snow. I don't like hot summers. I'm just weird I guess :) Reykjavik

Re: Looking for a job in the Arctic Circle

2011-09-30 Thread Kevin Renskers
erland. > > Hope this helps. > > Cal > > On Fri, Sep 30, 2011 at 1:47 PM, Kevin Renskers <in...@bolhoed.net> wrote: > >> CCP actually wanted me for their UI Programmer position. Did the first >> round of interviews, made a usability report for them, all was well. And

Re: Looking for a job in the Arctic Circle

2011-09-30 Thread Kevin Renskers
Awesome, thanks! On Friday, September 30, 2011 2:44:45 PM UTC+2, Sumod wrote: > > http://www.arcticstartup.com/ > > > > On Fri, Sep 30, 2011 at 6:09 PM, Kevin Renskers <in...@bolhoed.net> wrote: > >> Ha, yeah I know that Iceland is not in the Arctic Circl

Re: Looking for a job in the Arctic Circle

2011-09-30 Thread Kevin Renskers
CCP actually wanted me for their UI Programmer position. Did the first round of interviews, made a usability report for them, all was well. And then they decided that they don't really need a UI Programmer after all :( Their other positions are not really a great match for me, sadly. Too much

Re: Looking for a job in the Arctic Circle

2011-09-30 Thread Kevin Renskers
Ha, yeah I know that Iceland is not in the Arctic Circle, strictly speaking. Maybe I should've said the Arctic Circle region. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Looking for a job in the Arctic Circle

2011-09-30 Thread Kevin Renskers
Hi all, I am a Senior Python/Django programmer from The Netherlands, and I am on a quest to move to the Arctic Circle. Right now my focus is on Reykjavik in Iceland and Tromsø in Norway. It's quite hard to find jobs in these regions, and it's even harder because I don't have a network of

Re: Form wizard

2011-06-22 Thread Kevin Renskers
The documentation on https://docs.djangoproject.com/en/1.3/ref/contrib/formtools/form-wizard/ is pretty clear. The part where you're going in the wrong direction is the url config. Compare with

Re: Django EmailMultiAlternatives with Embadded Image in HTML

2011-06-22 Thread Kevin Renskers
If I google on "django html email inline image" I see multiple solutions. None of them worked? Seems unlikely to me... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Is multiple inheritance with abstract model classes ok?

2011-06-22 Thread Kevin Renskers
Perfectly fine! -- 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/-/6Vp_0w_sz_cJ. To post to this group, send email to django-users@googlegroups.com. To

Re: WMD-editor: Where's wmd/urls.py?

2011-06-22 Thread Kevin Renskers
I think it's an error in the documentation. Since there are no views, it's probable that there are no urls as well. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: set language from user lang in DB?

2011-06-22 Thread Kevin Renskers
from django.utils import translation translation.activate(language_code) See also http://stackoverflow.com/questions/2336785/set-language-within-a-django-view -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: how to display form data with original values after validation failure?

2011-06-22 Thread Kevin Renskers
If I understand this correctly, then you want something like this? 1) Show a form to edit something 2) User changes fields, submits the form 3) If the form was not valid, not only show the errors and the form with the entered values, but also the *old* values, pre-edit. I think your best bet is

Re: updating a user form?

2011-06-22 Thread Kevin Renskers
I'd advise you to read https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users. So, create a separate model for the profile, which can be edited by the user once he is logged in. -- You received this message because you are subscribed to the Google

Re: csrf token driving me crazy

2011-06-22 Thread Kevin Renskers
The documentation about CSRF and AJAX was already linked: https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax The note about backwards incompatibility can be found here: https://docs.djangoproject.com/en/1.3/releases/1.3/#csrf-validation-now-applies-to-ajax-requests -- You received

Re: Generic views v.s. shortcuts

2011-03-23 Thread Kevin Renskers
Hi Andre, Well, it would be much easier if get_context_data only needs to return a dictionary. Guess I'll build my own class for that :) But apart from that, my real question is why there are generic views *and* shortcut functions. Which is recommended in which case? Cheers, Kevin -- You

Generic views v.s. shortcuts

2011-03-23 Thread Kevin Renskers
Hi, I am wondering why Django 1.3 has both class-based generic views (like TemplateView and RedirectView) and shortcuts like django.shortcut.render and django.shortcut.redirect. What is the recommended way to write your views? Is a call to render() from within your own view function better

Re: Input welcome for comments app idea

2010-11-13 Thread Kevin Renskers
admin site where they show the number of comments per blog entry. If people are interested in this project, feel free to clone the project, send me a message, etc. Cheers, Kevin On Nov 12, 12:14 pm, Kevin Renskers <i...@bolhoed.net> wrote: > Hi, > > My new Django website is as g

Input welcome for comments app idea

2010-11-12 Thread Kevin Renskers
Hi, My new Django website is as good as finished, I only have to work on the comments section. I know about the comments app that ships with Django, but I don't really like it that much. I see three options for comments on my website: 1) Use something like django-threadedcomments 2) Use Disqus

Re: Raw sql bug? Or am I doing something wrong?

2010-06-01 Thread Kevin Renskers
Update: weirdly enough, this does work: for r in Model.objects.raw('SELECT model.* FROM model INNER JOIN othermodel ON othermodel.model_id = model.id'): print r But model.id does not. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Raw sql bug? Or am I doing something wrong?

2010-06-01 Thread Kevin Renskers
Hi, I love the new raw() function to write custom sql and get back ORM objects. However, when using joins, things get weird. As long as you use "select *", everything works fine: for r in Model.objects.raw('SELECT * FROM model INNER JOIN othermodel ON othermodel.model_id = model.id'): print

Re: How to use CommaSeperatedIntegerList with CheckboxSelectMultiple

2010-04-27 Thread Kevin Renskers
Works like a charm, thanks! > The issue with the custom field is that it does not implement a > 'validate' func > > I believe all I did to get it working was add: > >     def validate(self, value, model_instance): >         return -- You received this message because you are subscribed to the

Re: How to use CommaSeperatedIntegerList with CheckboxSelectMultiple

2010-04-26 Thread Kevin Renskers
I also used the multiple select field found on http://www.djangosnippets.org/snippets/1200/ with success, until I updated Django to the 1.2 beta release. It now longer works, always giving the validation error. I have no clue how to fix this, so I was hoping you found the answer to your problem

Re: Primary key in queryset even when using only()

2010-03-22 Thread Kevin Renskers
Thank you very much, this works perfectly! On Mar 22, 12:01 pm, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On 22 mar, 11:08, Kevin Renskers <i...@bolhoed.net> wrote: > > > Hi, > > > I am using a combination of the only() and distinct() functions

Primary key in queryset even when using only()

2010-03-22 Thread Kevin Renskers
, that's impossible with the ORM... I am not using an ORDER BY, so that should not be the reason the primary key is included. Thanks, Kevin Renskers -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Changing template variables

2010-03-05 Thread Kevin Renskers
application. Cheers, Kevin On Mar 4, 4:33 pm, Kevin Renskers <i...@bolhoed.net> wrote: > I'll explain a bit more what precisely it is what I want to do: Django > 1.2 comes with a new messages framework that allows for each message > to have a different "level" (succes, err

Re: Changing template variables

2010-03-04 Thread Kevin Renskers
I'll explain a bit more what precisely it is what I want to do: Django 1.2 comes with a new messages framework that allows for each message to have a different "level" (succes, error, warning, etc). I want to see if a form has errors, and if so, make a message for each error so all my notices and

Re: Changing template variables

2010-03-04 Thread Kevin Renskers
r 4, 2010 at 10:06 AM, Kevin Renskers <i...@bolhoed.net> wrote: > > Hi, > > > I am wondering if it is possible to change template variables before > > they get rendered in a template. > > > For example, I use something like this in my template: > > return direc

Changing template variables

2010-03-04 Thread Kevin Renskers
Hi, I am wondering if it is possible to change template variables before they get rendered in a template. For example, I use something like this in my template: return direct_to_template(request, template='index.html', extra_context={'form':form}) I would like to extend this form variable

Re: JavaScript function call

2009-12-29 Thread Kevin Renskers
nd move forward. If I can not succeed then I will > > consider jQuery. > > > Thanks again. Appreciated. > > > On Dec 28, 2:31 am, Masklinn <maskl...@masklinn.net> wrote: > > > > On 28 déc. 2009, at 10:26, Kevin Renskers <i...@bolhoed.net> wrote: > &g

Re: JavaScript function call

2009-12-28 Thread Kevin Renskers
What you are doing is not valid html, you can't put a script tag inside a tr tag. Try something like this: showDomainTable('{{v.publisher_id}}', '{{v.country_id}}'); But even then, inline javascript is something better avoided. I would just create a function that is run as soon as

Re: Twitter API

2009-12-28 Thread Kevin Renskers
I am using http://code.google.com/p/python-twitter/ on my own Django website, works like a charm. Are you sure you are using the API correctly? api.PostUpdate(username, password, 'I love python-twitter!') By the way, updating a tweet is impossible, as Twitter doesn't support that. You can delete

Re: Problem with Meta inner class accessing its parent

2009-12-18 Thread Kevin Renskers
es Meta.ordering at clas > definition time.  You have the source code. > > Bill > > On Fri, Dec 18, 2009 at 6:07 AM, Kevin Renskers <i...@bolhoed.net> wrote: > > Hi, > > > I am having a bit of a problem. I have a model with 3 name fields, > > each for a diffe

Problem with Meta inner class accessing its parent

2009-12-18 Thread Kevin Renskers
Hi, I am having a bit of a problem. I have a model with 3 name fields, each for a different language. By creating an __unicode__ function like below, I always get the correct name for the current language. Works fine. But, I want to change the default ordering for this model, so that in each

Make the makemessages command more open

2009-12-14 Thread Kevin Renskers
erent syntax. As far as I can see there is no possible way to configure the system so it can work with different i18n syntaxes. It seems like a good idea to open this up, so different template systems can be used more easily. Would it be a good idea suggest this in a ticket? Cheers, Kevin Renske

Re: Chart tool

2009-11-29 Thread Kevin Renskers
I am using the Google Visualization API myself, it's pretty nice. I wrote a blog post with a little how to: http://www.bolhoed.net/blog/using-the-google-visualization-api-in-django/ However, I also used FusionCharts in the past and that's got my vote too :) On Nov 25, 9:07 pm, "S.Selvam"

Re: Creating dynamic models?

2009-11-26 Thread Kevin Renskers
blog about this :) Again, thank you very much. Cheers, Kevin On Nov 26, 10:14 am, Matthias Kestenholz <matthias.kestenh...@gmail.com> wrote: > On Thu, Nov 26, 2009 at 9:56 AM, Kevin Renskers <i...@bolhoed.net> wrote: > > Just a small update: the DynamicModels way as described on the

Re: Creating dynamic models?

2009-11-26 Thread Kevin Renskers
Just a small update: the DynamicModels way as described on the wiki doesn't work (it also says that it only works in Django 0.96, so yeah..). If anyone has any idea how to do this, I would be very thankful! On Nov 24, 2:35 pm, Kevin Renskers <i...@bolhoed.net> wrote: > Hi all, > &g

Re: even and odd numbers within a template

2009-11-24 Thread Kevin Renskers
{% for o in some_list %} ... {% endfor %} On Nov 24, 2:39 pm, Juan Hernandez wrote: > Hey there people... > > I've been coloring html tables using javascript for a while and now, we need > to color our tables just with html. The CSS has been made to use

Creating dynamic models?

2009-11-24 Thread Kevin Renskers
Hi all, In my Django project I want to have a model that is dynamically created. I tried using the __init__ function for this, something like so: fields = ['field_a', 'field_b', 'field_c'] class MyModel(models.Model): def __init__(self, *args, **kwargs): for field in fields: