Re: Generate different querysets depending of the website language

2016-03-26 Thread Daniel Chimeno
Hello, If you are able to change the schema I would suggest you to use modeltranslation [https://github.com/deschler/django-modeltranslation], also the source code of that app can help you in order to take an specific approach to your project. About the URL's, if you use i18urls, it has

Re: Django tutorial part 3 - question_id vs question.id

2016-03-26 Thread Acetone
Cool, I can try those to see how it works. Thank you. On Saturday, March 26, 2016 at 7:04:13 AM UTC-7, jorr...@gmail.com wrote: > > I believe Django lets you access the pk field of a table (which is created > automatically unless you define it explicitly on your model) in multiple > ways:

Deploy Django to Heroku - Push rejected

2016-03-26 Thread Bernardo Garcia
I am trying deploy my Django application to heroku and I get an error when I perform git push heroku master command My structure directory is the following And the content of requirements/production.txt is: -r base.txt gunicorn==19.4.5

Generate different querysets depending of the website language

2016-03-26 Thread Mathieu Poussin
Hello, I have an issue, I am creating a website that will be available in many languages, sharing the same database. Most models have a "language" attribute that is the 2 letters from the language code (en, es, fr, etc.). I am trying to find a way to show the correct content per language. I

Re: django python devs hang out @HanaHaus Palo Alto CA

2016-03-26 Thread Leandro Barbosa
Do you need help with any project? Em sexta-feira, 25 de março de 2016 20:25:52 UTC-3, Manfred Neustifter escreveu: > > any django python devs wanna hang out @HanaHaus Palo Alto CA > shoot us a msg > -- You received this message because you are subscribed to the Google Groups "Django users"

Django tutorial part 3 - question_id vs question.id

2016-03-26 Thread jorrit787
I believe Django lets you access the pk field of a table (which is created automatically unless you define it explicitly on your model) in multiple ways: self.pk, self.id, and self._id. Someone correct me if I'm wrong. -- You received this message because you are subscribed to the Google

Django tutorial part 3 - question_id vs question.id

2016-03-26 Thread Acetone
Hello, In trying to update my templates after I successfully finished part 3 of the tutorial, I found that I could write something like You're looking at the results of question {{ question.id }}: "{{ question.question_text }}" and get: You're looking at the results of question 1: "What's up?"

Re: Django Forms vs Angularjs

2016-03-26 Thread Daniel Hepper
Fabio, if you are using Django 1.9, you can use the newly introduced disabled attribute on forms.Field, see https://docs.djangoproject.com/ja/1.9/ref/forms/fields/#disabled On Tuesday, March 22, 2016 at 3:36:34 PM UTC+1, Fabio Caritas Barrionuevo da Luz wrote: > > >

Re: Simple subprocess help

2016-03-26 Thread Daniel Hepper
If I understand you correctly, you want to pipe the value of request.POST['post'] to the program run_pipeline.sh and store the output in a field of your instance. You are calling subprocess.Popen incorrectly. It should be: p = subprocess.Popen(['/path/to/run_pipeline.sh'],