Re: How to install django on Windows xp

2012-06-13 Thread Renne Rocha
Hello, It appears that you are trying to use Python 3. Django doesn't works with Python 3, so you must install Python 2.7 instead. Reinstall the Python version to Python 2.7. It must fix your problem. Regards, Renne On Wed, Jun 13, 2012 at 4:20 AM, Manish wrote: > Hi, > > I am new t

Re: Is it possible to implement an ODBC for Django

2012-02-10 Thread Renne Rocha
Try: http://pyodbc.sourceforge.net/ and http://code.google.com/p/django-pyodbc/ Renne Rocha http://rennerocha.com/ On Fri, Feb 10, 2012 at 1:29 AM, Python_Junkie < software.buy.des...@gmail.com> wrote: > I wanted to know if the settings.py will support a generic ODBC > co

Re: Error with test database

2012-02-08 Thread Renne Rocha
The order in which the tables are created depends on the order in which you have them in your INSTALLED_APPS. Try moving the app you want to be created first before the others. Renne Rocha http://rennerocha.com/ On Wed, Feb 8, 2012 at 11:07 AM, xina towner wrote: > I've alre

Re: Error with test database

2012-02-08 Thread Renne Rocha
You can configure the setting TEST_DEPENDENCIES. See the docs for more info: https://docs.djangoproject.com/en/1.3/topics/testing/#controlling-creation-order-for-test-databases Renne Rocha http://rennerocha.com/ On Wed, Feb 8, 2012 at 10:57 AM, xina towner wrote: > Hello, I&#

Re: unittest problems

2011-02-24 Thread Renne Rocha
lates (read the errors to see what templates are needed). For example: TemplateDoesNotExist: registration/password_change_form.html If you won't use the django.contrib.auth app in your project, remove it from INSTALLED_APPS in settings.py.   Renne Rocha   http://about.me/rennerocha/ On W

Re: manage.py syncdb not working

2010-08-24 Thread Renne Rocha
ss of your data. It is your task.   Renne Rocha   renne.ro...@gmail.com   http://www.linkedin.com/in/rennerocha On Tue, Aug 24, 2010 at 11:17 AM, Sithembewena Lloyd Dube wrote: > Hi all, > > I have been working on some models and tried to run the manage.py syncdb > command. It says ther

Re: connect to database from template

2010-08-18 Thread Renne Rocha
t to a server and get a tree object regularily and show the > modifications in the treeview > do you know how can i do this? > > 2010/8/18 Renne Rocha >> >>  I believe not... but why are you trying to do this? >> >>  It is not the right use for the template layer

Re: connect to database from template

2010-08-18 Thread Renne Rocha
I believe not... but why are you trying to do this? It is not the right use for the template layer of Django... On Wed, Aug 18, 2010 at 10:53 AM, Imad Elharoussi wrote: > Hello > > Can we connect to a database from the template like in php? > > -- > You received this message because you are

Re: Model Custom Validator between more than one field

2010-08-18 Thread Renne Rocha
Thank you! It helped me. I must define the Model.clean() method.   Renne Rocha   renne.ro...@gmail.com   http://rennerocha.webfactional.com/ On Wed, Aug 18, 2010 at 9:11 AM, Kenneth Gonsalves wrote: > On Wed, 2010-08-18 at 09:02 -0300, Renne Rocha wrote: >> Is it possible to do

Model Custom Validator between more than one field

2010-08-18 Thread Renne Rocha
d2_value: # do something else: raise ValidationError('My error!!!') Is it possible to do this? Or the only way to validate the relationship between two fields is with form validation? Thank you!   Renne Rocha   renne.ro...@gmail.com   http://rennerocha.webfactional.com/ --

Re: Translation

2010-08-10 Thread Renne Rocha
Say me if it helps you. Please. Renne Rocha renne.ro...@gmail.com http://www.linkedin.com/in/rennerocha +55 19 8154-9345 On Tue, Aug 10, 2010 at 3:11 PM, kostia wrote: > I have a web site. It is www.projector.net.ua. Sometimes it is down. > I have the latest code here http://github.

Re: ForeignKey to_field problem

2010-08-09 Thread Renne Rocha
Try defining the pet model like this: class Pet(models.Model): owner = models.ForeignKey(Person) name = models.CharField(max_length=30) Than it will work. On Fri, Aug 6, 2010 at 7:25 AM, bhuztez wrote: > I have my models declared in this way: > >class Person(models.Model):

Re: Must I put the rules logic on Python or Django code and why?

2010-08-04 Thread Renne Rocha
André, It seems that you don't understand what Django is. Your question make no sense. Take a look at this website: www.aprendendodjango.com/ (it is in portuguese) It will explain what Django is and what you can do with it. On Wed, Aug 4, 2010 at 12:02 PM, André A. Santos wrote: > fo

Re: Form validation

2010-07-27 Thread Renne Rocha
Send your model and form codes, than it will be easier to see what is wrong. On Tue, Jul 27, 2010 at 4:45 AM, S.Selvam wrote: > Hi all, > I have two model fields (text and file ) and i want either one of the field > to be filled out. > > I set null=True,blank=True for both fields in model. > >

Re: Problem validating two forms in a view

2010-07-21 Thread Renne Rocha
That's exactly what I need!!! Thank you! On Wed, Jul 21, 2010 at 12:15 AM, Ivan wrote: > http://charlesleifer.com/blog/djangos-inlineformsetfactory-and-you/ > might be the one you're looking for. > > Cheers, > Ivan > > > > On Wed, Jul 21, 2010 at 7:30

Problem validating two forms in a view

2010-07-20 Thread Renne Rocha
rect('/projects/') else: # Create the form and return to the template Thank you!   Renne Rocha   renne.ro...@gmail.com   http://www.linkedin.com/in/rennerocha   +55 19 8154-9345 -- You received this message because you are subscribed to the Google Groups "Django user