Re: Django Custom Models

2016-07-13 Thread Bruno A.
Hi, If you find yourself doing that a lot in your project, yes a custom manager is the way to go. Keep in mind that you can more then one manager attached to your model, but the order matters . For the admin purposes,

Re: install of django 1.9

2016-07-13 Thread ludovic coues
Assuming you have created a virtual env with `virtualenv myvenv` * activate the virtualenv: `source myvenv/bin/activate` * install django: `pip install django` * create a django project: `djang-admin startproject myproject` * move into that project: `cd myproject` * create an app for your pr

Re: django_bootstrap_calendar and admin backend

2016-07-13 Thread ludovic coues
Code would be more useful to understand what is happening. Or you can use the django test client [1] to see what the view is returning as context. The list of event might be empty. [1] https://docs.djangoproject.com/en/1.9/intro/tutorial05/#the-django-test-client 2016-07-12 16:49 GMT+02:00 Cron

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-13 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 8:39 PM, Lachlan Musicman wrote: > There's a ticket for this in the tracker iirc, but I can't find it now. I > think the reason is because that's the name of the DB field - it's not > localizable (in so much as we don't localize db field names). > That was mi recollection

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-13 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 2:42 PM, Fellipe Henrique wrote: > On Tue, Jul 12, 2016 at 1:52 PM, Ramiro Morales wrote: > >> Where the 'Conjunto de dados' seen in the screenshot title comes from? Is >> the code you posted actually in sync with it? > > > Sorry about that, I take the screenshot before

[no subject]

2016-07-13 Thread Tim
-- | Tim Dyer | Sounds Like Design | 07739048398 | t...@soundslikedesign.co.uk -- 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...@googlegr

Django migration to postgres - 502 badgateway error in ngnix

2016-07-13 Thread khaleela . visolve
Am migrating to postgres. My local configuration is runnign without ngnix and my complete migration porcess is working fine in my development machine. During deployment to production, where the ngnix is configured to run django - I get the error as: "upstream prematurely closed connection whi

Re: How do I fetch table values in pdf using django?

2016-07-13 Thread Ricardo Daniel Quiroga
http://stackoverflow.com/questions/25665/python-module-for-converting-pdf-to-text 2016-07-12 10:19 GMT-03:00 Derek : > Here's a good tutorial: > > > https://assist-software.net/blog/how-create-pdf-files-python-django-application-using-reportlab > > > On Tuesday, 12 July 2016 13:29:00 UTC+2, Asl

Re: How manually, in Django 1.9, determinate all urls in a project without the django-extension`s command show_urls?

2016-07-13 Thread Jani Tiainen
How about just to look at django-extension source code? It's open source after all... On Mon, Jul 4, 2016 at 8:48 AM, Seti Volkylany wrote: > I don`t found answer for Django 1.9 there > http://stackoverflow.com/questions/1275486/django-how-can-i-see-a-list-of-urlpatterns > and there > http://sta

djangoCMS 3.3.1 released

2016-07-13 Thread czpython
Hello all, We've released djangoCMS 3.3.1 Version 3.3.1 fixes dozens of issues with djangoCMS providing additional stability for the 3.3.x milestone. It also offers a few notable improvements to UI/UX for end-users and additional capabilities for project developers. You can read more in our blog

Django PostGis BUG?

2016-07-13 Thread christophesurbier
I'm trying to create my database tables (*python manage.py migrate*) using Postgis. However it fails because the driver try to connect do default database "postgres" which is not my default name. I'm using django==1.8 and psycopg2==2.6.2 If i look the documentation of psycopg ( http://initd.

Re: Newbie question regarding uninstalling Django system-wide.

2016-07-13 Thread Leo
Thanks Mike On Tuesday, July 12, 2016 at 8:03:18 PM UTC-4, Mike Dewhirst wrote: > > On 13/07/2016 1:55 AM, Leo wrote: > > I am learning how to use Django. With my first attempt I did not use a > > virtual environment instead installed Django system-wide. Now I have > > learned to utilize virtua

I am not sure what “: command not found” means when I run virtualenvwrapper mkvirtualenv command

2016-07-13 Thread Leo
I am learning Linux and how to set-up a Django environment for the first time. I am not sure what “: command not found” means when I run virtualenvwrapper commands. Below is the command line sequence: root@intranet-django:/home/lv/# workon root@intranet-django:/home/lv/# mkvirtualenv tem

Easiest way to ajax enable django forms

2016-07-13 Thread J Singh
I want functionality such as add/delete line items to an order , do not want a form resubmit every time an item is added . What is the best way to do this without having to use angular/ react etc -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: django_bootstrap_calendar and admin backend

2016-07-13 Thread Cronos Cto
Hello Ludovic, what part of the code would you like me to post ? -- 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 p

template include for Django 1.8

2016-07-13 Thread Mike Dewhirst
I need to include the contents of a css file in my template [1] The css content needs to exist within and tags so that the pdf output software I'm using can see the styles. I can get the correct effect by copying and pasting the contents of the css file into the template but that w

Re: running django 1.9 problem

Simple way is using virtual environment. In this case version of system is not important. I'm using Mac for coding without any issues. 12 лип. 2016 14:28 "Nicolas Favede" пише: > hi i am a bit used to python i have a mac coming with 2.7.6 version and > install 3.4 that i can use if i call > i in

Re: static files suspicious operation, os error, and list of paths

On Tue, Jul 12, 2016 at 02:36:41PM -0700, Malik Rumi wrote: > Michal, > > > , it looks like somewhere, you're calling ``os.path.join(a, b)``, where > the second argument starts with a slash > > I've tried it both ways. The way I got findstatic to work was by taking off > the leading slash, but so

Re: template include for Django 1.8

On Jul 13, 2016 6:54 PM, "Mike Dewhirst" wrote: > > I need to include the contents of a css file in my template [1] > > The css content needs to exist within and tags so that the pdf output software I'm using can see the styles. > > I can get the correct effect by copying and pasting the content