Re: Custom User

2014-09-30 Thread Lachlan Musicman
use list_display: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display Cheers L. On 1 October 2014 13:11, Sachin Tiwari wrote: > Ok sorry for incomplete description, I added a field phone number in user > profile for

Re: Custom User

2014-09-30 Thread Sachin Tiwari
Ok sorry for incomplete description, I added a field phone number in user profile for eg when we click on add user button it will show username, password and in my case it will show phone number also but it will not be displayed after saving it. I add from django.contrib.auth.models

Re: Config: DB or git?

2014-09-30 Thread Jorge Andrés Vergara Ebratt
I've been checking out python-decouple and I have to say it's pretty easy, it replaces django-dotenv, django-getenv and django-autoenv for those working in a 12factorish way 2014-09-30 13:29 GMT-05:00 Arthur Alvim : > There's a really nice project called python-decouple. (

Re: Config: DB or git?

2014-09-30 Thread Arthur Alvim
There's a really nice project called python-decouple. ( https://github.com/henriquebastos/python-decouple/) You can store you vars on .ini or .env files and ignore then on git. Install pip install python-decouple Usage On your

Re: Config: DB or git?

2014-09-30 Thread Vernon D. Cole
12-factor is all the rage, and they have some very good ideas that ought to be followed. But insisting that environment variables are the only correct way of storing settings, is, well, just plain wrong. [ Note: I have 40 years of experience, I recognize a fad when I see it. ] All of those

Re: Which Version of Django

2014-09-30 Thread Tim Chase
On 2014-09-30 09:28, Mark Caglienzi wrote: > I agree with other advices to start with Django 1.7. > Django is very stable and the new functionalities are always > introduced in a very sane way. I haven't seen any discussion of the deployment platform. I would also recommend 1.7 for green-field

Re: Config: DB or git?

2014-09-30 Thread Tom Evans
On Mon, Sep 29, 2014 at 2:15 PM, Alejandro Varas G. wrote: > Hi Thomas, > > El 29/09/2014 10:05, "Thomas Güttler" escribió: >> >> Hi, >> >> of course we separate data from code: >> >> - code belongs into version control (git) >> - data belongs into a

Re: Custom User

2014-09-30 Thread monoBOT
You aren't asking anything. 2014-09-30 11:44 GMT+01:00 Sachin Tiwari : > Hi Tundebabzy, > > Am I asking something wrong? please help me if possible. > > > On Tuesday, September 30, 2014 3:20:34 PM UTC+5:30, Sachin Tiwari wrote: >> >> Hi >> >> I want to display a phone

Including JS/CSS in reusable widget library

2014-09-30 Thread Thomas Güttler
The way django handles static media works very well for js/css files which are included in the library. But if you want to build in external js/css files it gets ugly. For example nice django-selectable widget. Has a long documentation on how to include jquery-ui:

Re: Custom User

2014-09-30 Thread Babatunde Akinyanmi
Your question is vague. You need to be specific about what you want to do. Let us see what you have tried and let us see the stack trace of any error. Otherwise, your question seems like "hi, I want to build a car". When you put in the details i can assure you that answers will start flying in.

Re: Need example to implement sql (dictionary) translations

2014-09-30 Thread robert brook
Person.objects.raw('SELECT * FROM some_other_table', translations=name_map) That does not work. Printing out the results from above gives me the following. How do I convert this into a sql result, and or a dictionary? The row above On Monday, September 29, 2014 1:11:51 PM UTC-4, robert

Re: Custom User

2014-09-30 Thread Sachin Tiwari
Hi Tundebabzy, Am I asking something wrong? please help me if possible. On Tuesday, September 30, 2014 3:20:34 PM UTC+5:30, Sachin Tiwari wrote: > > Hi > > I want to display a phone number field at users list page, > > Username emailAddress FirstName LastName staffstatus PhoneNumber

Re: Which Version of Django

2014-09-30 Thread Muhammad Ahmed
Thank James for the insight about LTS. As I am just learning Django and not yet working professionally. Hence I wanted to avoid any outdated version. However, I felt Django 1.4 is good. I may use Django 1.4 back after having checked 1.7. :) Thanks again for your time and valuable opinion.

Re: Custom User

2014-09-30 Thread Babatunde Akinyanmi
Hello Sachin, On 30 Sep 2014 10:50, "Sachin Tiwari" wrote: > > Hi > > I want to display a phone number field at users list page, > > Username emailAddress FirstName LastName staffstatus PhoneNumber > sachin a...@g.com sachintiwari

Re: Which Version of Django

2014-09-30 Thread Muhammad Ahmed
Thank you Mark! Especially for book link. :) > > I agree with other advices to start with Django 1.7. > Django is very stable and the new functionalities are always introduced > in a very sane way. Also the deprecations are done well, and the > documentation is one of the best I have ever

Re: Which Version of Django

2014-09-30 Thread Muhammad Ahmed
Thank you Andreas! I started learning Python 3x and later on I used 2.7, hence the minor differences will probably not create problem for me. Anyways thanks for your guidelines. On Tuesday, 30 September 2014 12:35:05 UTC+5, Andréas Kühne wrote: > > You should be aware that using python 3

Custom User

2014-09-30 Thread Sachin Tiwari
Hi I want to display a phone number field at users list page, Username emailAddress FirstName LastName staffstatus PhoneNumber sachin a...@g.com sachintiwari True 000 -- You received this message because you are subscribed to

Re: Which Version of Django

2014-09-30 Thread James Schneider
Not to throw a wrench in to this conversation, but it should be noted that Django 1.4 is considered the LTS (long term support) version, and is acceptable for production use if you do not need any of the fancy features in 1.7. If you are looking at a small project and don't mind upgrading between

Exceptions in signal handlers pass silently

2014-09-30 Thread Thomas Güttler
I just discovered, that exceptions in signal handlers pass silently. Is there a way to not silently ignore errors? >>> import this -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Which Version of Django

2014-09-30 Thread Andreas Kuhne
You should be aware that using python 3 will give you small problems regarding compability with several plugins for django. Python 3 is becoming more adopted, but it is not always easy to find plugins that do what you want in all situations. That being said, we have just rewritten our website in

Re: Which Version of Django

2014-09-30 Thread Mark Caglienzi
On 29 Sep 23:21, Muhammad Ahmed wrote: > Hi, > > I am learning Django by using version 1.4 and I have completed first 4 > introductory > lessons . > > However, I see that newest Django version is 1.7 and I feel that I am using > an

Re: Config: DB or git?

2014-09-30 Thread Thomas Güttler
I see configurable settings, like those in the settings module, as code settings, and those you would put in the DB as user customizable settings. The former are meant to be changed by developers and sys admins, and the latter by website users. In my opinion settings module changes are

Re: Which Version of Django

2014-09-30 Thread Muhammad Ahmed
> > Thank you Lachlan Musicman. Be Blessed. -- 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 this

Re: Which Version of Django

2014-09-30 Thread Lachlan Musicman
As to Python, it depends on what is available to you and you feel comfortable with. Either python 2.7.x or 3.3 (or 3.4, which ever is newest) should be fine. cheers L. On 30 September 2014 16:26, Lachlan Musicman wrote: > Muhammad, > > Yes 1.7 is considered stable and is the

Re: Which Version of Django

2014-09-30 Thread Lachlan Musicman
Muhammad, Yes 1.7 is considered stable and is the best place to start. Cheers L. On 30 September 2014 16:21, Muhammad Ahmed wrote: > Hi, > > I am learning Django by using version 1.4 and I have completed first 4 > introductory lessons. > > However, I see that newest

Which Version of Django

2014-09-30 Thread Muhammad Ahmed
Hi, I am learning Django by using version 1.4 and I have completed first 4 introductory lessons . However, I see that newest Django version is 1.7 and I feel that I am using an outdated version. Being a newbie, I would like to ask