Help! I begginer...

2022-04-26 Thread Ricardo Pereira de Azevedo
Error: File "C:\Users\tecnico.ricardo\PycharmProjects\pythonProject01\venv01\lib\site-packages\django\db\models\sql\query.py", line 11, in from collections import Counter, Iterator, Mapping, OrderedDict ImportError: cannot import name 'Iterator' from 'collections'

Re: django.db.models.signals

2020-09-20 Thread Ricardo Daniel Quiroga
d37-aeca-bc12dfd79602n%40googlegroups.com?utm_medium=email_source=footer> > . > -- Ricardo Daniel Quiroga -- 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 i

Re: Django queryset result and mysql query are wrong after updating from 3.0.2 to 3.0.3

2020-02-19 Thread Ricardo H
Hi Simon, It was ok on 2.2.6, only on 3.0.3 it fails. I use BigIntegerField because I use it for some calculations after that, but even if I try with DurationField it doens't assert right. Definitely must be caused by this patch, if I can't find another solution, where and how should I

Django queryset result and mysql query are wrong after updating from 3.0.2 to 3.0.3

2020-02-19 Thread Ricardo H
Hello, after I updated django from 3.0.2 to 3.0.3 the result of the following code has changed when using a MySQL database. It produces a wrong sql query and also the wrong result for "*end_total_time"* attribute. Is this a bug ? also is there any other way to get the wright result using 3.0.3

Re: Display ManyToManyField value or a select_related query in an html object list

2019-06-24 Thread Ricardo Daniel Quiroga
utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Trying to filter out choices in a form based on the logged in user.

2019-02-09 Thread Ricardo Cataldi
You van create this property on your model, andam the init would bem applied to your form Em sáb, 9 de fev de 2019 13:15, GavinB841 Hi Ricardo, > > Really appreciate your reply, I am struggling to understand where I would > create this property as I am quite new to Django and haven

RE: E-commerce with Django framework

2019-02-09 Thread Ricardo Cataldi
Regarding your first question, try the Oscar e-commerce app and see if it suits you. From: django-users@googlegroups.com On Behalf Of kibirige Gerald Joseph Sent: sábado, 9 de fevereiro de 2019 11:58 To: django-users@googlegroups.com Subject: Re: E-commerce with Django framework I

RE: Trying to filter out choices in a form based on the logged in user.

2019-02-09 Thread Ricardo Cataldi
Hello there Galvin, You can create properties on the users and filter the queryset conditioning to the user. It depends on how many categories of user you have and how these users are supposed to be filtered by those teams. For example, if you have a spatial selection based on user

Loading Django views inside template with JQuery

2019-01-22 Thread Ricardo Cataldi
Hy guys, you all right? I have a problem that it seems not to be any answer in Stack Overflow. I need to load three views inside a template, and i decided to do that based on html tags and JQuery. The bellow image shows how the front end will look like: [image: imagem_tab.png] What happens

Re: PROBLEM 2

2018-12-04 Thread Ricardo Daniel Quiroga
om/d/msgid/django-users/6ac1daf3-59d8-4971-ba15-5214ed3cfbb7%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/6ac1daf3-59d8-4971-ba15-5214ed3cfbb7%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > --

Re: username on URL with Class Based Views

2018-09-13 Thread Ricardo Cataldi
Nice! Thanks a lot! On Thu, Sep 13, 2018 at 8:45 AM Jason wrote: > return redirect('settings:profile') > > > The issue is this. you're telling Django to hit up that URL, but you > don't specify the username for that. > > Something like this would be required: return >

Re: Start Gunicorn on boot

2017-10-20 Thread Ricardo Daniel Quiroga
0-9cdb-16ce326d4e13%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you are subscribed to the Google Groups "Django users"

Re: setup virtualhost right way

2016-11-16 Thread Ricardo Prado
Apache2 processes uses 98 or 99% CPU Usage Em quarta-feira, 16 de novembro de 2016 08:00:09 UTC-2, Antonis Christofides escreveu: > > Also note that the WSGI* directives should probably go inside the > block. > > Antonis Christofideshttp://djangodeployment.com > > On 2016

Re: setup virtualhost right way

2016-11-16 Thread Ricardo Prado
> On 2016-11-16 11:11, Ricardo Prado wrote: > > Hi! > > After many google searchs and forum I can't get a real idea about > virtualhost setup for django apps. > I'm using this setup above but my CPU Usage is 99% very high. Please > someone can explain to me the right way set

Re: Basic configuration for running under Apache

2016-11-16 Thread Ricardo Prado
sample configuration WSGIDaemonProcess framework python-path=/mnt/g/Python/osvaldo/framework/:/mnt/g/Python/osvaldo/framework/lib/python2.7/site-packages WSGIProcessGroup framework WSGIScriptAlias / /mnt/g/Python/osvaldo/framework/framework/wsgi.py ServerName 127.0.0.2

setup virtualhost right way

2016-11-16 Thread Ricardo Prado
Hi! After many google searchs and forum I can't get a real idea about virtualhost setup for django apps. I'm using this setup above but my CPU Usage is 99% very high. Please someone can explain to me the right way setup vhost? I'm using Linux Ubuntu 14.04 WSGIDaemonProcess framework

Re: Forbidden fix

2016-10-14 Thread Ricardo Prado
Hi Mike! Are you using SSL certificate? What's your SO? Ubuntu, Debian, Win? Please get apache log, you can found this in typing: cat /etc/var/log/apache2/error.log (if ubuntu or debian) and type this an copy and past the permission: stat -c "%n %a" /substance/wsds/7291 check in octal

Re: django 1.10.2 mysql 5.6.34 which connector?

2016-10-13 Thread Ricardo Prado
First you can install python tools and other librarys If you using Ubuntu or Debian, check this steps sudo apt-get install python-setuptools apache2 libapache2-mod-wsgi sudo apt-get install python-pip sudo apt-get install *python-dev libmysqlclient-dev* Don't use 'ENGINE':

Slow first request django

2016-10-13 Thread Ricardo Prado
Hi Guys Someone can explain me the right way do create a virtualhost with threads and proccess? my first request is very slow between 5 to 10 seconds. I'm using ubuntu 14.04 with apache 2.4 Thanks ServerName 127.0.0.2 ServerAlias ahora.local WSGIDaemonProcess framework processes=5 threads=1

Re: Forbidden fix

2016-10-13 Thread Ricardo Prado
Can You send an image or log about this problem? Check virtualhost, APACHE 2.2 - use in dir "Allow All" APACHE 2.4 - use "Require All Grant" Em quinta-feira, 13 de outubro de 2016 04:47:58 UTC-3, Mike Dewhirst escreveu: > > I have two similar servers behaving differently. This is the

quasi-distributed system sharing data in django

2016-10-05 Thread Ricardo Pascal
is: should I keep using the auto-increment id from django, or instead use some uuid as pk? Also, any better idea on how to implement this? Tips, unforeseen problems or any rant about that matter will be appreciated. Thanks in advance, -- Att. Ricardo Pascal -- You received this message because

Re: django-admin commands, diango 1.10 with python 2 & python 3 on windows installed

2016-09-27 Thread Ricardo Daniel Quiroga
receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.g

Re: Hello - need help on accessing current user in django forms.

2016-09-27 Thread Ricardo Daniel Quiroga
e.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/f98a65ca-57da-4ec7-a2f4-d2a79f3929d2%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f98a65ca-57da-4ec7-a2f4-d2a79f3929d2%40googlegroups.com?u

Re: Package a virtualenv to deploy across multiple systems?

2016-09-22 Thread Ricardo Daniel Quiroga
groups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: error in installing django[argon2] -regarding

2016-08-30 Thread Ricardo Daniel Quiroga
ll_eggs > return self.build_and_install(setup_script, setup_base) > File > "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", > line 1101, in build_and_install > self.run_setup(setup_script, setup_base, args) > File > "/usr/

Re: Curl PUT Request With JWT Authorization Header

2016-08-23 Thread Ricardo Daniel Quiroga
e.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/676040dc-a7fc-4ca8-96ce-8fd09559ab87%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/676040dc-a7fc-4ca8-96ce-8fd09559ab87%40googlegroups.com?utm_me

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

2016-07-13 Thread Ricardo Daniel Quiroga
s. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b6c6c51e-c8c5-4c53-9d2b-39d6c3adf37d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b6c6c51e-c8c5-4c53-9d2b-39d6c3adf37d%40googlegroups.com?utm_medium=email_source=fo

Re: How can i add my django project to Bitbucket ?

2016-07-05 Thread Ricardo Daniel Quiroga
correction $ git remote add origin g...@bitbucket.org:[MyUSER]/[ProyectName].git 2016-07-05 10:38 GMT-03:00 Ricardo Daniel Quiroga <l2radamant...@gmail.com>: > > $ cd myproject > $ git init > $ touch README.md > $ git add . > $ git commit -m 'first commit' > $ git re

Re: How can i add my django project to Bitbucket ?

2016-07-05 Thread Ricardo Daniel Quiroga
le.com > <https://groups.google.com/d/msgid/django-users/4018e03a-c861-fde2-3ed0-60c34d01c55c%40bristle.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you

the Django test client - https://docs.djangoproject.com/en/1.9/intro/tutorial05/#the-django-test-client

2016-07-02 Thread Ricardo Valério
*I'm following the official tutorial...number 5 about testing... * *https://docs.djangoproject.com/en/1.9/intro/tutorial05/#the-django-test-client * *What am I doing wrong here? * *Thanks for the help in

Re: Contribute to Django - Python 3 or Python 2

2016-06-30 Thread Ricardo Daniel Quiroga
https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a0539448-0019-40a2-b732-e2c44799877b%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a0539448-0019-40a2-b732-e2c44799877b%4

Re: Real time change color website

2016-06-30 Thread Ricardo Daniel Quiroga
/groups.google.com/d/msgid/django-users/59825349-ba60-4274-8a58-22e3c883e1f3%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/59825349-ba60-4274-8a58-22e3c883e1f3%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://group

Re: Django suit and Static files not working in Django 1.6

2016-06-06 Thread Ricardo Daniel Quiroga
oup/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/ee2b40b1-0716-4f5b-b4f1-8f35a60d54f6%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/ee2b40b1-0716-4f5b-b4f1-8f35a60d54f6%40googlegroups.com?utm_medium

Re: how to upload file with pjango

2016-06-01 Thread Ricardo Daniel Quiroga
gle.com/d/msgid/django-users/f68770a9-58ae-4cf3-9893-c8793b192fa1%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/f68770a9-58ae-4cf3-9893-c8793b192fa1%40googlegroups.com?utm_medium=email_source=footer> >>> . >>> For more options, visit https://

Re: UpdateView not saved

2016-05-27 Thread Ricardo Daniel Quiroga
the web visit > https://groups.google.com/d/msgid/django-users/968faf01-3b6b-43d8-8c98-d1555d48ee4d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/968faf01-3b6b-43d8-8c98-d1555d48ee4d%40googlegroups.com?utm_medium=email_source=footer> > . > For more options,

Re: how to upload file with pjango

2016-05-27 Thread Ricardo Daniel Quiroga
68770a9-58ae-4cf3-9893-c8793b192fa1%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you are subscribed to the Google Groups "Django users"

Re: multi-select the items from drop down list and save them in database.

2016-05-10 Thread Ricardo Daniel Quiroga
a09dc%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/691507a3-c3e8-4f69-b8d3-c6dad72a09dc%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received th

Re: How to access selected options from a select list to show them in a table ?

2016-05-06 Thread Ricardo Daniel Quiroga
ogle.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/e3502e4e-c58b-46e7-8201-9b07edcca7dc%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/e3502e4e-c58b-46e7-8201-9b07edcca7dc%40googlegroups.com?utm_

CKEditor

2016-04-11 Thread Ricardo Felipe Ríos Higueras
Buenas. Estoy usando ckeditor en django. Todo bien, lo instalé bien y por parte del admin funciona excelente. Lo que quiero es llevar esa herramienta a un form. Crear un formulario que contenga ckeditor. Espero me entiendan y puedan ayudarme, ya que, he intentado de muchas formas y nada me

Help me! Error in Django. Migrate mysql, datetime and more.

2016-03-28 Thread Ricardo Felipe Ríos Higueras
Hi. I am learning Django, but, I have major problems because I don´t know much about python/Django. Here this problem: *problem one : the databases backend does not accept 0 as a ' valueError: The databases backend does not accept 0 as value for AutoField.* *problem two: TypeError: int()

RE: How to install Django on Windows article

2016-01-29 Thread Ricardo Daniel Quiroga
Install python and add to path In cmd > pip install django. -Mensaje original- De: Carlos Andre Enviado: 29/01/2016 11:36 Para: django-users@googlegroups.com Asunto: Re: How to install Django on Windows article 1º download a version django (admint who python intaled); 2º unzip the

Re: Django 1.9.1/python3.4 install errors

2016-01-09 Thread Ricardo Daniel Quiroga
ubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion

Re: Foreign key in sqlite3

2015-10-02 Thread Ricardo Daniel Quiroga
om/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CACczBUKyATKexddYKEMhKyg4SpywuyZ7uMxDK5HMXxadQV7vLg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CACczBUKyATKexddYKEMhKyg4SpywuyZ7uMxDK5HMXxadQV7v

RE: django on Windows

2015-10-01 Thread Ricardo Daniel Quiroga
The Best way is install activepython use 32bits for more compatibility with any modules and open cmd.exe pip install -upgrade pip pip install django sorry for bad english . I speak spanish :( -Mensaje original- De: Robin Lery Enviado: 01/10/2015 09:23 Para:

Re: Django and Wiki

2015-09-03 Thread Ricardo Vitorino
Tom is right: https://builtwith.com/?https%3a%2f%2fcode.djangoproject.com%2fwiki Best regards Ricardo Vitorino On Thursday, 3 September 2015 13:04:39 UTC+1, Tom Evans wrote: > > On Thu, Sep 3, 2015 at 12:01 PM, Нина Белявская <nina...@gmail.com > > wrote: > > Is anywher

RE: Necesito ayuda para poner a funcionar django el tutorial no loentiendo

2015-02-17 Thread Ricardo Daniel Quiroga
Primero creas un proyecto en un directorio con el comando (abri la consola seleciona el directorio donde trabajar y) ejecuta django-admin startproject miproyecto se crea una carpeta con lo necesario para tu proyecto django en la carpeta ejecutas python manage.py runserver y abres el navegador

Re: Implementing a grammar checker on the web

2015-02-16 Thread Ricardo Daniel Quiroga
security disable CORS, and add CSRF tokken verification.. if only going to implement the grammar interpreter is way too django uses something simpler like bottle or flask 2015-02-16 16:02 GMT-03:00 Ricardo Daniel Quiroga <l2radamant...@gmail.com>: > Hi > > html + textarea + jav

Re: Implementing a grammar checker on the web

2015-02-16 Thread Ricardo Daniel Quiroga
e.com/d/msgid/django-users/b7817512-cdad-460d-b0b9-a643e303d490%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b7817512-cdad-460d-b0b9-a643e303d490%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- R

Re: 求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-11 Thread Ricardo L. Dani
actually, or use 'mysite.viess.hello' on the second argument of your url definition 2014-11-11 13:07 GMT-02:00 Ricardo L. Dani <ricardod...@gmail.com>: > missing > > from .views import hello > > on urls.py > > or use 'hello' as string > > 2014-11-11 11:54 GMT

Re: 求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-11 Thread Ricardo L. Dani
com > <https://groups.google.com/d/msgid/django-users/8cf2f5d7-2906-4dad-88ab-0d6bd290008c%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- []`s Ricardo L. Dani http://about.me/ricardodani -- Yo

Re: update() on queryset django 1.7.1 not functional

2014-11-10 Thread Ricardo L. Dani
roups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/83c6c0e3-592e-4357-8556-797eff6e261d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/83c6c0e3

Re: static files in Django 1.7 ; Anything was change?

2014-09-15 Thread Ricardo Daniel Quiroga
p at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAF1jwZEsN8_fWq_SjhWZ-yTt-%2BXnQKZ1gTqgSJnoGw7EseXGgQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAF1jwZEsN8_fWq_SjhWZ-yTt-%2BXnQKZ1gTq

Re: Problem in the Tutorial 01

2014-07-27 Thread Ricardo Daniel Quiroga
this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d80dc547-6194-4398-81d9-e93db01ca9cf%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/d80dc547-6194-4398-81d9-e93db01ca9cf%40googlegroups.com?utm_medium=email_source=footer

Re: OO in Django

2014-06-23 Thread Ricardo Daniel Quiroga
1%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga - L2Radamanthys Msn: l2radamant...@gmail.com ri

Different user login after session was closed redirects to previous user last page

2013-12-12 Thread Ricardo Tubio-Pardavila
I am currently developing a Django website and I am using django.contrib.auth and django-security-session for closing user sessions automatically. In case a user leaves its session

Re: Does not generate the password hash my User

2013-12-09 Thread Ricardo Kamada
Thanks for the reply Jérôme. Know what it says but said if I just edit the save of the form () i lose the login form because the save () the model User.objects.create_user (self.email, self.email, self.password) Ricardo Ricardo 2013/12/9 Jérôme Thiard <jerome.thi...@gmail.com> > Th

Re: Does not generate the password hash my User

2013-12-05 Thread Ricardo
Ok Em quinta-feira, 5 de dezembro de 2013 17h54min44s UTC-2, Ricardo escreveu: > > I have a model "Cliente" and in it a field "password". > In forms.py file, I am using ModelForm, but put in the password field > Password = forms.CharField (widget = forms.Passw

Re: Does not generate the password hash my User

2013-12-05 Thread Ricardo
Hi Thomas. Even entering rende_value = False does not. The password keeps popping up as text. did not quite understand how that password1 is inserted before the check password2. I could not see this problem. Em quinta-feira, 5 de dezembro de 2013 17h54min44s UTC-2, Ricardo escreveu: > >

Does not generate the password hash my User

2013-12-05 Thread Ricardo Kamada
19 does not generate the password hash, but the readable password Ricardo -- 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.co

Re: Signal does not run

2013-11-18 Thread Ricardo
resolved. I was not recording the other signs, for this reason he was never called. transaction_canceled.connect(on_canceled) transaction_waiting.connect(on_waiting) ... Thanks Em segunda-feira, 18 de novembro de 2013 15h38min54s UTC-2, Ricardo escreveu: > > Hi. I have a problem in the

Signal does not run

2013-11-18 Thread Ricardo Kamada
'reference'] print "HELLO WORD" # ... transaction_paid.connect(on_paid) Ricardo -- 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-user

notifications PagSeguro

2013-11-15 Thread Ricardo Kamada
me? https://github.com/mstrcnvs/djpg http://pastebin.com/29NMmbgn Ricardo -- 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-user

Re: clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Ricardo Kamada
I got :) was missing url url (r '^ list / (? P \ d +) / $', 'evento.views.lista', name = 'list') Thanks to all Ricardo 2013/11/6 Ricardo <ricardokam...@gmail.com> > Hi > the file full url like this > http://pastebin.com/ztF8VDET > I just try to pass the id as said but

Re: clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Ricardo
question, which makes it hard to answer. > > At a guess, the url specifies a %d parameter, you are passing it an > object. Pass it self.evento.id > > Cheers > > Tom > > On Wed, Nov 6, 2013 at 5:15 PM, Ricardo Kamada > <ricard...@gmail.com> > wrote: >

clicking the list_display link open a new page with the result of my queryset

2013-11-06 Thread Ricardo Kamada
not understand why this error because I call the view and pass the argument to the filter queryset but I get this error. Ricardo -- 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, sen

list of presence in django admin

2013-11-05 Thread Ricardo Kamada
admin ...? Would have a way? Ricardo -- 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 group,

Re: Call method of the session template

2013-10-11 Thread Ricardo Kamada
return if self._items_dict[product.pk].quantity <= 1: # There's only 1 product left so we drop it del self._items_dict[product.pk] else: self._items_dict[product.pk].quantity -= 1 self.session.modified = True Ricardo 2013/10/11 Daniel Rosem

Re: Call method of the session template

2013-10-10 Thread Ricardo Kamada
I tried numerous times ... but if I put that way {% 'item.remove_single' item.product %} or {% 'item.remove_single' product= item.product %} blames this error " Invalid block tag: ''item.remove_single'', expected 'empty' ou 'endfor' " Ricardo 2013/10/10 Bill Freeman <ke1g

Call method of the session template

2013-10-10 Thread Ricardo
Hi, I'm using django carton to shopping cart. I am not able to call the method remove_single in my template. on line 15 I tried several ways but I can not. If you can help carton ---> http://pastebin.com/X4FtHRZU template ---> http://pastebin.com/0AJYFB1x thank you Ricardo -

Re: Django-cart. How to run method add_to_cart?

2013-10-03 Thread Ricardo Kamada
com> escreveu: > Hi Ricardo, > > well this is a question that needs a good explanation. I try to give you > some hints about what you need to research about: > > a. You need to send data to the Django server through a POST view. This is > a HTTP "verb", tha

Re: Django-cart. How to run method add_to_cart?

2013-10-01 Thread Ricardo Kamada
you already helped me a lot =) Leonardo looks just http://dpaste.com/1402408/ On line 20 I pass a value of fixed amount in the template. How would get the amount in input dynamically? Abs [] s Ricardo 2013/10/1 Leonardo Giordani <giordani.leona...@gmail.com> > Ricardo, > > I th

Re: Django-cart. How to run method add_to_cart?

2013-10-01 Thread Ricardo Kamada
am calling the method like this: Buy and URLs: url (r '^ products / buy / $', 'cart.views.add_to_cart', name = 'add_to_cart') You say that to pass arguments id and quantity that url? Ricardo 2013/10/1 Leonardo Giordani <giordani.leona...@gmail.com> > You have to implement an URL d

Re: Django-cart. How to run method add_to_cart?

2013-09-30 Thread Ricardo
Hi, I have this same problem. I'm looking for answer everywhere. enemybass could implement? If someone can help me with this [] s Em quarta-feira, 26 de setembro de 2012 05h33min24s UTC-3, enemybass escreveu: > > https://github.com/bmentges/django-cart > > *I'm* a total *newbie* to *Django.

Re: Missing files on a new project

2013-01-28 Thread Ricardo Diaz
Well, i'm following a video tutorial -> this guy is using Django 1.4 and when he uses startmanager on shell Django creates all of those files on the main folder. Check it about 3:11 https://www.youtube.com/watch?v=fVNL5MwskiQ That is the reason why I'm asking for help. -- You received this

Missing files on a new project

2013-01-27 Thread Ricardo Diaz
Hi, I'm pretty noob with Django. I've readed a few pages of the Django-book and just started to create my own projects. When I try to create a new project using django-admin startproject demo, it just creates 2 things project l--demo l--manage.py I don't know why it doesn't create the

Re: Upgraded to Django 1.4.1 and now I have one database connection

2012-09-26 Thread Ricardo Grizonic
The subject should be: "Upgraded to Django 1.4.1 and now I have one database connection per thread" sorry for that! :) On Wednesday, 26 September 2012 13:34:13 UTC+2, Ricardo Grizonic wrote: > > Hey everyone, > > I recently upgraded from Django 1.3 to 1.4.1 and now it s

Upgraded to Django 1.4.1 and now I have one database connection

2012-09-26 Thread Ricardo Grizonic
Hey everyone, I recently upgraded from Django 1.3 to 1.4.1 and now it seems that for every new thread, a new database connection to postgresql is created. I'm using: from django.db import connection which, according to the docs, should get a global connection that would be used by all the

Re: Difficulties using generic views (Tutorial 4, Django 1.4)

2012-07-23 Thread Ricardo Cardoso
Oddly, when i started up the server this morning i could now see the polls correctly, while not having changed my code, by accessing http://127.0.0.1:8000/polls. Don't know if Django is prone to such randomness but am happy that it works now. Tested everything, added a view so that

Re: Difficulties using generic views (Tutorial 4, Django 1.4)

2012-07-22 Thread Ricardo Cardoso
/Templates/polls/polls) considering in the error message i get 'polls/poll_list.html' , besides 'index.html'? This seems redundant and i'd like to understand why i would have to. Thanks again for your help. On Thursday, July 19, 2012 12:08:39 AM UTC+1, Ricardo Cardoso wrote: > > I

Difficulties using generic views (Tutorial 4, Django 1.4)

2012-07-18 Thread Ricardo Cardoso
I'm new to django and python, and decided to follow up the available tutorials to get up to speed. These were helpful and got me on my feet but while finishing up the tutorial i hit a major snag. While everything was working properly using custom views, i can't seem to make my app load the

Internationalization Issues

2012-06-22 Thread Ricardo Jacas
Hi Everyone, I'm having a lot of trouble with i18n. My templates don't display all the translations (i've already checked for the "fuzzy" tag). I have no idea what could it be, any thoughts? Anything may help, i've been reading forums for hours. -- lets reign all together -- You received

Re: Is this a bug in django? template_context_processors processed in views without RequestContext context_instance.

2012-06-13 Thread Ricardo L. Dani
Guys, I solved. It's django-debug-toolbar fault. It's does double requests and loads all the context processor :( Thanx 2012/6/13 Ricardo L. Dani <ricardod...@gmail.com> > Hello everyone, > > I'm having a issue with template_context_processors requests and views > that do n

Is this a bug in django? template_context_processors processed in views without RequestContext context_instance.

2012-06-13 Thread Ricardo L. Dani
Hello everyone, I'm having a issue with template_context_processors requests and views that do not use the context processors, i.e. in a render_to_response without use of RequestContext. For example, in my TEMPLATE_CONTEXT_PROCESSORS, as default, I have a

Re: Error 500 instead of 404

2011-11-20 Thread Ricardo F. Teixeira
Solved (!) by creating those template files. Thanks Tomek! On Nov 20, 9:28 am, Tomek Paczkowski wrote: > If you dont have 404.html file, than Django will raise exception that > 404.html is not found. Next, if you dont have 500.html your exception is > generating new exception on

Error 500 instead of 404

2011-11-19 Thread Ricardo F. Teixeira
it gives me an 500... Firstly I thought it was something wrong with my project so I started a new one, with only the following basics options. I can assure you that I only edit those 3 files (views.py, urls.py and settings.py). In settings.py I only change from DEGUG=True to DEBUG=False. ricardo

[geo-django] Best way to capture geo-coordinate of an anonymous user?

2011-08-25 Thread Ricardo L. Dani
Hello everyone, Anyone knows how to capture a geo-coordinate of an anonymous user after his insert your address in an input? Using a google api? Thanks so much -- Ricardo Lapa Dani -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: manage.py dumpdata json storage problem

2011-08-01 Thread Ricardo L. Dani
I found the ticket to this issue (with patchs) https://code.djangoproject.com/ticket/5423 On Mon, Aug 1, 2011 at 9:32 AM, Ricardo L. Dani <ricardod...@gmail.com>wrote: > Hello django-users, > > I'm having problems trying to serialize the data of a postgresql db of my > bu

manage.py dumpdata json storage problem

2011-08-01 Thread Ricardo L. Dani
chs the limit causing a exeption: django.db.utils.DatabaseError: out of memory for query result The question is, somewone knows a way to this command write in the data.json directly or in demand? I believe this is the problem and solution, am I correct? graciously, -- Ricardo Lapa Dani -- You recei

Re: django-admin inspectdb does not detect NULL columns for PostgreSQL database

2011-07-22 Thread Ricardo L. Dani
FYI i fixed that and post a patch in the ticket. Regards On Thu, Jul 21, 2011 at 9:21 AM, Ricardo L. Dani <ricardod...@gmail.com> wrote: > Hi everyone, > > I have the same problem of this ticket from django trac: > https://code.djangoproject.com/ticket/7783 > >

django-admin inspectdb does not detect NULL columns for PostgreSQL database

2011-07-21 Thread Ricardo L. Dani
this patch is applied? Or a other way to solve this problem? Regards -- Ricardo Lapa Dani -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group,

Re: Multiple INNER JOIN without raw SQL

2011-03-18 Thread Ricardo F. Teixeira
that the only option is using raw queries. Ricardo F. Teixeira On Mar 18, 4:52 pm, Jason Culverhouse <ja...@mischievous.org> wrote: > On Mar 18, 2011, at 6:38 AM, Ricardo F. Teixeira wrote: > > > Hi everyone! > > > Without using raw SQL queries how can I make multiple

Multiple INNER JOIN without raw SQL

2011-03-18 Thread Ricardo F. Teixeira
= models.TextField() snapshot = models.TextField() Thanks, Ricardo F. Teixeira -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

Re: Cannot import models.py in views.py

2011-03-17 Thread Ricardo F. Teixeira
Hi Shaw and Bill, Yeap, I already have done that with no luck. ricardo@vulcanus:~/webservices/reviewsapp$ python views.py Traceback (most recent call last): File "views.py", line 13, in from webservices.reviewsapp.models import * ImportError: No module named webservices.reviews

Cannot import models.py in views.py

2011-03-17 Thread Ricardo F. Teixeira
Hi list : ) I'm having a strange problem. I'm developing a webservice that communicate with a database. In my views.py file I'm trying to import models.py to manage some queries but I got an error in views.py when I import models.py. ricardo@vulcanus:~/webservices/reviewsapp$ python views.py

Re: foreign key to self in sqllite3

2011-03-05 Thread Ricardo L. Dani
this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more option

Re: RadioSelect widget in Django 1.1 using Model Form

2010-11-03 Thread Ricardo L. Dani
Thanks Daniel, Now it makes sense. Thank you again 2010/11/3 Daniel Roseman <dan...@roseman.org.uk> > On Nov 3, 3:03 pm, "Ricardo L. Dani" <ricardod...@gmail.com> wrote: > > Hello, > > > > I'm working with an project using django-cms a

RadioSelect widget in Django 1.1 using Model Form

2010-11-03 Thread Ricardo L. Dani
:/ -- Ricardo Lapa Dani Graduando em Ciência da Computação Universidade Federal de Ouro Preto -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group,

Re: Many to many ajax widget for admin

2010-08-02 Thread Carlos Ricardo Santos
; > > > But I haven't seen anything in their documentation about support for > > > intermediary models like my Authorship model. > > > > > Has anyone had this problem and found a solution for it? > > > > > - Sævar > > -- > You received this

Re: where is my os.path

2010-08-02 Thread Carlos Ricardo Santos
.google.com/group/django-users?hl=en. > > -- Cumprimentos, Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this grou

Problem with static files (MEDIA_URL and MEDIA_ROOT)

2010-06-27 Thread Denis Ricardo
Hello people! I am having any problems with static files (images, CSS) in Django. I configured the MEDIA_URL and MEDIA_ROOT in settings.py and when I execute the server and I go see the webpage, the static files doesn't are encountered (the page stay without anything). Screen Shot of my page:

  1   2   >