On Fri, 2012-06-01 at 10:58 -0700, Houmie wrote:
> I would really appreciate it if somebody could help me with this.
> Working on this since this morning and am totally stuck..
>
>
could you try with revision 17860 and see if it works. I have the same
problem, and am stuck with 17860 - unfortuna
On Jun 1, 2:58 pm, Jani Tiainen wrote:
> 1.6.2012 10:43, rahajiyev kirjoitti:
>
>
>
>
>
>
>
>
>
> > Hello. The user connecting to Oracle is an ordinary user and needs to
> > prefix all tables with the schema name.
> > I've tried crafting Meta.db_table like so:
> >http://cd-docdb.fnal.gov/cgi-bin
I've got two models with one having a many-to-many relationship with the
other:
class A(models.Model):
name = models.CharField("name")
class B(models.Model):
haveone = models.ManyToManyField(A)
What is the idiom for getting all instances of A which are referenced in
B? I found this works:
If the error is "list indices must be integers, not str" then I
imagine you are trying to access a list using a String rather than
Integers :)
We'd have to see your View and probably the related model you're using
the "key_uniquekey" value on to help you out a bit more.
On 6/1/12, Nikolas Stevens
By the way, this User Group stays pretty active so you should get some
pretty good feedback within 24 hours if you run into any problems
while trying to put your site on whatever host you decide to go with.
Another great resource is IRC (Freenode server, #django is the
channel) if you want more imm
Hey,
Welcome to Django!
While you could, possibly, manage to upload your project and get it
running -- it would be well worth the effort to learn the basics of
using a Linux command-line. You don't have to edit your files in the
command line but it'll make things a lot easier when trying to deplo
Hi evryone!
I have a 'not-yet-done-website' with Django and Py. The website is
just for practice. I really don't have any idea about Python, because
im only a web designer. My web dev really don't have the idea on how
to upload them on FTP. Never bought a hosting yet, but im planning to
buy at web
On Sat, Jun 2, 2012 at 2:59 AM, Andre Terra wrote:
> "AFAIK" implies "I might be wrong", but.. sure.
>
> Template Debugging threads in django-developers:
> https://groups.google.com/forum/?fromgroups#!searchin/django-developers/template$20debugging
>
> Efforts in better template debugging, none in
\w matches alphanumeric characters, so that expression should work. What
exactly is the error?
_Nik
On 6/1/2012 6:55 PM, Min Hong Tan wrote:
> Hi all,
>
> My error msg when i trying to pass character instead of decimal value
> through the
> URL pattern
>
> URL Link:
>
>
> /project1/program1_ad
Hi all,
My error msg when i trying to pass character instead of decimal value
through the
URL pattern
URL Link:
/project1/program1_add/DUM014749/
URLS.py
url(r'^program1_add/(?P\w{1,13})/$',
'view.program_common_add''),
Is there any way to pass character instead of value?
Regards,
MH
--
On 06/01/12 09:17, Subhranath Chunder wrote:
> (Given the fact that the server is deployed in Amazon EC2
> Singapore location, as m1.xlarge with all it's network, memory
> constrains in place)
A couple of the other aspects that occurred to me:
Is there geographical separation between your Django/
It's a typical question->answer->customer scenario, a question has many answers
(and just one of them may be correct), and many customers have many different
answers. I'd do:
Customer <-(many to many)-> Answer
Question -(has many)-> Answer
Your last error means than you are not naming correct
I have a problem is that when calling the form views to pass to the
template, only one of the two fields containing the widget calendar
administrator, appears to start_date, end_date not to appear, if I
remove start_date, appears to end_date, any idea what's going on?
forms.py
Guys,
I have created a new simple test project to demonstrate the problem.
It is a very simple project and you can switch between German & English at
main page. You see the selected Language code actually changes, which is a
good sign but the translation simply doesn't happen. I wonder if t
I have a Dojo drag-and-drop and hope to store the dropped items and their
information in a Django session. Using the example below, how do I pass
"detail" in this code to a view so that the dropped info can be stored in a
session?
Thank you!
var source1 = new dojo.dnd.Source("itemList
I am not a Windows developer--but I was recently asked to port a very small
Django app (so it could be run locally using the dev server) on Windows.
The app was developed using Django 1.4, but the ActiveState Package Manager
(pypm) installs Django 1.3. Rather than rewriting some of the code, I'
Hi Ivan,
Thank you for your help.
I have already lazy translation implemented for the forms like this:
from django.utils.translation import ugettext_lazy as _
class FriendInviteForm(forms.Form):
name = forms.CharField(label=_("Friend's Name"))
email = forms.EmailField(label= _("Friend's
On Fri, Jun 1, 2012 at 8:58 PM, Bill Freeman wrote:
> This isn't quite OneToOne since the ends of the relation need not both
> exist.
An answer cannot exist without the question
The following question cannot exist without the previous answer,
but there is the case where the object Question is t
Position 1: Sr Software Engineer
Location :San Jose ,CA
Contract : 6-12 Months Contract
Primary Job
Responsibilities:
We are looking for exceptional senior software engineers that have a
strong command of web application programming in a Linux environment.
They would be working within a small en
Hi guys. This model error is driving me up the wall. All of my debug
attempts thus far have been fruitless.
I've got a model error that appears whenever I use `manage.py shell`,
but not when my code is running in production-- which is making
debugging very difficult. Here is the traceback and mode
Besides changing the language per request as you've been indicated in
SO you might want to look at lazy translations:
https://docs.djangoproject.com/en/dev/topics/i18n/translation/#lazy-translation
Regards,
Iván
On Fri, Jun 1, 2012 at 2:58 PM, Houmie wrote:
> Hey everyone,
>
> I would really
"AFAIK" implies "I might be wrong", but.. sure.
Template Debugging threads in django-developers:
https://groups.google.com/forum/?fromgroups#!searchin/django-developers/template$20debugging
Efforts in better template debugging, none included in core:
https://github.com/codysoyland/django-templat
It doesn't sound to me as though the OP wants OneToOne relation.
That's not to say that I know what he wants, but I'm going to guess:
A question can get one, and only one, NEW answer attached to it, but
the question can exist before there is such an answer (be unanswered).
An answer can get one,
class Question(models.Model):
title = models.CharField(max_length = 50)
response = models.CharField(max_length = 400)
parent = models.OneToOne('self', related_name='child', null=True)
def __unicode__(self):
return self.title
class Answer(models.Model):
question = models.OneT
I've been trying to use brabeion as well, but I can't even get it to work
without giving me a KeyError and the event that fired. Not really sure how
to fix it, the error crops up in line 29 of internals.py
As far as adding icons to it, though I think the concept of brabeion
overall is superior,
Hey everyone,
I would really appreciate it if somebody could help me with this.
Working on this since this morning and am totally stuck..
I have posted it with proper formatting on stack overflow.
http://stackoverflow.com/questions/10854330/internationalization-in-django-doesnt-get-activated
Th
Maybe you could just build a simple index? It'd basically be a set of
keywords, each with a set of matching books.
So in your example, you'd have two keywords:
hola (with accent) -> book1, book2, etc..
hola (without accent) -> (same as previous)
And then just write some sort of functionality to r
When I use 'Question' as a string i get the following error "Error:
One or more models did not validate:
users.answer: Reverse query name for m2m field 'customer_response'
clashes with m2m field 'Question.answer'. Add a related_name argument
to the definition for 'customer_response'.
Think of it
I need to do a simple search ignoring some characters with accents. The
idea would be that "hola" matches the search term "holá".
What I'm currently doing is adding a CharField to my model to store the
searchable term. For example:
class Book(models.Model):
title = models.CharField(max_length
In the actual code, I'm taking input from 3rd party code which could be
None :(
I think the best option is to override clean_fields* *to check for
non-nullable fields that are null.
*
*
*
*
On 1 June 2012 17:26, Alasdair Nicol wrote:
> On 01/06/12 14:47, David Markey wrote:
>
> Hi All,
>
> S
you can use 'Question' as String (lazy reference)
ManyToMany('Question')
but I don't really undestand your relations
On Fri, Jun 1, 2012 at 6:42 PM, Kevin Anthony wrote:
> Define it in one and back reference it in the other
>
> Kevin
> Please excuse brevity, sent from phone
> On Jun 1, 2012 12:
Define it in one and back reference it in the other
Kevin
Please excuse brevity, sent from phone
On Jun 1, 2012 12:38 PM, "Jak" wrote:
> The problem that I'm having is that the model "Question" is not
> defined since I am referencing it after I use it in the Answer
> model.
>
>
> Thanks
>
>
The problem that I'm having is that the model "Question" is not
defined since I am referencing it after I use it in the Answer
model.
Thanks
Jak
On Jun 1, 12:08 pm, Javier Guerra Giraldez wrote:
> On Fri, Jun 1, 2012 at 10:42 AM, Jak wrote:
> > Each answer has
> > a question, and each que
On 01/06/12 14:47, David Markey wrote:
Hi All,
Say I have this model
class TestModel(models.Model):
my_test = models.CharField(max_length=512, blank=True)
And I try this:
In [1]: from core.base.models import TestModel
In [2]: test_model = TestModel()
In [3]: test_model.my_test =*""*
In
On Fri, Jun 1, 2012 at 10:42 AM, Jak wrote:
> Each answer has
> a question, and each question has an answer
use OneToOneField relationships
(https://docs.djangoproject.com/en/1.4/ref/models/fields/#onetoonefield)
--
Javier
--
You received this message because you are subscribed to the Google
Thank you for your effort, as far as I can see you understood my problem
right and your solution could work... if there wouldn't be that error:
TypeError at /kalender/1/new_termin/
super(type, obj): obj must be an instance or subtype of type
Termin is a model class, NewTerminForm is a modelfor
Hmm..
In my opinion, Model.full_clean() should catch this particular error.
On 1 June 2012 16:17, Kurtis Mullins wrote:
> It looks like the CharField is accepting 'none' in its to_python method.
> That might explain why we don't get the error until your to save it. I'm
> sure there is a rea
Hi all,
I am trying to create two django models that reference each other. 1
model is a question and the other model is an answer. Each answer has
a question, and each question has an answer. I cant seem to get it to
work without error. Below is the code.
from django.db import models
cl
It looks like the CharField is accepting 'none' in its to_python method.
That might explain why we don't get the error until your to save it. I'm
sure there is a reason behind this -- I just don't know what it is :)
Source: django/db/models/fields/__init__.py
On Fri, Jun 1, 2012 at 11:08 AM, Kurti
Yeah, I'm getting exactly the same results. It seems that it's not throwing
the IntegrityError until you try to save it. I suppose that's because it's
marked as 'not null' in the database. It appears to be ignoring it in the
actual clean() (and consequently clean_fields()) methods. I'm going to loo
On Fri, Jun 1, 2012 at 8:20 PM, Kurtis Mullins wrote:
> To me, the biggest bottleneck in a "Django Application Installation" (not
> application) is not going to be Django at all. It's going to be I/O --
> typically to the database and/or file system.
Yup.
> Another large part are the templates
1.4
On 1 June 2012 15:54, Kurtis Mullins wrote:
> What version of Django are you using?
>
>
> On Fri, Jun 1, 2012 at 10:47 AM, David Markey wrote:
>
>> That is my exact class for that model.
>>
>>
>> On 1 June 2012 15:27, Kurtis Mullins wrote:
>>
>>> From the docs:
>>> https://docs.djangoproje
What version of Django are you using?
On Fri, Jun 1, 2012 at 10:47 AM, David Markey wrote:
> That is my exact class for that model.
>
>
> On 1 June 2012 15:27, Kurtis Mullins wrote:
>
>> From the docs:
>> https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#django.db.models.
To me, the biggest bottleneck in a "Django Application Installation" (not
application) is not going to be Django at all. It's going to be I/O --
typically to the database and/or file system. These are used heavily (from
my personal experience) by all sorts of django functions. As for the
database -
That is my exact class for that model.
On 1 June 2012 15:27, Kurtis Mullins wrote:
> From the docs:
> https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#django.db.models.Model.full_clean
>
> from django.core.exceptions import ValidationError, NON_FIELD_ERRORStry:
> arti
You can configure a basePath through flashvars as you said, but you don't
have to make django serve the index.html to set that dynamically. You can
put it by hand, allowing you to deploy on different servers in a decoupled
manner.
Maybe I'm missing something here but I don't see anything wrong
Yup. the application performance has been kept in mind from the ground
work. Zero or one query, with extensive use of cache is what we try to
achieve at the app level.
Just to keep the thread a bit more focused on it's purpose, I would like to
remind ourselves that, the discussion is on "Scaling d
Check out django-cache-machine. It uses memcache to cache your ORM qureies
and updates (invalidates) that cache when they change.
On Fri, Jun 1, 2012 at 10:35 AM, Tim Chase
wrote:
> On 06/01/12 09:17, Subhranath Chunder wrote:
> > On Fri, Jun 1, 2012 at 6:57 PM, Tim Chase <
> django.us...@tim.the
Check out django-storages (if you use off-site hosting like S3, Rackspace
Files, etc...). Then, just request the ImageField or FileField's .url()
method.
I think this may be the case for the bulit-in ImageField and FileField as
well (actually, I'm pretty sure it is) but I haven't used it in so lon
On 06/01/12 09:17, Subhranath Chunder wrote:
> On Fri, Jun 1, 2012 at 6:57 PM, Tim Chase
> wrote:
>> 2) I/O
>> 2a) disk
>> 2b) network
>> 2c) memory
>>
> Don't think these might be creating much bottleneck in my scenario. But
> still, nothing like getting to exact figures. Again, how would you mea
>From the docs:
https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#django.db.models.Model.full_clean
from django.core.exceptions import ValidationError, NON_FIELD_ERRORStry:
article.full_clean()except ValidationError as e:
non_field_errors = e.message_dict[NON_FIELD_E
The Form just validates that the object you choose is a valid choice for
that M2M field. If you wanted to created a new one on the fly, you'd
probably want to use another Form and maybe go the Javascript way.
You could *possibly* get by, in the same form, with doing something like
this:
class MyF
On Fri, Jun 1, 2012 at 6:57 PM, Tim Chase wrote:
> On 06/01/12 03:56, Subhranath Chunder wrote:
> > With that in mind, how should we measure response complexity?
> > Any particular parameter, scale? Probably I can measure against
> > that, and share the numbers to shed more light on how many
> > r
On Fri, Jun 1, 2012 at 3:56 AM, Subhranath Chunder wrote:
> how should we measure response complexity?
a simple first approximation is the number of DB queries per page.
the debug toolbar nicely gives that figure while developing.
--
Javier
--
You received this message because you are subscr
Hi All,
Say I have this model
class TestModel(models.Model):
my_test = models.CharField(max_length=512, blank=True)
And I try this:
In [1]: from core.base.models import TestModel
In [2]: test_model = TestModel()
In [3]: test_model.my_test =* ""*
In [4]: test_model.full_clean()
In [5]: t
On Jun 1, 10:47 am, cmac0tt wrote:
> Learning Django/Python by converting a warped >0.96 project to a 1.4
> project with python 2.7.3
>
> So this is my github to make it easier. Can anyone tell me what it is
> thats causing me to keep chasing errors around?
Just a suggestion : "failure to follow
cute
On Fri, Jun 1, 2012 at 4:29 PM, Tim Chase wrote:
> On 06/01/12 05:16, Jani Tiainen wrote:
> > Since summer seems to arrived (I just saw young elk running at the back
> > yard of our office). I decided to type in magical words "pink pony" in
> > youtube search.
> >
> >
> > Here is what I foun
On 06/01/12 05:16, Jani Tiainen wrote:
> Since summer seems to arrived (I just saw young elk running at the back
> yard of our office). I decided to type in magical words "pink pony" in
> youtube search.
>
>
> Here is what I found. Enjoy!
>
> http://www.youtube.com/watch?v=vY14EGd71FY
There a
On 1/06/2012 8:21, Jani Tiainen wrote:
> 1.6.2012 9:16, Derek kirjoitti:
>> And the Zen of Python?
>>
>> "Flat is better than nested"
>
> But don't forget, again Zen of Python:
>
> "Namespaces are one honking great idea -- let's do more of those!"
>
Hehe, I always imagined how programmers fight
On 06/01/12 03:56, Subhranath Chunder wrote:
> With that in mind, how should we measure response complexity?
> Any particular parameter, scale? Probably I can measure against
> that, and share the numbers to shed more light on how many
> requests can be handled in with a particular hardware config.
On Thursday, 31 May 2012 05:37:41 UTC+1, Stanley Lee wrote:
>
> Am I supposed to see a 404 message upon completing this section of the
> tutorial? https://docs.djangoproject.com/en/1.4/intro/tutorial03/
>
> Sorry for the brevity as I'm trying to make the question concise.
> Thanks in advance!
Learning Django/Python by converting a warped >0.96 project to a 1.4
project with python 2.7.3
So this is my github to make it easier. Can anyone tell me what it is
thats causing me to keep chasing errors around? I fix one to find
another, then another, then another. I'm curious if i'm on the righ
Hi,
Since summer seems to arrived (I just saw young elk running at the back
yard of our office). I decided to type in magical words "pink pony" in
youtube search.
Here is what I found. Enjoy!
http://www.youtube.com/watch?v=vY14EGd71FY
--
Jani Tiainen
- Well planned is half done and a half
1.6.2012 10:43, rahajiyev kirjoitti:
Hello. The user connecting to Oracle is an ordinary user and needs to
prefix all tables with the schema name.
I've tried crafting Meta.db_table like so:
http://cd-docdb.fnal.gov/cgi-bin/RetrieveFile?docid=3156&version=1&filename=DjangoOracle.html
But I get er
On Fri, Jun 1, 2012 at 1:39 AM, Doug Ballance wrote:
> I don't think anyone will be able to give you a good evaluation
> without knowing more about the requests. Django itself could probably
> handle 10k requests per second returning a simple "hello world"
> response, or less than 10 if you are
Need to develop a project for file uploading and generating
its(files's) URL, which could be shared. Are there any particular
libraries or simple means in Python,(Django) that would be handy and
efficient.? ~ Newbie trying a Herculean Task~ Thanks in Advance :)
--
You received this message becaus
Hello. The user connecting to Oracle is an ordinary user and needs to
prefix all tables with the schema name.
I've tried crafting Meta.db_table like so:
http://cd-docdb.fnal.gov/cgi-bin/RetrieveFile?docid=3156&version=1&filename=DjangoOracle.html
But I get error
DatabaseError at /
schema "foo" d
67 matches
Mail list logo