Re: How to hide the "save and add another" button in admin page?

2014-01-19 Thread parnigot
Il 19/01/14 02:38, RLF_UNIQUE ha scritto: I have been trying all day. What I am doing is trying to have a model for an "about" page, which I want to limit to 1 item. It doesn't really make sense to have multiple "abouts". I've done everything described here http://stackoverflow.com/questions/

Re: Connecting to a MS SQL server from django

2014-01-19 Thread Fred Stluka
Larry, +1 for Pycharm (JetBrains). I use their DB tools to explore both MS SQL and MySQL DBs. If you like, I can dig up my notes on exactly how I made the connection from PyCharm to MS SQL Server. --Fred Fred Stluka -- ma

Re: Connecting to a MS SQL server from django

2014-01-19 Thread Fred Stluka
Larry, We tried django-mssql and gave up. Much better luck with django-pyodbc. We use the avidal version of it, along with pyodbc, FreeTDS, and unixODBC. Works perfectly. If you like, I can dig up my notes on exactly how we made the connection from Django to MS SQL Server. --Fred ---

Re: How to hide the "save and add another" button in admin page?

2014-01-19 Thread RLF_UNIQUE
Ah I see, give a user change permission but not add or remove? Then just use superaccount to make initial entry? -- 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 ModelForm individual fields not validated when overriding clean() on Model

2014-01-19 Thread faph
I am using standard Django Models and ModelForms. On the Model, I am overriding the clean() method to check that 2 fields in combination are valid. I am having validators[], not nulls etc defined on other fields. In the ModelForm, I am not modifying anything. I only set the corresponding M

Re: Connecting to a MS SQL server from django

2014-01-19 Thread Larry Martell
Fred- This project has been put on the back burner for a few weeks, but I will be getting back to it. If you could dig up your notes on this, that would be really great. Thanks very much! -larry On Sun, Jan 19, 2014 at 7:01 AM, Fred Stluka wrote: > Larry, > > We tried django-mssql and gave up.

rendering HTML as a select item

2014-01-19 Thread Larry Martell
I am trying to 'fake out' a model form and display data from 2 columns in one field. I can do this by returning the 2 columns in the model's __unicode__ method, but I want to apply styling to the data - I want one column's data left justified and the other column's data right justified. When I retu

Re: Connecting to a MS SQL server from django

2014-01-19 Thread Fred Stluka
Larry, I did it a long complicated way, but we recently had 2 new people join our team, and refined the process for them, and it seemed to go smoothly, so here's what they did. Some sections differ for Mac vs Linux, and some even for different Linux distros, but it should all work. I'm includin

Questions about how Django handles user authentication.

2014-01-19 Thread Chen Xu
Hi Everyone, I am wondering how request.User get set during the authentication, do we have to do anything like: request.User = User() or it will have value by itself? Thanks in advance. -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django us