Thanks Chris
It turned out I hadn't read the docs properly. Prior to posting the
problem I had tried ...
instance.item_pictogram_set.remove(pic)
... to be told the relatedmanager object didn't have a remove attribute
when (I thought) it should. So I adjusted the database to make both
Hey Chris
Thanks for the replybut i figured it out what was wrong.
:)
-Siddharth
On Thu, Dec 13, 2012 at 6:09 PM, Chris Cogdon wrote:
> How are you populating the choices in the ChoiceField? Remember, you need to
> do this on BOTH the POST AND the non-POST versions of creating the form.
>
> B
On Thu, Dec 13, 2012 at 1:19 PM, Michał Nowotka wrote:
> OK, then why django makes a difference between BigIntegerField (maps to
> NUMBER(19)) and IntegerField (maps to NUMBER (11)).
BigInteger was added after the others, probably by someone who did not
notice/understand why the other two were
Have you followed the tutorial exactly? I was unable to recreate this
problem when someone opened a trac ticket describing it:
https://code.djangoproject.com/ticket/18308
Another Django dev noted it was a duplicate of another ticket:
https://code.djangoproject.com/ticket/18226
where the problem
On Wed, Dec 12, 2012 at 3:36 PM, sri wrote:
> Now, when i click on the register button on the page, the form validation
> does not work.
> Let's say if i enter the username that already exists on the database, it
> is not reporting any errors. It is just displaying the form without any
> error me
I'm sorry dude. I don't have much time to troubleshoot your code. But this
should work:
$('#foo').on("change", function(){
var foo = $(this).val();
$.get('/test/'+'?foo='+foo, function(data){
$('#SomeData').val(data);
});
Hello Mario,
I am trying to test the code .. and this is what I have done .. and I am
getting this error 'instancemethod' object is unsubscriptable'.
So what I am trying to accomplish here is that .. as soon as as a user stop
typing in the input box and click anywhere outside the box it should ju
Typo on that typo! That slash should also be inside the parenthesis:
(r'^time/plus/(\d{1,2})/$', hours_ahead)
Note, though, I tend not to be so specific with URL matching... consider if
someone hacked a URL to read time/plus/999/ ... The above will cause a 404,
where letting it through to your
Hi, I'm trying to use Raven in order to send messages to my CI server.
I had some tests that pass but suddenly they are failing. Does anyone knows
why is that?
Output:
==
ERROR: test_not_individual (quests.tests.views.TaskDoTest
Totally agreed... including being the separate repositories. If I check out
the framework for use on my desktop I should _not_ be seeing the runtime
configuration (including secrets and passwords) for the production systems,
and viccyverca.
On Thursday, December 13, 2012 9:43:30 AM UTC-8, Tom E
According to the docs, oracle uses 1 byte for the magnitude, and 1 or more
bytes for significant digits.
HOWEVER, it assigns that space dynamically, so even if you say NUMBER(11),
you will still only need 2 bytes to represent the number "5". All
NUMBER(11) gives you is some range checking on in
On Thursday, December 13, 2012 10:23:52 AM UTC-8, Carsten Fuchs wrote:
>
> Our database is Oracle;
> with
> <
> https://docs.djangoproject.com/en/1.4/ref/models/querysets/#select-for-update>
>
>
> saying both "Returns a queryset that will lock rows ..." and "All
> matched entries will be loc
Hi Chris,
thank you very much for your reply!
Am 12.12.2012 22:42, schrieb Chris Cogdon:
The question is going to be very database specific. "select for update"
works by putting in row-level locks in the database. If the row does not
exist, then it won't get a lock on it, and I know of no datab
OK, then why django makes a difference between BigIntegerField (maps to
NUMBER(19)) and IntegerField (maps to NUMBER (11)).
Thinking this way BigIntegerField, IntegerField and SmallIntegerField
should all map to NUMBER(39).
--
You received this message because you are subscribed to the Google Gro
On Wed, Dec 12, 2012 at 9:32 PM, Chris Cogdon wrote:
> The BIG advantage here is that you're not checking anything into the SCM
> that must remain secret, or must change (or very likely to change) between
> installations, but all other settings are source controlled.
The big disadvantage is that
On Thu, Dec 13, 2012 at 4:50 PM, Michał Nowotka wrote:
> I agree, but if you map SmallIntegerField to say NUMBER(9) you will save
> some space, correct?
>
Oracle may use the exact same datatype underneath for all NUMBER
(speculation). The value in brackets could simply be the default
number of di
I agree, but if you map SmallIntegerField to say NUMBER(9) you will save
some space, correct?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, sen
On Thursday, December 13, 2012 4:29:30 AM UTC-7, Michał Nowotka wrote:
>
> Does anyone knows the reason why IntegerField and SmallIntegerFields both
> map to NUMBER(11,0) in Orcale?
> I would expect SmallIntegerFiled map to something smaller ;)
>
Beats me. Although note that Oracle itself equate
Mario,
Thanks very much for the reply. I should have said either javascript or
jquery and it seems like jquery is the way to go. Let me test this now and
I will get back to you if I have any further questions.
Thanks,
Murtaza Pitalwala
On Wed, Dec 12, 2012 at 8:28 PM, Mario Gudelj wrote:
> Hey
On Wed, Dec 12, 2012 at 7:49 PM, Matthew Woodward wrote:
> I'm working on an application that uses two databases -- one is the main
> database that Django ORM talks to, where sessions are stored, etc. and the
> other is an external database where we need to run some storedprocs to
> retrieve some
On Wed, Dec 12, 2012 at 7:59 AM, ephan wrote:
> Depending on what you need for the graphs,have a look at flot,jqplot or
> rapheal.js(heavy).There is also high charts althought there are some
> licensing issues you may want to avoid.
>
> If you get stuck with the charts,let me know..am running some
Can anybody plz tell me how to add a foreign key an existing table using
SQL Queries?
>> I got the command, nut can't understand
ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address) REFERENCES
addresses (address) MATCH FULL;
What's "distfk" here if it is key name what is (add
Ok, i've get rid of my "special" mobile_manage.py and pass the
--settings option when i start the fcgi process (i use nginx+fcgi, no
mod_wsgi).
Using manage.py, with each settings file, i can verify that the
INSTALLED_APPS is correct and complete. However, i still get the error
any idea?
th
(r'^time/plus/\d{1,2}/$', hours_ahead),this line,you should use () for
d{1,2}
(r'^time/plus/\(d{1,2})/$', hours_ahead)
在 2011年2月18日星期五UTC+8下午11时04分13秒,Dipo Elegbede写道:
>
> Hi all,
>
> i am currently reading the django book and following the examples step by
> step.
>
> I have a view defined as
How are you populating the choices in the ChoiceField? Remember, you need
to do this on BOTH the POST AND the non-POST versions of creating the form.
But ChoiceField is a Form field, not a Model field... so its not perfectly
clear what you're asking.
On Tuesday, December 11, 2012 3:39:48 AM UT
I'm going to take a guess that when you "drop one" of them, deleting it,
there's still a query going on that might want to refer to the other one,
and the to_python fails because that reference doesn't exist anymore.
You might have better luck if you're using a OneToOne or ForeignKey
(onetomany
Hi,
On Thursday, December 13, 2012 1:02:10 PM UTC+1, Tom Evans wrote:
>
> Er, why have two versions of manage.py? One of the arguments manage.py
> takes is the name of your settings module.
>
> Put all your common settings into 'settings_default.py'.
>
> Add your mobile settings as 'settings_mo
On Thu, Dec 13, 2012 at 8:24 AM, florian wrote:
> Hi,
>
> for my project, i hav a mobile_manage.py and a manage.py. Each has its
> specific settings, but has also lots of sommon settings.
Er, why have two versions of manage.py? One of the arguments manage.py
takes is the name of your settings mod
Does anyone knows the reason why IntegerField and SmallIntegerFields both
map to NUMBER(11,0) in Orcale?
I would expect SmallIntegerFiled map to something smaller ;)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the
hi
what are you monitoring in the 1000 nodes, web server load, db load , network
interface stats, cpu load, memory usage, or specific thing.
i would use centralized monitoring that collect from all the server in
centralized location, with low overhead in periodical time like 10 seconds and
s
Yes, you need ajax
在 2012-12-13 中午12:29,"Mario Gudelj" 写道:
>
> Hey,
>
> First you need to add some id to that field and then use a jQuery
selector to get the value from it on blur or input:
>
> $('#some_id).on("blur", function(){
>//make your ajax call here
> });
>
> To make the Ajax call you c
Hi,
for my project, i hav a mobile_manage.py and a manage.py. Each has its
specific settings, but has also lots of sommon settings.
Thus, i've created a common_settings.py and included it in the specific
settings (settings.py and mobile_settings.py). Howerver, it doesn't work.
There's no error
32 matches
Mail list logo