Re: Impossible? Django with NTLM SSO auth on windows?

2013-03-05 Thread Branko Majic
I've set-up a Kerberised environment some time ago, but I can't recall what docs I've been reading back then, so no recommendations there. I would recommend reading a little about it on Wikipedia (for start) to get the high-level overview. The environment I've set-up had relied upon MIT Kerberos i

how to add prefix in generic_inlineformset_factory?

2013-03-05 Thread Witold Greń
How to add prefix in generic_inlineformset_factory()? This is posible? -- 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...@googlegroups.com.

Trouble in trying django form wizard example!

2013-03-05 Thread Dilip M
Hi, I am new to Django and trying out form wizards. I am trying the example mentioned in https://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/#wizard-template-for-each-form . After 'submit'ting the data for 'ContactForm1' I am not getting 'ContactForm2'? I am just trying to pr

raw_id_fields: How to show a name instead of id?

2013-03-05 Thread Almudena Vila Forcén
Customizing a Django Admin panel, I'm using raw_id_fields to select a ForeignKey from a Model which has thousands of elements, because the default select-box drop-down is inconvenient with

Re: how to add prefix in generic_inlineformset_factory?

2013-03-05 Thread Tom Evans
On Tue, Mar 5, 2013 at 9:20 AM, Witold Greń wrote: > How to add prefix in generic_inlineformset_factory()? This is posible? > I don't understand precisely what you mean, but two of the arguments to generic_inlineformset_factory() are 'form' and 'formset', allowing you to specify a different class

Re: django DB optimization

2013-03-05 Thread graeme
10,000 people does not sound like too heavy a load. How often will they check their schedules? If you are looking up items by day and user, then indices on day and (foreign key on) user should be enough to handle a much heavier load. If you do find you need caching, using Django's built in cach

Re: how to add prefix in generic_inlineformset_factory?

2013-03-05 Thread Witold Greń
I need to create two formset (generic_inlineformset_factory). When i create formset in template used formset_create_company and formset_create_private, field names are the same. c['form_create_company'] = User1() c['form_create_private'] = User2() c['formset_create_company'] = ge

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Michael
On Sunday, 3 March 2013 17:45:56 UTC+1, Bruno Girin wrote: > The main stumbling block at the moment and for which we could do with > Django expertise is about the structure of the settings files. Some > settings are application specific and should be left alone by Juju, others > are environment

Django admin - Insert into another table

2013-03-05 Thread Bora Aymete
I want to insert into another table when saving a record on Django admin panel. For example I have a model named device and I want to create a device and keep it in a table, but whenever I make a change to the device, I want to make a record history of the changes. Is it possible to do so? --

Re: Django 1.4.3 contact_form

2013-03-05 Thread Peter Chibunna
def contact(request): if request.method == 'POST': #checks if the request method was a post, i.e. if the form has been submitted #and initializes the form with the data that was submitted form = ContactForm(request.POST) if form.is_valid(): #if form validation passed, do y

Re: New to Django & Programming - Trying to work with the tutorial. How to edit mysite/settings.py

2013-03-05 Thread Peter Chibunna
There's exactly no command that you need to achieve what you are asking here. The "settings.py" file is a file -like the name suggests- that contains settings for your django web application. This includes database pointers, database credentials, applications in your site, and all those things

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Dave Murphy
On Sunday, March 3, 2013 4:45:56 PM UTC, Bruno Girin wrote: > Patrick solved that problem by separating different config elements in > different files but this implies that juju'ised applications would need to > follow the same structure. Is that a good idea? If you're aiming for a PaaS-style

Re: Use variable in my template?

2013-03-05 Thread Amyth Arora
how are you passing the variable to the template ? show us the view method that renders the template On Feb 28, 2013 4:36 PM, "Maria" wrote: > Hello everyone, > > I have a variable I want to have access to in my Django template. But > somehow I can't manage to do that. > > I got *Django/mytempla

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Michael Nelson
On Tue, Mar 5, 2013 at 1:55 PM, Dave Murphy wrote: > On Sunday, March 3, 2013 4:45:56 PM UTC, Bruno Girin wrote: > >> Patrick solved that problem by separating different config elements in >> different files but this implies that juju'ised applications would need to >> follow the same structure.

Re: Django admin - Insert into another table

2013-03-05 Thread Shawn Milochik
Sure. Just use the post-save signal: https://docs.djangoproject.com/en/1.5/ref/signals/#post-save -- 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+u

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Dave Murphy
On Tuesday, March 5, 2013 1:17:13 PM UTC, Michael wrote: > > Are there other better options that wouldn't force people to change their > code to use the charm? > For the charm to be of sufficient value, it needs to be opinionated, otherwise it's going to suffer from trying to work out-of-the-box

I want to check for new orders in the background?

2013-03-05 Thread frocco
Hello, I want to query the orders database every 5 minutes and alert admins that new orders have arrived. Would I use signals for this? Anyone have an example? Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

Re: I want to check for new orders in the background?

2013-03-05 Thread frocco
Would I send a signal after an order is saved? On Tuesday, March 5, 2013 8:38:14 AM UTC-5, frocco wrote: > > Hello, > > I want to query the orders database every 5 minutes and alert admins that > new orders have arrived. > Would I use signals for this? > > Anyone have an example? > > Thank you >

Re: I want to check for new orders in the background?

2013-03-05 Thread frocco
This is not working, the to: never gets called. from: user_order = Signal(providing_args=["request", "order"]) user_order.send(sender=None, request=request, order=order) to: def user_order_handler(sender, **kwargs): order = kwargs('order') user_order.connect(user_order_handler) On Tues

Re: I want to check for new orders in the background?

2013-03-05 Thread Dave Murphy
On Tuesday, March 5, 2013 1:38:14 PM UTC, frocco wrote: > > I want to query the orders database every 5 minutes and alert admins that > new orders have arrived. > Would I use signals for this? > Using a receiver attached to the post_save signal of your Order model would certainly be more efficie

Re: Django admin - Insert into another table

2013-03-05 Thread Bora Aymete
Looks promising. Thanks 5 Mart 2013 Salı 15:25:13 UTC+2 tarihinde Shawn Milochik yazdı: > > Sure. Just use the post-save signal: > > https://docs.djangoproject.com/en/1.5/ref/signals/#post-save > -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: I want to check for new orders in the background?

2013-03-05 Thread Jaimin Patel
Take a look at django-notifications app - https://github.com/pinax/django-notification I think it should be able to help you. you can check the example of it on this SO thread - http://stackoverflow.com/questions/1609775/how-do-i-display-notifications-from-django-notification On Tuesday, Marc

Re: I want to check for new orders in the background?

2013-03-05 Thread frocco
I tried your link https://github.com/pinax/django-notification but it is not working. is there anything wrong with my code to prevent the signal from working? On Tuesday, March 5, 2013 9:18:04 AM UTC-5, Jaimin Patel wrote: > > Take a look at django-notifications app - > https://github.com/pinax/

get_form in formwizard gives validation error

2013-03-05 Thread Rob
In a formwizard I want to use a custom query, based on previous choices. The form renders well, but when the step is submitted I get an "Select a valid choice. That choice is not one of the available choices." error Here is the get_form part in my views.py (simplified): def get_form(self, s

Re: django DB optimization

2013-03-05 Thread Rui Silva
Hi Subodh, 10k records isn't that much. Nonetheless you should test your application with high loads to assert if the database performance is an issue. If the test results show that the database performance may be a problem, you should check if the tables you use are properly indexed and loo

A generic 'search' framework for forms?

2013-03-05 Thread Subodh Nijsure
I have lot of forms in my django application and would like to present a generic way for end user to do search query, is there a package out there that allows one to construct such a thing? Example I have a form that shows customers it has fields like customer_name, customer_address , I have anoth

Re: how to add prefix in generic_inlineformset_factory?

2013-03-05 Thread Tom Evans
On Tue, Mar 5, 2013 at 11:40 AM, Witold Greń wrote: > I need to create two formset (generic_inlineformset_factory). When i create > formset in template used formset_create_company and formset_create_private, > field names are the same. > > c['form_create_company'] = User1() > > c['form_cre

Re: how to add prefix in generic_inlineformset_factory?

2013-03-05 Thread Witold Greń
Thanks, django documentation that is what is missing ;) W dniu wtorek, 5 marca 2013 10:20:36 UTC+1 użytkownik Witold Greń napisał: > > How to add prefix in generic_inlineformset_factory()? This is posible? -- You received this message because you are subscribed to the Google Groups "Django use

django-recaptcha validation problems

2013-03-05 Thread Xavier Pegenaute
Hi, I am using django-recaptcha and I want to use it inside the registration form. In the website [1], inside the Field section says: "A ReCaptcha widget will be rendered with the field validating itself without any further action required from you". Actually seems is not validating anything.

Re: Django inline formsets, force initial data to be saved.

2013-03-05 Thread Marc Aymerich
On Tue, Mar 5, 2013 at 3:11 AM, Russell Keith-Magee wrote: > > > On Mon, Mar 4, 2013 at 10:31 PM, Marc Aymerich wrote: > >> Hi, >> I've spend several hours trying to figure out how to save inlines with >> initial data in them. >> >> basically I have a very simple model with 2 fields: >> >> class

Re: Django inline formsets, force initial data to be saved.

2013-03-05 Thread Marc Aymerich
On Tue, Mar 5, 2013 at 3:11 AM, Russell Keith-Magee wrote: > > > On Mon, Mar 4, 2013 at 10:31 PM, Marc Aymerich wrote: > >> Hi, >> I've spend several hours trying to figure out how to save inlines with >> initial data in them. >> >> basically I have a very simple model with 2 fields: >> >> class

Re: django-recaptcha validation problems

2013-03-05 Thread Xavier Pegenaute
Hi, Sniffing the connection, it connects to google but then always is sending a new captcha., how can I check if it is validating properly? Thanks, Xavi On 03/05/2013 04:34 PM, Xavier Pegenaute wrote: Hi, I am using django-recaptcha and I want to use it inside the registration form. In

Re: raw_id_fields

2013-03-05 Thread Almudena Vila Forcén
I have the same problem, I want to show the real name instead the id. Do you solve it? Thank you very much El miércoles, 30 de enero de 2013 17:20:06 UTC+1, rdollinger escribió: > > Hi everybody, > > I have a m2m relation where in my AdminForm I would use raw_id_fields instead > of the filter_h

Re: raw_id_fields

2013-03-05 Thread Almudena Vila Forcén
I have the same problem, I want to show the real name instead the id. Do you solve it? Thank you very much El miércoles, 30 de enero de 2013 17:20:06 UTC+1, rdollinger escribió: > > Hi everybody, > > I have a m2m relation where in my AdminForm I would use raw_id_fields instead > of the filter_h

Re: A generic 'search' framework for forms?

2013-03-05 Thread Odagi
Maybe this Django app can help you http://haystacksearch.org/ It's basically a wrapper abobe a search backend. I'd also like to recomend you http://www.elasticsearch.org/ Hope helps, cheers. On Tuesday, March 5, 2013 11:41:13 AM UTC-3, Subodh Nijsure wrote: > > I have lot of forms in my djang

Re: How to pass a value from a Django View to a JQuery Slider bar.

2013-03-05 Thread 7equivalents
Well, I definitly can't just throw a variable into the Javascript using the {{ }} tags. I tried it and it didn't work. I'm sure Shawn Milochik is correct about consuming the view with AJAX, however that is going to take sometime to learn and explore, as I am novice at this. It seems there shoul

Re: How to pass a value from a Django View to a JQuery Slider bar.

2013-03-05 Thread Gabriel
You could use some small

Re: How to pass a value from a Django View to a JQuery Slider bar.

2013-03-05 Thread Tom Evans
On Tue, Mar 5, 2013 at 4:57 PM, <7equivale...@gmail.com> wrote: > Well, I definitly can't just throw a variable into the Javascript using the > {{ }} tags. I tried it and it didn't work. I'm sure Shawn Milochik is > correct about consuming the view with AJAX, however that is going to take > someti

Splicing geometry by bounding box

2013-03-05 Thread John Baker
Hey I am currently working on a geolocation based game that utilizes a geodjango application to manage querying, parsing, and server geographical data to our client. We are currently using PostGIS to store our OSM data. We are using the OSM tilename system throughout our project and some of our

Re: Django inline formsets, force initial data to be saved.

2013-03-05 Thread Marc Aymerich
On Tue, Mar 5, 2013 at 4:43 PM, Marc Aymerich wrote: > > > On Tue, Mar 5, 2013 at 3:11 AM, Russell Keith-Magee < > russ...@keith-magee.com> wrote: > >> >> >> On Mon, Mar 4, 2013 at 10:31 PM, Marc Aymerich wrote: >> >>> Hi, >>> I've spend several hours trying to figure out how to save inlines with

Re: How to pass a value from a Django View to a JQuery Slider bar.

2013-03-05 Thread 7equivalents
Alright guys, thanks for the input, I need something a bit more specific to my case due to my ignorance on the subject at hand, so I am posting the code for my View, Template, and JQuery. So, basically I want to take the slider1 object value in the View, and place it in the Javascript where va

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Bruno Girin
On Tuesday, 5 March 2013 13:35:41 UTC, Dave Murphy wrote: > > On Tuesday, March 5, 2013 1:17:13 PM UTC, Michael wrote: >> >> Are there other better options that wouldn't force people to change their >> code to use the charm? >> > > For the charm to be of sufficient value, it needs to be opiniona

Re: I want to check for new orders in the background?

2013-03-05 Thread frocco
I got this working using signals On Tuesday, March 5, 2013 9:28:31 AM UTC-5, frocco wrote: > > I tried your link https://github.com/pinax/django-notification > but it is not working. > > is there anything wrong with my code to prevent the signal from working? > > On Tuesday, March 5, 2013 9:18:04

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Christopher Glass
For what it's worth, "other PaaS solutions" solve this by letting people call a python function from settings.py I think it's a good solution. On Mar 5, 2013 8:04 PM, "Bruno Girin" wrote: > > > On Tuesday, 5 March 2013 13:35:41 UTC, Dave Murphy wrote: >> >> On Tuesday, March 5, 2013 1:17:13 PM U

Re: Templates: best way to access object attributes described in a external list.

2013-03-05 Thread Serge G. Spaolonzi
On Mon, Mar 4, 2013 at 12:01 PM, Bill Freeman wrote: > Are you saying that you need control over which of an item's attributes > are shown and which are not and/or the order in which attributes are shown, > or are you saying that the way python/django converts the attributes to > strings does not

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Dave Murphy
On Tuesday, March 5, 2013 7:03:36 PM UTC, Bruno Girin wrote: > > So I'd much rather have the charm auto-generate part of the config in a > sensible way and then tell people: if you use Juju, don't provide those > settings in your config, the charm will do it. > ...and if they do? How is this any

Re: Request for comments on a new Open Source Paas platform for Django

2013-03-05 Thread Bruno Girin
On Tuesday, March 5, 2013 7:56:37 PM UTC, Dave Murphy wrote: > > On Tuesday, March 5, 2013 7:03:36 PM UTC, Bruno Girin wrote: >> >> So I'd much rather have the charm auto-generate part of the config in a >> sensible way and then tell people: if you use Juju, don't provide those >> settings in y

Django payment gateway with subscription management

2013-03-05 Thread Jaimin Patel
Hello, We are evaluating different payment gateways for subscription management for one of the app which requires the subscription based model (monthly, 6 months, year). I checked different packages available here - https://www.djangopackages.com/grids/g/payment-processing/ Though I am confu

Re: Django payment gateway with subscription management

2013-03-05 Thread Mayukh Mukherjee
Stripe if you're in the us (am not sure which other countries they've rolled out to). On Tue, Mar 5, 2013 at 3:34 PM, Jaimin Patel wrote: > Hello, > > We are evaluating different payment gateways for subscription management > for one of the app which requires the subscription based model (month

Re: Django payment gateway with subscription management

2013-03-05 Thread Jaimin Patel
Yes, we are USA based and I come across stripe. It seems very developer friendly. Is there any example on setting up recurring payments using stripe? On Tuesday, March 5, 2013 3:47:06 PM UTC-5, Mayukh Mukherjee wrote: > > Stripe if you're in the us (am not sure which other countries they've > r

Extending the base file depending on User type

2013-03-05 Thread Sandeep kaur
I want to extend the base template file into the child file depending on the condition, like if the user is superuser or staff or active user, the file to extended should ll be different. For Eg : {% if user.is_superuser %} {% extends "base.html" %} {% else if user.is_active %} {%

Re: Extending the base file depending on User type

2013-03-05 Thread Shawn Milochik
Instead of extends, you could use the "include" directive. -- 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...@googlegroups.com. To post to

Setting Django to not quote table names

2013-03-05 Thread Steven Githens
Hello Django Users, I have an app that uses Oracle and cx_Oracle for the db, and I've made the models from an existing schema with inspectdb. The database schema also contains a number of sub-schemas, so they must be accessed with schema dot table name. Looking at the SQL used for model acces

models i18n

2013-03-05 Thread Roberto López López
Hi guys, I am developing a django application and between my requirements there is being able to set the model fields into different languages. For example: class Employee(models.Model): position = models.CharField() # etc. The employee position won't be the same in English and Spanish.

Re: Setting Django to not quote table names

2013-03-05 Thread Shawn Milochik
I'm taking a look at this as someone pretty unfamiliar with the ORM. Hopefully someone more knowledgeable will jump in. However, in the meantime (if you're feeling adventurous), you could look in django/db/backends/oracle/base.py and have a look at function quote_name. A naive look at it makes me

Re: models i18n

2013-03-05 Thread Johan ter Beest
On Mar 5, 2013, at 10:31 PM, Roberto López López wrote: > Hi guys, > > I am developing a django application and between my requirements there > is being able to set the model fields into different languages. > > For example: > > class Employee(models.Model): >position = models.CharField()

Re: Impossible? Django with NTLM SSO auth on windows?

2013-03-05 Thread Anton
Hmmm the bad support (as you mention "it hasn't been updated in quite some time") seems to be a major problem in this domain. I just looked at (for apache) http://mod-auth-sspi.sourceforge.net/docu/mod_ntlm/ Here they say mod_ntlm is obsolete and " mod_auth_sspi is the version of mod_ntlm for A

Re: Setting Django to not quote table names

2013-03-05 Thread Steven Githens
Hi Shawn! Thanks for the clue. I commented out the following in oracle/base.py DatabaseOperations.quote_name and can get some tables showing up in the admin view now. ( More issues of course, but I believe them to be separate. ) # if not name.startswith('"') and not name.endswith('"')

Re: Setting Django to not quote table names

2013-03-05 Thread Shawn Milochik
This works for me in Postgres as well. This script: from django.contrib.auth.models import User qs = User.objects.filter(username='smilochik') print qs.query.sql_with_params() returns this output: ('SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name"

Re: Setting Django to not quote table names

2013-03-05 Thread Johan ter Beest
Not an Oracle expert at all but maybe this SO answer explains some things?: http://stackoverflow.com/questions/563090/oracle-what-exactly-do-quotation-marks-around-the-table-name-do On Mar 5, 2013, at 11:12 PM, Shawn Milochik wrote: > This works for me in Postgres as well. This script: > > fr

Re: Setting Django to not quote table names

2013-03-05 Thread Shawn Milochik
On Tue, Mar 5, 2013 at 5:41 PM, Johan ter Beest wrote: > Not an Oracle expert at all but maybe this SO answer explains some things?: > > http://stackoverflow.com/questions/563090/oracle-what-exactly-do-quotation-marks-around-the-table-name-do > So if it's down to case-sensitivity then everything

q: Account activation page

2013-03-05 Thread Bino Oetomo
Dear All ... I need something like django-registration, but currently my app use 2 different completely seperated user tables : 1. The default auth.user 2. myproj.user table The first table will only used for server administration, and the actual day-to-day operation will based on that myproj.u

reverse foreign key relationship usage

2013-03-05 Thread Fatih Tiryakioglu
Hello all, In Appendix B:Database API, it says "related_name (keyword) is particularly useful if a model has two foreign keys to the same second model." which is about 'related_name' keyword used reverse foreign key relationships. e.g. blog = ForeignKey(Blog, related_name='entries'). What does