Re: How to install psycopg2 using Pip?

2014-06-04 Thread Dow Street
My understanding is that psycopg2 looks for some postgres files during the install. If you have postgres already installed on the same box, you should be able to resolve this problem by adding the postgres folder to your PATH environment variable before running 'pip install psycopg2'. The

Re: IndentationError :Unexpected Indent

2014-04-28 Thread Dow Street
Based on the code below it looks like your indentation is off for def was_published recently code block (i.e. 3 spaces instead of 4). If that does not solve the problem, you might also check to ensure that you're not mixing tabs and spaces when indenting. Depending on your environment that

Re: Django Data Visualization

2013-12-13 Thread Dow Street
I'm not familiar with django-boxes, but one architectural question is whether you want to render the graphs on the server (e.g. python) or in the browser (e.g. javascript). If you render on the server, you could use something like matplotlib (python) to draw your graphs, and then push those

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Dow Street
And just a reminder that you can certainly use virtualenv without virtualenvwrapper. Every env you create with virtualenv will have a script to activate that env located at envname/bin/activate. For example: Open your shell, cd to the desired directory, and create a new env: $ virtualenv

Re: bug in multi-level multi-table inheritance?

2013-07-22 Thread Dow Street
All, I've added a ticket for this issue: https://code.djangoproject.com/ticket/20776 If anyone has a chance to verify that this is a bug (rather than a programming error on my part) I would greatly appreciate it. Thanks! Dow On Jul 18, 2013, at 11:08 PM, Dow Street <dowstr...@prodigy.

bug in multi-level multi-table inheritance?

2013-07-19 Thread Dow Street
All, I'm seeing some unexpected behavior when using multi-level multi-table inheritance. In the example below there are three levels in the class hierarchy. When accessing the name field (which is stored in the Level1 base class) from an object in Level3, the query does not seem to walk the

Re: Understanding an existing big web application written in Django

2013-06-06 Thread Dow Street
I also find it helpful to generate a diagram of the model relationships - e.g. using graph_models in django-extensions: http://pythonhosted.org/django-extensions/ On Jun 6, 2013, at 7:06 AM, si wrote: > I have already existing web application code written by a

Re: [Bulk] Re: Template Inheritance doubt

2013-05-20 Thread Dow Street
Hi. I'm not sure, but we may be using the terms 'parent' and 'child' differently (i.e. what you're calling a child I'm calling a parent?). I have only used django template inheritance where a given template file has at most one {% extends %} tag in it - that is what I am referring to when I

Re: Template Inheritance doubt

2013-05-18 Thread Dow Street
It sounds like you are trying to have a template inherit code from multiple parents. One option is to stay with a simple inheritance hierarchy where each child template extends at most one parent template. If you want to use different code for different sub-sections of your project then just

Re: Can i access my database with Django?(Urgent)

2013-04-05 Thread Dow Street
Depending on what you're trying to do, I think you should be able to configure two separate databases in your settings file - one for the auth app (user tables, etc.) and one for your existing database. Then use a database router to point each app to the right one. This way the additional