multiple projects on same database

2014-08-07 Thread Héctor Urbina
Hello, I'm developing a django project for my office, a small project management system. I'm doing some tries to incorporate a third party document management system, namely mayan-edms, by making use of the same database, so that users maintain theirs credentials. Is that good practice?. Gree

Re: multiple projects on same database

2014-08-12 Thread Héctor Urbina
Thanks Camilo, I understand a schema just as a database, so if I use another schema I will be creating a new database and then the auth tables will be duplicated on this new database (or schema). With that, I won't get what I want, that is, only one set of tables with users' information. I'm us

Authenticating against django auth db from apache

2014-08-14 Thread Héctor Urbina
Hello, I'm following intructions in https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/apache-auth/, but the wsgi.py script is giving the following error: ImportError: Could not import settings 'uddo.settings' (Is it on sys.path? Is there an import error in the settings file?): cannot

Re: Authenticating against django auth db from apache

2014-08-19 Thread Héctor Urbina
Hello Collin, Yes, commenting out the check_password line fixes the problem. On settings, I'm importing User from django.contrib.auth.models. I discovered that commenting out that stops the ImportError. However, the authentication doesn't happen when I visit my secret location. Apache simply sh

Re: Authenticating against django auth db from apache

2014-08-19 Thread Héctor Urbina
I deleted my browser's cache and it worked!. I just thought that closing my session on the django project's page would also close my session on this directory... H. On Tuesday, August 19, 2014 3:49:07 PM UTC-4, Héctor Urbina wrote: > > Hello Collin, > > Yes, commenting

re-apply migrations on restored database

2014-10-30 Thread Héctor Urbina
ied so far, or if there is a way of changing that, in order to re-apply them. Any help would be appreciated, Hector. -- Héctor Urbina S. Ingeniero en Bioinformática Fono: 82049138 -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Re: re-apply migrations on restored database

2014-10-30 Thread Héctor Urbina
n't ever be necessary. > > It would be interesting to see how you ended up in a state that Django > thinks all migrations have been applied, though. > > /Markus > > > On October 30, 2014 7:07:02 PM CET, "Héctor Urbina" > wrote: >> >> Hello, &g

AttributeError raised when calling form's superclass clean() method, however the form doesn't get filled with errors

2014-12-15 Thread Héctor Urbina
Hello, I have the following Form: class TargetAllocationsForm(forms.Form): def __init__(self, cliente, *args, **kwargs): super(TargetAllocationsForm, self).__init__(*args, **kwargs) for cat in CategoriaActivo.objects.all(): self.fields[cat] = forms.FloatField(label=cat.nombre, min

Re: HOW TO Configure url and view for filter between two dates

2014-12-15 Thread Héctor Urbina
Hello, In urls.py you define the url that serves the page you're building, something like this would work: from django.conf.urls import patterns, url from import views urlpatterns = patterns('.views', url(r'^$',views.index, name="index"), url(r'^listarConsultas/$', views.listarConsult

Re: HOW TO Configure url and view for filter between two dates

2014-12-15 Thread Héctor Urbina
I'm sorry, I missleaded you, what you really want to use is a ModelChoiceField in a custom form. So you can create a form with the following code: from django import forms class pacienteConsultasForm(forms.Form): fecha

Re: AttributeError raised when calling form's superclass clean() method, however the form doesn't get filled with errors

2014-12-15 Thread Héctor Urbina
This is my view: def perfilInversionCliente(request, cliente_pk): objetos = {} cliente = get_object_or_404(Cliente, pk=cliente_pk) targetAllocationsForm = TargetAllocationsForm(cliente=cliente) if request.method == "POST": targetAllocationsForm = TargetAllocationsForm(request.POST)

Re: Django don't load css

2014-12-15 Thread Héctor Urbina
somecallitblues didn't say that it's 404 error, he said that you could have an error (some typo) in your base.css... perhaps you should check it with some css validator. On Monday, December 15, 2014 6:44:11 AM UTC-3, Jovana Andjelkovic wrote: > > It is not 404,it is 304 NOT MODIFIED,and it load

Re: Django don't load css

2014-12-16 Thread Héctor Urbina
Vadims Briksins seems to have had the same problem in Django 1.6.4. You could contact him and ask him if and how he resolved it. On Monday, December 15, 2014 6:38:50 PM UTC-3, Jovana Andjelkovic wrote: > > Sor

Re: django + python3 + fastcgi + shared hosting not working

2014-02-26 Thread Héctor Urbina
I'm worry, where I wrote --previs, it should say --prefix. 2014-02-26 10:55 GMT-03:00 Héctor Urbina : > Hello, > > I'm trying to deploy a django project on justhost.com. I have a locally > installed version of python3 and I'm using the development version of >

django + python3 + fastcgi + shared hosting not working

2014-02-26 Thread Héctor Urbina
fastcgi(method="threaded", daemonize="false") However, when reaching the site url, I get a 404 Error - File Not Found. I find only this on apache's error_log: [Wed Feb 26 06:49:29 2014] [error] [client xxx.xx.xx.xxx] File does not exist: ~/public_html/uddo/uddo.fcgi/ Where &q

How to detect clear checkbox chequed on ClearableFileInput

2014-02-27 Thread Héctor Urbina
Hello, I have a edit view to modify an object. The model includes an inline formset of insumoRecurso objects, for including files associated with the main object. These files appear with a checkbox for clearing files (ClearableFileInput widget). What should I test on my view to detect that the

Re: How to detect clear checkbox chequed on ClearableFileInput

2014-03-01 Thread Héctor Urbina
= recurso insumoRecurso.save() On Thursday, February 27, 2014 12:46:02 PM UTC-3, Héctor Urbina wrote: > > Hello, > > I have a edit view to modify an object. The model includes an inline > formset of insumoRecurso objects, for including files associated with the > main object. These file