Also there is no other view that could possibly be writing to the same row.
There are 5 rows in 5 different tables that get affected showing symptoms
similar to a rollback without any exception being raised. It's really hard
to imagine all of them had concurrent writes going on at the same time
I did initially think that it might have been a concurrent write messing
with the DB but I was able to see this issue locally once where this view
was the only one being called. The objects being saved were also using
update_fields and had the correct value on them while calling save. Is
there
On Wednesday, February 26, 2014 11:58:54 PM UTC+2, tapan pandita wrote:
>
> I am using transaction.atomic as a context manager for transactions in
> django 1.6. There is a block of code which I want to be in a transaction
> which has a couple of network calls and some database writes. I am seeing
Hi Tom,
You understood our requirements precisely. We do not have significant time
or ability to dig deep into platforms like C & SWIG. We have agreed to have
a C# intermediay to do all the ADFS/Windows stuff and use another callback
URL from C# to Django for logging the user in.
Thanks & Regard
Hey there,
(Forgive my ignorance)
My web application is heavily based around form input. I'd like to update
the user's session with each form input that they update or change while
working with a form. I'm thinking of implementing some simple javascript
that listens for 'change' events on each
On 27/02/2014 7:50am, Vernon D. Cole wrote:
You need pip
I agree
-- even though it is terrible to install on Windows.
I disagree
See http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows
You have to wade through an awful lot of that page before you see the
2014 upd
On 2/26/14 2:41 PM, Shawn H wrote:
Because this worked so well, I've gone directly to cx_Oracle in my
django view and used that to get the result in the 4 seconds. There
is definitely a problem with the Django implementation - I wonder if
perhaps the indexes on the tables aren't being used pro
I said that before testing it. The exact same code using cx_Oracle takes
~4 seconds outside of the django environment, but still takes ~16 seconds
when running in the django view. What the heck is going on? Updated
portion of code below
cnxn = cx_Oracle.connect('notification/notifydev@landmg
It doesn't have to, I guess it depends on how involved the creation tools
are that you create. Quick and dirty idea off the top of my head:
If the authoring tools define post widgets (body, text, scroller, video,
etc) you could let authors drag and drop the elements as they wish. On the
model si
I was briefly talking with a developer from Google whom I had met.
He mentioned something that I hadn't really gotten a chance to ask him more
about
He told me to be careful with django templates because in terms of scale,
they can cause problems and almost always need to be re-written. Rather
Because this worked so well, I've gone directly to cx_Oracle in my django
view and used that to get the result in the 4 seconds. There is definitely
a problem with the Django implementation - I wonder if perhaps the indexes
on the tables aren't being used properly.
On Wednesday, February 26, 2
Oh, sorry. That widget uses ModelAdmin.filter_horizontal
(https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.filter_horizontal),
it is not the standard admin ManyToMany widget. I just tested it in user
permissions. I just got it to work by selecting(multipl
Ok, I worked it quick and dirty. Do not try this at home, kids.
The field isn't strictly read only anymore, but I no longer mention
the field in question in forms.py
In the template, I've replaced the {{ forms.fk_model }} with {{
object.fk_model }}.
And now the field is plain text (the fk_model.
Won't this force my blog posts to all be the same. i.e. Text then a image
scroller?
How would I handle the case where a blog post was Text, image scroller,
text, image scroller?
On Wednesday, 26 February 2014 13:35:01 UTC-8, C. Kirby wrote:
>
> It sounds like your implementation is a little ske
I'm looking for a quick and easy way to implement readonly ForeignKeys
when using the generic.UpdateView.
I can't see anything that looks simpler than just ditching the
UpdateView and writing a function based view that sets the FK queryset
to a single object.
Or have I missed something?
cheers
L
The widget is a combination of two multiple select boxes and arrows to move
items between boxes. I have no issues with the selecting part. I have an
issue with the moving part.
On Wed, Feb 26, 2014 at 11:58 PM, C. Kirby wrote:
> I don't think I am. A ManyToMany relation in admin is represented
I am using transaction.atomic as a context manager for transactions in
django 1.6. There is a block of code which I want to be in a transaction
which has a couple of network calls and some database writes. I am seeing
very weird behaviour. Every once in while (maybe 1 in 20 times) I have
noticed a
I don't think I am. A ManyToMany relation in admin is represented as a
select-multiple html widget - is that what we are talking about?
The action that I described in my first message to select multiple elements
in a select-multiple widget works in Firefox, Opera, and with a modifier in
IE. It
3.8 seconds. It seems to be django, not cx_Oracle.
On Wednesday, February 26, 2014 2:50:58 PM UTC-6, Shawn H wrote:
>
> Good idea. I'll try that and report back
>
> On Wednesday, February 26, 2014 1:22:52 PM UTC-6, Tom Evans wrote:
>>
>> On Wed, Feb 26, 2014 at 6:16 PM, Shawn H wrote:
>> > Yes
Are you sure that you're not confusing the behavior of the select box with
the toggle action? Because I'm having trouble with the toggle action, not
the select box.
On Wed, Feb 26, 2014 at 8:08 PM, C. Kirby wrote:
> It appears that multi-select form widgets cannot be keyboard controlled in
> ch
It sounds like your implementation is a little skewed.
If a blog post is made of multiple resources (summary, body, multiple image
collections, etc.) You should probably have a model or models with the
appropriate fields/relationships. That way your template can house all of
the template langua
Thanks. I look forward to trying this soon.
I feel like I may be trying to swim against the current with this. Is this
a problem with the way that I have decided to implement my blog or are
these workarounds typical for django applications?
On Wednesday, 26 February 2014 04:15:15 UTC-8, Tom Eva
Good idea. I'll try that and report back
On Wednesday, February 26, 2014 1:22:52 PM UTC-6, Tom Evans wrote:
>
> On Wed, Feb 26, 2014 at 6:16 PM, Shawn H >
> wrote:
> > Yes. I've tested with several case numbers, and I'm using a similar
> > parameterized approach in my gui Oracle client as wel
On Tuesday, February 25, 2014 2:23:49 PM UTC-7, Joe Buty wrote:
>
> Hello, I am having trouble getting Django to work. I have installed python
> and downloaded and unzipped the .tar file for django. I am using windows 8
> ugh and can not open the instal file. I read through the setup.py and I
On Wed, Feb 26, 2014 at 6:16 PM, Shawn H wrote:
> Yes. I've tested with several case numbers, and I'm using a similar
> parameterized approach in my gui Oracle client as well, with the same
> results. It's always about 3 to 4 times slower running via django. I've
> tried it both on my local dev
I *could *do that (and would fall back to this if needed) but it's
suboptimal to say the least. celery does this somehow (run inside djano
context but from without the django process. listen to rabbitmq, etc) so I
guess it can be done. Looking for an Idea how
On Tuesday, February 25, 2014 6:10:
thanks for your response: to clarify:
ordered execution of writes
and the sending process isn't python (so I can't use eager celery for that)
On Tuesday, February 25, 2014 6:12:32 PM UTC+2, Carlos Daniel Ruvalcaba
Valenzuela wrote:
>
> I'm still not sure of what you need, so there is something (a
Yes. I've tested with several case numbers, and I'm using a similar
parameterized approach in my gui Oracle client as well, with the same
results. It's always about 3 to 4 times slower running via django. I've
tried it both on my local development web server as well as my production
apache l
It appears that multi-select form widgets cannot be keyboard controlled in
chromium, and it is a known bug/non-implementation:
http://code.google.com/p/chromium/issues/detail?id=90172
On Wednesday, February 26, 2014 11:28:05 AM UTC-6, cool-RR wrote:
>
> Sorry, space doesn't do the toggle. (Windo
Is the case number the same when you run the query in SqlPlus as when
you run it in Django? In other words, are you certain the query is
/exactly/ the same?
_Nik
On 2/25/2014 2:09 PM, Shawn H wrote:
> I've an app that has to drop into raw sql to run a query in a
> different Oracle database. The
Sorry, space doesn't do the toggle. (Windows 7 Chrome.)
On Wed, Feb 26, 2014 at 6:43 PM, C. Kirby wrote:
> While holding Ctrl (Command on a Mac), click the spacebar on the relations
> you want to select.
> Spacebar handles the toggle action, ctrl(command) keeps you in
> multi-select mode
>
> On
While holding Ctrl (Command on a Mac), click the spacebar on the relations
you want to select.
Spacebar handles the toggle action, ctrl(command) keeps you in multi-select
mode
On Wednesday, February 26, 2014 6:12:09 AM UTC-6, cool-RR wrote:
>
> Hi,
>
> How do I control the admin ManyToManyFiel
I am running 1.6 and this also emails me the errors. I was
also assuming by fixed they meant that this is no longer
an issue but that does not seem to be the case.
On Friday, December 6, 2013 2:55:04 PM UTC-5, Jon Dufresne wrote:
>
> > Can you not add a filter to your logger handler?
> http://st
Hello,
I'm trying to deploy a django project on justhost.com. I have a locally
installed version of python3 and I'm using the development version of
django. I know I have to use fastcgi.
My ~/public_html/uddo/.htaccess is:
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FI
I'm worry,
where I wrote --previs, it should say --prefix.
2014-02-26 10:55 GMT-03:00 Héctor Urbina :
> Hello,
>
> I'm trying to deploy a django project on justhost.com. I have a locally
> installed version of python3 and I'm using the development version of
> django. I know I have to use fastc
On Wednesday, 26 February 2014 08:10:40 UTC, ApathyBear wrote:
>
> I am brand new to Django, so bare with me.
>
> I am a little confused with this example shown in the Django book:
>
> Here is my urls.py:
>
> from django.conf.urls.defaults import *from mysite.views import hello,
> current_datetime
I am brand new to Django, so bare with me.
I am a little confused with this example shown in the Django book:
Here is my urls.py:
from django.conf.urls.defaults import *from mysite.views import hello,
current_datetime, hours_ahead
urlpatterns = patterns('',
url(r'^hello/$', hello),
url(
I have a django 1.6 site running on my development machine under runserver,
and another production machine with apache and modwsgi. When I access the
production site within our LAN it works with no issues. When I try to
access the site from outside our lan (ie from the wild and wolly Internet),
I g
> from django.shortcuts import get_object_or_404
>
> get_object_or_404(User,username = request.user)
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to djang
On Wed, Feb 26, 2014 at 5:29 AM, Dennis Marwood wrote:
> Thanks. I believe this is what I am looking for. However I am still running
> into an issue w/ the fact that I am pulling my blog entries from the db.
> This is causing the template to interpret the {% image_slider %} as a
> string.
>
> From
Hi,
How do I control the admin ManyToManyField widget with the keyboard?
Thanks,
Ram.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...
41 matches
Mail list logo