Integrate with an ADFS Server for Login

2014-02-25 Thread Me Sulphur
Hi, For one of our new deployments we need to replace our authentication (django's default) with the client's Single Sign On (SSO). The client uses ADFS 2.0 for SSO. None of us have ever worked on .NET/Windows techologies; we tried to look up at many places but no leads on where to start. Possi

Re: Integrate with an ADFS Server for Login

2014-02-25 Thread Frank Bieniek
Hi, I found these ones, after some googleing, hope they migth help you... ldap authentication: http://stackoverflow.com/questions/10725891/authenticating-to-active-directory-with-python-ldap-always-returns-97 active directory python https://github.com/dfwarden/ActiveDirectory-Python active

How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-25 Thread DJ-Tom
Hi, currently I'm using the following configuration to host a Django appliaction: # WSGI Configuration > > WSGIScriptAlias /2013/spcmanage "D:/dev/spcmanage/spcmanage/wsgi.py" > WSGIPythonPath "D:/dev/spcmanage" > > > > Order deny,allow > Allow from

Re: How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-25 Thread Frank Bieniek
Hi Tom, if I would walk in your shoes, duplicate the source in different folders, so you do not create a single point of failure. If you mess in one project the other one behaves the same, as long as you do not deploy again... If you would run in linux I would have said, create different symlin

Re: How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-25 Thread DJ-Tom
Am Dienstag, 25. Februar 2014 13:10:00 UTC+1 schrieb Frank Bieniek: > > Hi Tom, > if I would walk in your shoes, > duplicate the source in different folders, > so you do not create a single point of failure. > > This is exactly what I'm after, I'm using a version control system so it is easy f

Re: Integrate with an ADFS Server for Login

2014-02-25 Thread Tom Evans
On Tue, Feb 25, 2014 at 10:44 AM, Me Sulphur wrote: > Hi, > > For one of our new deployments we need to replace our authentication > (django's default) with the client's Single Sign On (SSO). The client uses > ADFS 2.0 for SSO. > None of us have ever worked on .NET/Windows techologies; we tried to

Re: How to host multiple instances of the same app with Windows Apache & WSGI?

2014-02-25 Thread Tom Evans
On Tue, Feb 25, 2014 at 12:02 PM, DJ-Tom wrote: > Hi, > > currently I'm using the following configuration to host a Django > appliaction: > >> # WSGI Configuration >> >> WSGIScriptAlias /2013/spcmanage "D:/dev/spcmanage/spcmanage/wsgi.py" >> WSGIPythonPath "D:/dev/spcmanage" >> >> >>

Accessing a python function from a blog post stored in the db?

2014-02-25 Thread Dennis Marwood
Hi. I am looking for some advice on the best way to approach the following: I am pulling my blog posts out of my db. Inside of the posts I want to use an image scroller ( http://cssdeck.com/labs/css3-image-slider ), but I don't want to write all of the boilerplate surrounding each image every

Inlineformset with multiple models of the same type?

2014-02-25 Thread sapp
I'm trying to make a page that allows a user to edit/add many models at once. Let me give an example: class SolarSystem(models.Model): name = models.CharField(...) description = models.CharField(...) class Planet(models.Model): name = models.CharField(...) solarsystem =

django tests, mongoengine, and unique_with constraint

2014-02-25 Thread Loutre
Hi everybody, I'm facing the following problem with Mongodb. I've got the following model : from mongoengine import Document, StringField, DateTimeField class Author(Document): name = StringField(max_length=50, required=True) first_name = StringField(max_length=50, required=True, un

Re: Accessing a python function from a blog post stored in the db?

2014-02-25 Thread Jonathan Baker
This sounds like a good fit for an inclusion tag. Since you need a bit of markup around the images for the slider functionality, it'd be nice to keep that markup in a separate template so you could use the image slider in multiple places like, say, a post detail page as well as a dashboard. Then, a

Re: django tests, mongoengine, and unique_with constraint

2014-02-25 Thread Loutre
> > NB : I use Python 3.3.4, mongoengine 0.8.7, Django 1.6.2 and mongodb 2.0.6 > -- 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...@google

Re: django tests, mongoengine, and unique_with constraint

2014-02-25 Thread Loutre
> > I realized that indexes have not been created by mongoengine : > db.author.getIndexes() [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "poesie.author", "name" : "_id_" } ] I'm s

How pass authentication using django_auth_ldap ?

2014-02-25 Thread Fabio Surrage
Greetings ! Im trying to code a Automated Deploy System to Applications using Zope/Plone and JBOSS/Java and I am having some issues with LDAP Authentication. The authorization is OK, my problem is to make Django "user" know it... from django_auth_ldap.backend import LDAPBackend from django.ht

Re: django tests, mongoengine, and unique_with constraint

2014-02-25 Thread Loutre
It works if I call insure_indexes() method. I can't understand why. Is there to avoid it ? My code that works : > > from django.test import TestCase > from les_classiques.models import Author > import mongoengine > > > class DatabaseTest(TestCase): > def setUp(self): > db = mongoengi

Django with rabbit (but without async celery) - can be done?

2014-02-25 Thread Alon Nisser
I need to implement a quite simple Django server that server some http requests *and *listens to a rabbitmq message queue that streams information into the Django app (that should be written to the db). the data *must* be written to the db in a synchronized order , So I can't use the obvious ce

a report problem

2014-02-25 Thread MikeKJ
model: class Dates(models.Model): this_date = models.DateField() class Booking(models.Model) seats = models.IntegerField() date = models.ForeignKey(Dates) report view: this_date = "01-01-2000" seats = 0 daily_arrivals = [] all = Booking.objects.all() for a in all:

Re: Django with rabbit (but without async celery) - can be done?

2014-02-25 Thread Jonathan Baker
Could you write a RESTful API in your Django project, and then issue POST requests to that from a middleman script that the mq could communicate with? JDB On Tue, Feb 25, 2014 at 8:28 AM, Alon Nisser wrote: > I need to implement a quite simple Django server that server some http > requests *an

Re: Django with rabbit (but without async celery) - can be done?

2014-02-25 Thread Carlos Daniel Ruvalcaba Valenzuela
I'm still not sure of what you need, so there is something (a process) sending a message through rabbitmq with data that needs to be written to the DB, now, this needs to be synchronized, sync with what? an http request? ordered execution of writes? Regards, Carlos Ruvalcaba On Tue, Feb 25, 2014

Re: a report problem

2014-02-25 Thread Erik Cederstrand
Den 25/02/2014 kl. 17.10 skrev MikeKJ : > model: > class Dates(models.Model): > this_date = models.DateField() > > class Booking(models.Model) > seats = models.IntegerField() > date = models.ForeignKey(Dates) > > report view: > this_date = "01-01-2000" > seats = 0 > daily

Re: a report problem

2014-02-25 Thread MikeKJ
Cheers Erik I'll look at aggregation as well Dates model is because it is supposed to operate on a very limited set of dates -- 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

Override grappelli js files

2014-02-25 Thread rush
Hi,I'm using grappelli and I have two files in it I need to modify:admin/js/SelectBox.js admin/js/SelectFilter2.jsI thought it would be a good idea to put it into my app static directory:my_app/static/admin/js/SelectBox.js my_app/static/admin/js/SelectFilter2.jsBut whenever I try ./manage.py collec

Re: Override grappelli js files

2014-02-25 Thread Felipe Bessa Coelho
2014-02-25 17:18 GMT-03:00 rush : > Hi, > > I'm using grappelli and I have two files in it I need to modify: > > admin/js/SelectBox.js > admin/js/SelectFilter2.js > > I thought it would be a good idea to put it into my app static directory: > > my_app/static/admin/js/SelectBox.js > my_app/static/a

Re: How pass authentication using django_auth_ldap ?

2014-02-25 Thread Tom Evans
On Tue, Feb 25, 2014 at 2:31 PM, Fabio Surrage wrote: > Greetings ! > > Im trying to code a Automated Deploy System to Applications using Zope/Plone > and JBOSS/Java and I am having some issues with LDAP Authentication. > > The authorization is OK, my problem is to make Django "user" know it... >

Re: Override grappelli js files

2014-02-25 Thread rush
Wow, that's a great explanation. Thank you, Felipa! wbr,rush.   26.02.2014, 00:52, "Felipe Bessa Coelho" :2014-02-25 17:18 GMT-03:00 rush :Hi,I'm using grappelli and I have two files in it I need to modify:admin/js/SelectBox.js admin/js/SelectFilter2.jsI thought it would be a good

Django Windows Install Issues

2014-02-25 Thread Joe Buty
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 think I need help setting the correct path. Either moving the Django unzip

Re: Django Windows Install Issues

2014-02-25 Thread Nick Santos
Hi Joe, You shouldn't need to set any paths to install Django. If you open a command prompt up and navigate to the folder (or hold down shift and right click in the folder and select "Open Command Window Here" then run the command "python setup.py install" it will install Django. Also, I'd highly

Terrible performance when dropping into raw SQL Oracle

2014-02-25 Thread Shawn H
I've an app that has to drop into raw sql to run a query in a different Oracle database. The ORM isn't involved as I'm trying to get a count of rows that meet specific criteria to return that count via an AJAX call. Running the identical query in SqlPlus takes ~4 seconds. Django takes ~16 se

Re: Accessing a python function from a blog post stored in the db?

2014-02-25 Thread Dennis Marwood
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 view.py: def blog(request): entries = Project.objects.fil