Re: Multiple site package directories for Python and question about apache configuration

2014-11-04 Thread robert brook
nd then when you will do setup.py for a library you > download, they will be in different locations! > http://stackoverflow.com/a/12950101/861487 > > Le lundi 3 novembre 2014 21:24:17 UTC+1, robert brook a écrit : >> >> I overlooked mentioning that the path command returned

Re: Multiple site package directories for Python and question about apache configuration

2014-11-03 Thread robert brook
I overlooked mentioning that the path command returned 2 different locations for the 3 modules. Not sure why one package got installed in the lib64 path. They were all installed with the setup.py install command. On Monday, November 3, 2014 3:18:06 PM UTC-5, robert brook wrote: > >

Multiple site package directories for Python and question about apache configuration

2014-11-03 Thread robert brook
I am building the web application on a linux red hat machine. I was trying to pull the path for the site packages for the 3 modules that I have installed so that I can specify the path in the apache config file Can I specify 2 paths in Apache? Thanks >>> import django >>> print

Re: Multiple versions of python on linux server

2014-11-03 Thread robert brook
together would be much appreciated. Thanks On Monday, November 3, 2014 11:21:50 AM UTC-5, Tim Chase wrote: > > On 2014-11-03 08:07, robert brook wrote: > > I do not have the luxury to create a virtual environment because of > > the constraints of this organization. &g

Re: Multiple versions of python on linux server

2014-11-03 Thread robert brook
that would be in this directive? Thanks On Monday, November 3, 2014 10:57:47 AM UTC-5, Andréas Kühne wrote: > > 2014-11-03 16:46 GMT+01:00 robert brook <software@gmail.com > >: > >> This is the first time that I am having apache configured to run django >> >> I plan

Multiple versions of python on linux server

2014-11-03 Thread robert brook
This is the first time that I am having apache configured to run django I plan on using mod_wsgi on apache and linux using 2 servers, the apache server and the application server. The linux (red hat 6) / django server had python 2.6 installed for admin purposes out of the box.. Go figure, 2.6

Re: Successful project on windows does not render assets on mac

2014-11-01 Thread robert brook
finds media directory, but not the static one, so > just use print and the variable of your static folder and look at the > console where python is seeing the static folder. > > Le samedi 1 novembre 2014 23:44:21 UTC+1, robert brook a écrit : >> >> I am copying the code from o

Successful project on windows does not render assets on mac

2014-11-01 Thread robert brook
I am copying the code from one development machine(windows) to another (mac) and can see in the command window that *404* are being displayed as the status codes. The rendered template has very little successful formatting Any thoughts why this is happening on mac. Also, this development will

Re: Installing django on red hat linux box

2014-10-22 Thread robert brook
, 2014 12:55:26 PM UTC-4, Pat Claffey wrote: > > once I got pip sorted out it was really easy install django (just pip > install django) - so advise is to get pip working. You will need it for > other python packages also. > > On Wednesday, October 22, 2014 5:12:10 PM UTC+1,

Re: Installing django on red hat linux box

2014-10-22 Thread robert brook
to python2.6). I manually installed > python3.4 and pip3.4. I see these executables in /usr/local/bin. > > python2.6 was pre-installed on my linux box (red hat). I installed > python3.4 and pip3.4 manually. > > > > On Wednesday, October 22, 2014 5:12:10 PM UTC+1, rob

Re: Installing django on red hat linux box

2014-10-22 Thread robert brook
suggestions around this? On Wednesday, October 22, 2014 12:12:10 PM UTC-4, robert brook wrote: > > > I have alot of experience installing packages on windows and mac and it > goes very smoothly. > I do not have alot of experience doing the installs on a Linux box. > > I am

Installing django on red hat linux box

2014-10-22 Thread robert brook
I have alot of experience installing packages on windows and mac and it goes very smoothly. I do not have alot of experience doing the installs on a Linux box. I am running into problems installing 4 packages. The Lan team tried yum, but the basic django packages were not available. Then I

Re: Porting to Django Linux with SQL Server Backend

2014-10-16 Thread robert brook
he > application server from time to time. It does work for the most part, but > the application isn't under any kind of load at the moment. > > If I had a choice, I wouldn't run Django on MSSQL Server. > > - K > > > On Wednesday, October 15, 2014 7:13:04 AM UTC-7, robert brook wrote:

Re: Porting to Django Linux with SQL Server Backend

2014-10-16 Thread robert brook
s on the > application server from time to time. It does work for the most part, but > the application isn't under any kind of load at the moment. > > If I had a choice, I wouldn't run Django on MSSQL Server. > > - K > > > On Wednesday, October 15, 2014 7:13:04 A

Django sqlaclhemy and Sabridge Module

2014-10-15 Thread robert brook
Has anyone had any experience using the the sabridge module to connect to a production database in general and specifically to sql server (version 2014 with python 3.3 and django 1.7)? I would like to be able to integrate sqlalchemy into my production environment. Any other suggestions that

Re: Porting to Django Linux with SQL Server Backend

2014-10-15 Thread robert brook
-pymssql (https://github.com/aaugustin/django-pymssql). > > Regards, > Michael Manfre > > On Wednesday, October 15, 2014 9:03:54 AM UTC-4, robert brook wrote: >> >> The group has been developing locally with sqllite on Windows. >> >> We are porting the insta

Porting to Django Linux with SQL Server Backend

2014-10-15 Thread robert brook
The group has been developing locally with sqllite on Windows. We are porting the installation to a Linux environment /windows sql server. Looking for suggestions for database connectors from Linux to sql server 2014 using: python3.3 django 1.7 I have installed a local copy of sql server to

Re: Question on url routing

2014-10-14 Thread robert brook
I have figured out how to determine if the url_conf was obtained from an internal link (which would be the only acceptable workflow) or through a url that the user typed into the address bar trying to subvert the workflow. See the attached screen shot of the view. If the view goes through the

Re: Question on url routing

2014-10-11 Thread robert brook
; workflow. > > On Fri, Oct 10, 2014 at 10:47 AM, robert brook <software@gmail.com > > wrote: > >> I know how to detect an ajax request. >> >> I am interested int the general issue of the user typing in a valid url >> for the application,

Re: Question on url routing

2014-10-10 Thread robert brook
It would seem that this should be a common issue for any web site. based on the DRY principle, how has this been resolved by other developers On Friday, October 10, 2014 8:09:12 AM UTC-4, robert brook wrote: > > If I have 2 urls coded in the file for example > > url(r'^abc/$', views

Re: Question on url routing

2014-10-10 Thread robert brook
I know how to detect an ajax request. I am interested int the general issue of the user typing in a valid url for the application, but not appropriate for the particular workflow. I utilize the @login_required decorater. I am looking for an analgous function to pass the user back to an

Question on url routing

2014-10-10 Thread robert brook
If I have 2 urls coded in the file for example url(r'^abc/$', views.abc), url( r'^abc/def/$', views.def), And the first url should be accessible by typing it into the browser. The 2nd url should only be accessible from the application, not by virtue of a user typing it into the browser. How

Re: Setting up Apache to be the web server for apache for Django 1.7 and python 3.3

2014-10-03 Thread robert brook
The requirements of the organization is to use Apache On Friday, October 3, 2014 8:42:29 AM UTC-4, robert brook wrote: > > Can someone point me to a document on how to perform a setup for Apache. > > What modules would it be good to install ( I presume as a site package for > Py

Setting up Apache to be the web server for apache for Django 1.7 and python 3.3

2014-10-03 Thread robert brook
Can someone point me to a document on how to perform a setup for Apache. What modules would it be good to install ( I presume as a site package for Python)? What should the settings.py reflect to accept calls from Apache? What do I need to configure in the apache config file? What port should

Re: Need example to implement sql (dictionary) translations

2014-09-30 Thread robert brook
Person.objects.raw('SELECT * FROM some_other_table', translations=name_map) That does not work. Printing out the results from above gives me the following. How do I convert this into a sql result, and or a dictionary? The row above On Monday, September 29, 2014 1:11:51 PM UTC-4, robert

Re: Problem with populate script

2014-09-29 Thread robert brook
This was really not a core function of the application, so I wold not worry about it. Just add the data to a csv page and import it into sql lite to get you going. But I believe that you need to tell Python where the data base is located using the settings file import os

Need example to implement sql (dictionary) translations

2014-09-29 Thread robert brook
>From the django project web site, I am trying to implement the following code and have it spit out the dictionary form of the sql. Does anyone have an example of how this is done. The code below is from the project web page https://docs.djangoproject.com/en/1.7/topics/db/sql/ When I execute

Re: Django url pass through

2014-09-23 Thread robert brook
1 PM UTC-4, robert brook wrote: > > How is a url conf written so that if none of the useful urls are matched > it will pass through to some sort of wild card regular expressions so that > the view / redirection can be performed gracefully > > Thanks > -- You received this mes

Django url pass through

2014-09-22 Thread robert brook
How is a url conf written so that if none of the useful urls are matched it will pass through to some sort of wild card regular expressions so that the view / redirection can be performed gracefully Thanks -- You received this message because you are subscribed to the Google Groups "Django