Question about run bash scripts on Django-Python

2015-04-20 Thread David Pineda
Hello I'm a begginner in django and i need to work with a form (send a file) and when the file it's ok run a bash scripts to process that. I investigate and the common recomendation si use 'subprocess' an 'sys' So, i can set the path with de bash app, but the system only recognize the 'echo' comm

Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread David Pineda
Hello, i'm beginning to learn python+django and i'm doing that handbook https://github.com/jacobian/djangobook.com/blob/master/chapter03.rst In the example whit datetime i have a problem when i active the utf-8 encondig because i use á,ñ, etc (i'm chilean and we talk in spanish) So, when i deacti

Re: Encoding UTF 8 (añ,etc) and datetime function

2014-01-14 Thread David Pineda
lib64/python2.7/site-packages/wx-2.8-gtk2-unicode'] Server time: Tue, 14 Jan 2014 12:12:55 -0600 The code whituot 'á'-->a from django.http import Http404, HttpResponse import datetime # coding: utf-8 def hello(request): return HttpResponse("Hello world") def home_

Extends template and receive 'IsADirectoryError'

2016-12-08 Thread David Pineda
Hello guys. I have a template inside app, and the base template in files/templates folder. This is the dir tree : . ├── apps │ └── user_profile │ ├── migrations │ ├── __pycache__ │ └── templates ├── broker │ ├── __pycache__ │ └── settings │ └── __pycache__ └── file

Django + Ckeditor

2016-01-02 Thread David Pineda
Hello folks! Happy new year! I have a question about ckeditor on django. I configured ok and use ckeditor field on my project model. But when i show the content on a template view, the images only show the [img] tag and the path to file. I think it can be a filter but on the official site there ar

Script para automatizar herramientas de desarrollo (automate-dev-tools)

2016-03-21 Thread David Pineda
Comparto script de bash qoue les permitirá automatizar las herramientas de desarrollo de django, https://gist.github.com/dpineiden/4c4a20a9cf0eabbe1754 Se ejecuta: source ~/automate_Django_dev.sh -f="PROJECT_FOLDER" -p='project' -s -g -rp -d Corre: -shell -server -gulp -git -sphinx-autodocumen