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 U
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 genre,
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: {{ user.is_authen
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 need
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 wan
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
> Type:ValueErrorException
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 put a dictionary, Ge
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
"Django users" group.
To
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
r
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 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 fin
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 correct - make sure you o
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 i
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 hav
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:
/opt/python3.3.1/lib/p
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!
https://docs.google.com/forms/d/1UftZRMI4U
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..
I
17 matches
Mail list logo