How to edit django_openid_auth login template

2013-04-26 Thread surya
I am using https://launchpad.net/django-openid-auth for openid! this is pretty amazing to a lot of extent.. This app provides /openid/login url where users need to signin! this template is very basic and I want to make some changes in it.. Probably, I want to include this in my home page..

bitcoin payment processing

2013-04-26 Thread sebastián serrano
Hi, I'm building a bitcoin payment gateway and would like to know the interest into develop a plugin for python/django projects and if you are interested for which package (satchmo, django-shop, etc) Please fill this form only 1 field is required!

broken imports in python3.3 + django 1.5

2013-04-26 Thread danny
Howdy, In python 3.3 you no longer need __init__.py in directories to be interpreted as package namespaces. In my source I have the following tree src /apps /index /mapping I removed the __init__.py files as I should be able to, but imports broke. Specifically:

Re: check genre and insert

2013-04-26 Thread Andrew Boltachev
Hi. May be you need if not line["IdGenre"] in genres: instead? On Friday, April 26, 2013 9:04:42 PM UTC+4, Hélio Miranda wrote: > > I am having a problem which is as follows: > I have to insert a csv file of movies in bd, but I can not enter the name > of the genre of the film directly. I

check genre and insert

2013-04-26 Thread Hélio Miranda
I am having a problem which is as follows: I have to insert a csv file of movies in bd, but I can not enter the name of the genre of the film directly. I have to insert the id of the genre. So I'm trying to pick the genres to a dictionary, and then verify that the genre exists, if yes, get the

Re: Template Caching with Messages

2013-04-26 Thread Venkatraman S
I find testing in dev server(runserver) using a filebased cache is the easiest and quickest way to test. One can delete the files and check if and when new entries are created in the folder. -V On Fri, Apr 26, 2013 at 6:58 PM, Chris Lawlor wrote: > V, > > You're exactly

Re: [django_tables2] Expected table or queryset, not 'str'.

2013-04-26 Thread Binith Babu
I am sorry I coud not find a solution in this thread Did you mean I am using an older version of django tables2 ? In that case I am not, I am using the latest version installed with pip. May be its my mistake, I am still trying to figure whether I am doing something wrong. WIll post back if I

Re: Upload data in csv file to bd

2013-04-26 Thread Hélio Miranda
But when I do this: Código (Python): for obj in gen: genres [obj.GenreType] = obj.id print genres [obj.GenreType] Prints the id of the genre, so it is wrong right? Now I am not going to achieve is check if the genre that I have the csv is in the dictionary and if it gets the

I need help doing a linked lookup in admin

2013-04-26 Thread Richard E. Cooke
I used the *django-contacts *project as my starting point for a company contact database. Its really cool, it keeps "addresses", "phone numbers", etc in seperate db table so you can associate as many as you need to each company or person record. It uses *django.contrib.contenttype*s for its

Re: [django_tables2] Expected table or queryset, not 'str'.

2013-04-26 Thread Tom Evans
On Fri, Apr 26, 2013 at 2:30 PM, Binith Babu wrote: > > I got the same error today, anybody know a solution? > Apart from the solution I already posted to the list in this thread? Cheers Tom -- You received this message because you are subscribed to the Google Groups

Re: Upload data in csv file to bd

2013-04-26 Thread Tom Evans
On Fri, Apr 26, 2013 at 1:56 PM, Hélio Miranda wrote: > I am uploading a csv file with movies for bd. > Ok, I'm getting it, but my problem is that the movie has genre, but I can > not insert the genre, I have to insert the id of the genre, so I'm going to > fetch the genres to

Re: [django_tables2] Expected table or queryset, not 'str'.

2013-04-26 Thread Binith Babu
I got the same error today, anybody know a solution? On Tuesday, 9 April 2013 12:06:57 UTC-7, Tomas Pelka wrote: > > ValueError at /plyn > > Expected table or queryset, not 'str'. > > Request Method:GETRequest URL:http://127.0.0.1:8000/plynDjango > Version:1.5Exception >

Re: Template Caching with Messages

2013-04-26 Thread Chris Lawlor
V, You're exactly correct - make sure you only cache what you actually want cached : ) Anything that should only be visible for one page view isn't a good candidate for caching. If your page has any sort of content that is specific to the current user - login state, etc., you probably don't

Re: django development server timeout too quick

2013-04-26 Thread Chris Lawlor
Hadi, What is your SESSION_COOKIE_AGE set to? This setting controls session expiry. The default is 2 weeks. If you are not setting SESSION_COOKIE_AGE, check that your code is not calling request.session.set_expiry() anywhere. For light use, the default session backend (db) should meet your

Re: Calling Jquery or javascript function based on an if condition

2013-04-26 Thread Chris Lawlor
A slight variation of this approach is to map some Django template context info to Javascript variables in one of your templates, making that data accessible to your compressed / minified JS code: # in a template, "base.html" perhaps.. window.DjangoContext = { userLoggedIn: {{

Upload data in csv file to bd

2013-04-26 Thread Hélio Miranda
I am uploading a csv file with movies for bd. Ok, I'm getting it, but my problem is that the movie has genre, but I can not insert the genre, I have to insert the id of the genre, so I'm going to fetch the genres to put a dictionary, GenreType = id. When I want to see the insert there the

Re: How can I completely remove Django and reinstall it - I've broken something

2013-04-26 Thread ashwoods
run pip uninstall several times just in case :) then reinstall django. take a look at virtualenv. lets you make isolated python environments. makes life a lot easier: https://jamiecurle.co.uk/blog/installing-pip-virtualenv-and-virtualenvwrapper-on-os-x/ On Friday, April 26, 2013 2:00:28 AM