Re: Django SSO

2019-09-15 Thread Kurt Wall
On Sat, 14 Sep 2019 08:14:15 -0700 Suraj Thapa FC wrote > How to implement Single Sign(SSO) with DjangoAny idea..? Did you do *any* research at all? https://lmgtfy.com/?q=django-sso -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How do you interact with the Django test database outside of tests?

2017-08-30 Thread Kurt Wheeler
base class to TransactionTestCase, I was able to prevent this behavior. On Friday, August 25, 2017 at 5:25:03 PM UTC-4, Kurt Wheeler wrote: > > I am attempting to write end-to-end tests for my system. To do this I am > running one container called "workers" as it would normally

How do you interact with the Django test database outside of tests?

2017-08-25 Thread Kurt Wheeler
I am attempting to write end-to-end tests for my system. To do this I am running one container called "workers" as it would normally be run during development, i.e. not via a test runner. I have another container called "foreman" that is run via a test runner which sets up the tests, sends work

Re: Django Unobtrusive Ajax

2012-09-20 Thread Kurt Pruhs
was saying? As far as I know, a JavaScript solution is the most viable for delivering real-time content to browsers. Is there another way to do this? Just curious what your thoughts are. Kurt On Wednesday, September 19, 2012 5:09:42 PM UTC-6, Russell Keith-Magee wrote: > > … and, you

Re: Django Unobtrusive Ajax

2012-09-19 Thread Kurt Pruhs
Great idea. It looks like you have a legitimate method for "baking" AJAX into the Django framework. I will be starting a new Django project in October. I will try to integrate this. On Wednesday, September 19, 2012 9:02:44 AM UTC-6, Faraz Masood Khan wrote: > > Easiest way to do Ajax in Django:

Re: tastypie - some feedback / comments

2012-09-12 Thread Kurt Pruhs
I've had the same issues. A previous developer used TastyPy for APIs and it's a nightmare trying to modify them beyond the simple, out-of-the-box functionality. In its current state, it's more trouble than it's worth. -- Kurt Pruhs Utah State University Information T

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-10 Thread Kurt Pruhs
or contact you when I start working on the change audit code Kurt Pruhs Utah State University Programing & Design Team On Monday, September 10, 2012 1:43:17 PM UTC-6, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi guys, > > We have just released a new module that allows for

Re: Deserializing xml or json goes into infinite recursion

2010-02-08 Thread Kurt Schwehr
Solved... The answer is to not user "pk" as a field in your model. I switch pk to something else and the serialize and deserialize work fine. -kurt On Feb 7, 2:28 pm, Kurt Schwehr wrote: > class alert(models.Model): >     pk = models.CharField(max_length=10, primary_key=Tru

Re: Deserializing xml or json goes into infinite recursion

2010-02-07 Thread Kurt Schwehr
elf, self._meta.pk.attname, value) 378 379 pk = property(_get_pk_val, _set_pk_val) On Feb 7, 2:28 pm, Kurt Schwehr wrote: > Hi All, > > I'm attempting to pull data from an older django server (0.9x) into a > django 1.1.1 app.  I get an infinite recursion error with eit

Deserializing xml or json goes into infinite recursion

2010-02-07 Thread Kurt Schwehr
This is using django 1.1.1 with python 2.6 and sqlite3 from fink on macosx 10.6 Any help would be greatly appreciated. Thanks! -kurt class alert(models.Model): pk = models.CharField(max_length=10, primary_key=True) zone_id = models.IntegerField() first_good_data = models.DateTime

Re: Should (or can) you have many to many relationship with abstract base class

2009-10-16 Thread Kurt Neufeld
pe_id = pettype.id and pettype.num_of_legs = 4; When you have a table with a foreign key then that table is kinda like an abstract base type. Now just put a table in between pettype and pet for your many-to-many but the principle is the same. Kurt On 2009-10-16, at 12:17 PM, Chip Gra

Re: trying to do ip based resolve

2009-10-13 Thread Kurt Neufeld
hat. Anybody have any ideas about the bug of seeing the debug_toolbar output (without css/js formatting). I'll file a bug if it's a bug and not just me not knowing how to write middleware. My middleware problem? debug_toolbar problem? Django problem? Kurt On 2009-10-04, at 2:23 PM,

Re: Redirect home page

2009-10-10 Thread Kurt Neufeld
You could use middleware to do this as I learned last week, but why not just make a "view" which is only a function. urls.py: ... (r'^$', 'views.DomainRootRedirect' ) ... views.py: def DomainRootRedirect( request, *args, **kwargs ): return HttpResponseRedirect(

Re: trying to do ip based resolve

2009-10-04 Thread Kurt Neufeld
Wow, was that ever easy. Thanks for your help! Kurt For future googlers: settings.py: MIDDLEWARE_CLASSES = ( ... 'redirector.ConstructionFilterMiddleware', ... ) redirector/__init__.py: from django.shortcuts import render_to_response from django.conf import setti

trying to do ip based resolve

2009-10-04 Thread Kurt
I think I must be doing something fundamentally wrong since this seems like an easy problem... I'm building a site, I want all ips not in INTERNAL_IPS to get an "under construction" page and my internal ips to get the real site. What I'm trying to do is call the application urlconf via the resol

Installation problem: ImportError: No module named django.core.management

2006-12-17 Thread Kurt
Hi Guys, I'm a newbie with Django, and am still unfortunate enough to be running it on a windows (XP) machine. I've currently got everything installed (Apache, mod_python, python 2.4, svn etc etc), but when I try to run "manage.py runserver", it spews out the following traceback. C:\django_src\