Re: wrong URL for view function

2019-07-10 Thread Javier Rivera
You need to capture parameters in your path definition if they are part of the url. Something like path('/get_courts//', views.get_courts, name="reg4_getcourts') Best regards, Javier. O 10/07/19 ás 08:57, johnf escribiu: Hi, In my app folder I have a view.py which contains a function "de

Re: NEWBIE

2019-07-09 Thread Javier Rivera
If you have no previous programing experience, a miracle. If you are already proficient with Python two months are enough to get comfortable with Django, but you will likely still be far from mastery. Best regards, Javier. O 09/07/19 ás 11:34, Afotro Ben escribiu: Hello,i am new to programmin

Re: Django Live video streaming from ffserver

2016-05-26 Thread Javier Rivera
You can try to use a proxy. Maybe not the most performance-wise idea in the world, but it could work. You can try this: http://django-http-proxy.readthedocs.io/en/stable/ Best regards, Javier. On 26/05/16 12:38, Jahan Balasubramaniam wrote: Hi I have setup a ffserver which provides live v

Re: looping over dictionaries

2010-02-14 Thread Javier Rivera
Karen Tracey wrote: Now in a template I want to iterate over them as follows: {% for project in projects %} {{ project }} {% for chain in project.chains %} -- {{ chain }} {% endfor %} {% endfor %} I'm usually use the values() property to iteract dictionary values.

Re: Help with math functions...

2010-02-03 Thread Javier Rivera
Shawn Milochik wrote: It doesn't work because an instance of the Decimal object can't be used for mathematical calculations (such as division and multiplication) with floats or integers. AFAIK decimals can be divided and multiplied with integers just fine. They throw an "unsupported operand"

Re: help with Django model and 'choices'

2010-02-03 Thread Javier Rivera
Chris McComas wrote: I tried this, but no luck: new_green.hp_coursepoints = Decimal(new_green.hp_grade) * hp_credithours Decimal can't directly convert floats to decimals. Try: new_green.hp_coursepoints = Decimal(str(new_green.hp_grade)) * hp_credithours or new_green.hp_coursepoints = De

Re: Django + QT4

2009-09-24 Thread Javier Rivera
Gustavo Henrique escribiu: > Hi guys! > Is possible use django with qt4 for desktop apps? Sure. Two years ago I used Qt4 and the django template system, with an old version of this script (http://code.google.com/p/django-opendocument/), to add some reports to a Tinapos installation. Tinapos i

Re: File storage: Filesystem vs Database

2009-09-22 Thread Javier Rivera
Charles Wang escribiu: > I have a question for "make apache deliver it". How to control the > access right? Integrate apache access auth model with Django? X-Send-File could send any file that apache can access not only files on the "www path". It can send a file that is not accessible by url as

Re: Django and Linux distros

2008-05-16 Thread Javier Rivera
> What works for you? Ubuntu + Eric4 as ide + Mysql. Javier. --~--~-~--~~~---~--~~ 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 f

Re: Questions about clustering and fail over

2006-11-30 Thread Javier Rivera
El Jueves, 30 de Noviembre de 2006 23:42, Yamagami escribió: > 2. How are the sessions stored? Is it RAM? disk? DB perhaps? They are stored in the database, in the table django_sessions. Javier. --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Django and CRM or ERP

2006-11-17 Thread Javier Rivera
El Viernes, 17 de Noviembre de 2006 13:05, Picio escribió: > Just courious if Is there anyone that have built or will build a CRM > or an ERP using Django? No. But I'm working on a django program to extract data from a ERP. It generates openoffice spreadsheets from sales and stock data. If I we

Re: date format other than YYYY-MM-DD

2006-10-10 Thread Javier Rivera
[EMAIL PROTECTED] escribió: > Javier, > >Is it possible to use this with the generic view? No (AFAIK). You need to call it explicitly when processing the form. Javier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: What IDE do you use? (semi-OT)

2006-10-09 Thread Javier Rivera
Milton Waddams escribió: > I use eric3 for my python work, jEdit for templates. I use eric3 for both. > I only use the basic features of eric (projects and editing). I also use project browsing, autocompletion (from API and/or previous text), hints and some other things (like the built-in gre

Re: date format other than YYYY-MM-DD

2006-09-29 Thread Javier Rivera
viestards escribió: >> Using the 'date' filter, you can format the output however you want, >> within templates. >> >> For example, to format a date as "September 17, 2006", you would do >> the following in a template: >> >> {{ object.pub_date|date:"F d, Y" }} > > thanks for reply, but will it wo

Re: Template Question (for loop)

2006-07-28 Thread Javier Rivera
timster escribió: > {% for category in categories %} > {{ category.name }} > {% if category.forum_set.count %} > {% for forum in category.forum_set.all %} > {{ forum.name }} > {% endfor %} > {% else %} > no forums in this category > {% endif %} >

Re: unable to runser ?

2006-07-26 Thread Javier Rivera
Rajeshwar Singh Jenwar escribió: > I m using mysql-standard-5.0.22-linux-i686 and > MySQL-python-1.2.1_p2 on RH Fedora core 4. Are you mixing RH packages with official Mysql ones? I mean, is libmysql from mysql.com and MSQL-Python from a official RH package?. Maybe there is some kind of incomp

Re: unable to runser ?

2006-07-26 Thread Javier Rivera
Rajeshwar Singh Jenwar escribió: > Hi All, > > I m new to django. > I m getiing problem with Tutorial-1. It's probably a blind shot, but... Have you got the MyAQLdb python module installed? Javier. --~--~-~--~~~---~--~~ You received this message because you ar

Re: Not sure how to do this (many to many problem)

2006-07-17 Thread Javier Rivera
Carlos Yoder escribió: > Do you know of a way to configure and alter this behaviour? No. But it could probably be achieved playing with the admin CSS. Javier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Not sure how to do this (many to many problem)

2006-07-17 Thread Javier Rivera
Carlos Yoder escribió: > The problem is, I don't know how to do this in Django. I tried doing: Well, I'm new to django, but I don't believe that the ManytoMany field could be used this way. It can for sure relate both tables (user and car), but I don't know how to add a third value. I'd do it

OpenDocument and django

2006-07-11 Thread Javier Rivera
Hi ;). Let's start with some presentation, please jump ahead for the interesting stuff. We (I mean my company) have evaluating some options to make a kind of "business intelligence" web application. Basically a simple web page where users make some selections, the app query a database and ret