Re: my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2014-11-22 Thread Andreas Ka
Thanks for your help. I really think there is something wrong with that part of the tutorial. A small thing, but wrong. > Check your settings file, > are there two TEMPLATE_DIRS variables defined? Nope. This is where I placed it: ... import os BASE_DIR = os.path.dirname(os.path.dirname(__fil

Re: is it worth going for version 1.6 for commertial project

2014-11-22 Thread Tom Lockhart
On Nov 22, 2014, at 4:53 AM, Krishnakant Mane wrote: > Hello all, > I have been looking for some good discussion on this issue. > i see there is not much difference between 1.7 and 1.6 as far as my > requirement goes. > I have gone through the official docs for both in a kind of rappid specific

Obtaining content from Git

2014-11-22 Thread martin f krafft
Hello, we have a Django project with a few pages that come from Git. Currently, Apache rewrite rules serve those files statically (and they make use of the same template/CSS as Django does, so the user does not actually notice), and it's a massive hack and pain to keep up-to-date. Hence I was thi

Re: Is it wrong to disable a lot of the core django features?

2014-11-22 Thread John Rodkey
Gabriel, How would you store groups for each company within the default "groups" database? Our current database design is Company CustomUser belongs to Company Roles belongs to Company (replacing default "Groups" with "Roles") Roles has many Authorities (replacing default "Permissions" with "A

Re: django on ubuntu

2014-11-22 Thread Tim Chase
On 2014-11-22 18:01, John wrote: > read up on virtualenv and do everything in a virtual python > environment. I can't second John's advice strongly enough. I started programming in Python over a decade ago and just finally broke down and investigated virtualenv/virtualenvwrapper ~2yrs ago and it

Re: django on ubuntu

2014-11-22 Thread Abhishek Batra
Hey Mosharof, Two links I'd like to pass on: 1. https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn 2. http://www.jeffknupp.com/blog/2013/12/18/starting-a-django-16-project-the-right-way/ Thanks, Abhishek On Saturday, November 2

Re: Image input missing from POST request

2014-11-22 Thread Abhishek Batra
Hey Donarb, Input fields are not required to be inside form elements, so long as they specify the form attribute as I have done. Check the form attribute here for reference. Moreover, I have other input fields as well

Re: django on ubuntu

2014-11-22 Thread John
Mosharof The standard Django tutorial works fine on Ubuntu. I would advise you, though, to read up on virtualenv and do everything in a virtual python environment. This may avoid a lot of pain with dependencies and is good practice in any case. John On 22/11/14 15:42, Mosharof sabu wrote: > hi

Re: DecimalField returns 'This value must be a decimal number' when blank

2014-11-22 Thread elcaiaimar
Hi Collin I'm using postgresql db, I' ve attached my views, forms and models. I' ve thought to do the ModelForm when I solve this problem, thanks for your advice! Thank you very much! El domingo, 16 de noviembre de 2014 18:51:43 UTC+1, elcaiaimar escribió: > > Hello everybody, I've a problem

Re: Image input missing from POST request

2014-11-22 Thread donarb
On Friday, November 21, 2014 7:56:54 PM UTC-8, Abhishek Batra wrote: > > Hi, > > This is probably not a Django issue, but just trying my luck. > > I have an input field corresponding to a Django ImageField in a Django > template. Rendered, the HTML looks like: > >method="post" > id=

Image input missing from POST request

2014-11-22 Thread Abhishek Batra
Hi, This is probably not a Django issue, but just trying my luck. I have an input field corresponding to a Django ImageField in a Django template. Rendered, the HTML looks like: ... (other input fields and elements) The corresponding View is an UpdateView. I found request.FILES to be empty a

django on ubuntu

2014-11-22 Thread Mosharof sabu
hi i a going to start django on ubuntu . can any one please give me some link of good tutorial of django on ubuntu (from installation to advance ). -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

is it worth going for version 1.6 for commertial project

2014-11-22 Thread Krishnakant Mane
Hello all, I have been looking for some good discussion on this issue. i see there is not much difference between 1.7 and 1.6 as far as my requirement goes. I have gone through the official docs for both in a kind of rappid specific way. As it is I am not going to use ORM at all. I am mainly in

Re: please help: problem saving strings to the database

2014-11-22 Thread Sabine Maennel
Thank you Szymon, Tiago just got it: I had a misplaced comma that caused the error. Am Freitag, 21. November 2014 19:21:51 UTC+1 schrieb Szymon Krzemiński: > > Looks like the record is stored as a one-element tuple. Don't know what's > the source of this behaviour yet, though. > > W dniu piątek,

Re: please help: problem saving strings to the database

2014-11-22 Thread Sabine Maennel
Thank you Tiago, you got it. It was the Comma. So grateful to you. I searched for hours and did not catch this simple reason, that resulted form my copy and paste! Am Freitag, 21. November 2014 15:02:20 UTC+1 schrieb Tiago Almeida: > > Check if you have a comma after the string. > > log = Class

Re: Is it wrong to disable a lot of the core django features?

2014-11-22 Thread Gabriel - Iulian Dumbrava
Hello! I would suggest to not drop the use of the built in auth module. You have many template and view tags, decorators, etc which are very helpful. You may, for example create a group for each company/branch then add each user to their respective groups upon registration. Each groups may hav

not thread-safe function can break a django application?

2014-11-22 Thread Fabio C. Barrionuevo da Luz
I was trying to answer a question in a Brazilian forum about django. one of the proposed solutions utilized the function locale.setlocale() from locale module. according to the documentation[1] locale.setlocale() function is not thread-safe the question is: not thread-safe function can break a