1
vote
2answers
11 views
Missing cleaned_data in forms (django)
I would like to create a form and the validation_forms that would check if some text apears in a box if another box has been checked correctly,
class Contact_form(forms.Form):
def __init__(self):
...
0
votes
1answer
8 views
django/mod_wsgi unable to import module (which is in a directory on the python path)
I am running django with mod_wsgi/apache and receive this ImportError:
Request Method: GET
Django Version: 1.2.5
Exception Type: ImportError
Exception Value:
No module named ...
0
votes
0answers
11 views
How to perform a datamigration when moving from one-to-one to one-to-many
I'm using south to manage migrations and I've hit a corner. Basically I have the following setup:
App1:
class A(models.Model):
# bunch of attributes
App2:
class B(models.Models):
instance_a = ...
0
votes
0answers
6 views
TransportException 404 Error Not Found in Refreshbooks (Freshbboks Helper Library)
I am trying to make the following Freshbook API call using python helper library RefreshBooks but i get the TransportException 404 Error Not Found when i try to get the reponse variable mentioned ...
1
vote
2answers
26 views
Python logging and Japanese (or any non-ascii)
After localisation of one legacy Django project (based on Django 1.1) to Japanese, some logs (not all of them) are outputting something like this, when locale is Japanese:
Traceback (most recent call ...
3
votes
4answers
85 views
Is “continue” the Pythonic way to escape from a try catch block?
I am new to django and thought of doing to simple django application to learn more about it, In one of the places in code I had to pick locationName and getting elements that matched same id as ...
2
votes
2answers
26 views
Django Model: field value is calculation of other fileds
class PO(models.Model)
qty = models.IntegerField(null=True)
cost = models.IntegerField(null=True)
total = qty * cost
Guys, how will i solve about total = qty * cost above. I know it will ...
0
votes
2answers
28 views
Django model field by variable
Quick question. I'm trying yo access one of the fields of a model using a variable.
class ExampleModel(models.Model):
the_field = models.CharField()
the_field_two = models.CharField()
...
0
votes
1answer
31 views
Control flow in Django template language
I have the following code, written inside a Django template.
{% if user.is_authenticated %}
<div style="float: right;">
{% for rel in RELATIONS %}
{% if rel.group_id == g.id %}
...
1
vote
2answers
30 views
What's alternative choice for background worker, async defered task queue in django/wsgi besides celery?
Are there any pure wsgi implementation of background task?
I want to use local variables under the same context directly, not serialize/deserialize to another daemon process via a broker.
Is it ...
0
votes
1answer
20 views
Django Manytomany Field for Users on facebook friend id save error
I have a facebook friend table for all users, and want to have a manytomany field for User, but have run into problem on saving the data.
Here is my code:
My Model:
class ...
0
votes
2answers
21 views
Google App Engine + Google Cloud Storage + Sqlite3 + Django/Python
since it is not possible to access mysql remotely on GAE, without the google cloud sql,
could I put a sqlite3 file on google cloud storage and access it through the GAE with ...
0
votes
1answer
13 views
Model instance retrieved from signal does not work as expected
Here is code from my models.py
#Models.py
....
class Question(models.Model):
text = models.TextField(unique=True)
exam = models.ForeignKey(Exam)
level = models.ForeignKey(Level)
paper ...
0
votes
1answer
34 views
Creating fields on the fly in django
I have two tables (say Parent and Child). I want parent and Child to link to each other using a foreign key. The child table has two fields, one among them being 'country_sig'. This country_sig is ...
1
vote
2answers
76 views
Google App Engine - Choosing the right direction
I started web development 2 weeks ago using GAE,WebApp2,Jinja2 and WTForms.
I read though several articles , discussions , watched lessons about web development with gae (udacity) and started a small ...