psycopg2.OperationalError: fe_sendauth: no password supplied

2009-06-23 Thread Chris Haynes
I've just installed postgresql and psycopg2. I supplied a password in the postgres install, but don't know how to supply it to psycopg2: ~/s/sd$ manage.py syncdb Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/users/home/system/lib/dja

Re: psycopyg setup error: no build_ext

2009-06-23 Thread Chris Haynes
never able to get psycopg2 to compile on osx I recommend > using sqlite for development or another database.  If you must use > psycopg2, you may want to try to get it through something like > darwinports. > > On Tue, Jun 23, 2009 at 1:19 PM, Chris Haynes wrote: > > &g

psycopyg setup error: no build_ext

2009-06-23 Thread Chris Haynes
Using what I believe is the latest version of psycopyg, I get: 509 ~/Desktop/psycopg2-2.0.9$ python setup.py build running build running build_py creating build creating build/lib.macosx-10.3-fat-2.6 creating build/lib.macosx-10.3-fat-2.6/psycopg2 copying lib/__init__.py -> build/lib.macosx-10.3-

admin media deployment

2009-02-12 Thread Chris Haynes
The admin interface had no styling until I added a symlink in the fcgi directory from media (my ADMIN_MEDIA_PREFIX is /media/) to the admin app media directory. The development server works fine on another machine w/o such a link. Another developer I spoke with fixed the same problem this way. Ne

admin/doc/ The requested admin page does not exist.

2009-02-12 Thread Chris Haynes
I add (r'^admin/doc/', include('django.contrib.admindocs.urls')) to urls.py and get the admin page Documentation link, but when I visit it I get a 404 error with the message "The requested admin page does not exist.". When I visit a bogus URL the error page confirms taht ^admin/doc/ is in the UR

charts in django

2009-01-29 Thread Chris Haynes
en-flash- chart has a python binding, but its documentation is very sketchy and I don't know how good its support is. visifire looks like it has a great future, but depends on silverlight which is not widely deployed yet. Any other ideas or comments on the above?

admin deployment

2008-08-30 Thread Chris Haynes
http://127.0.0.1:8000/admin/ works fine, and under fcgi other things work and https:admin/ gives me the admin login screen (without css formatting). But in response to the Log in button it directs to https:///admin/ which fails because the server only directs URLS beginning with https://https:

Re: Error while importing URLconf 'mysite.urls': 'module' object has no attribute 'views'

2008-06-17 Thread Chris Haynes
Resolved. Don't know how. On Jun 14, 9:16 pm, Chris Haynes <[EMAIL PROTECTED]> wrote: > This error goes away if I remove the line > (r'^ptree/$', mysite.trees.views.parse_tree), > from the urlpatterns. But I can import trees.views from the shell > > ~/dj/

Error while importing URLconf 'mysite.urls': 'module' object has no attribute 'views'

2008-06-14 Thread Chris Haynes
This error goes away if I remove the line (r'^ptree/$', mysite.trees.views.parse_tree), from the urlpatterns. But I can import trees.views from the shell ~/dj/mysite 144: manage.py shell Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyri

Re: 'WSGIRequest' object has no attribute 'user'

2008-01-04 Thread Chris Haynes
> > > On Dec 29 2007, 11:03 am, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > > Is there 'django.contrib.auth.middleware.AuthenticationMiddleware' in > > > your MIDDLEWARE_CLASSES ? > > > No. Uncommenting > >'django.middleware.common.CommonMiddleware', > >'django.contrib.sessions.mi

file uploading clean_data code missing

2008-01-03 Thread Chris Haynes
With the following form in my template File: {{ form.code }} and the appended view code, I get the desired form with text box, Browse... and Submit buttons. But when browse for a plain text file and hit Submit, I get the HttpResponseBadRequest response and the print statements flagged with

Re: 'WSGIRequest' object has no attribute 'user'

2008-01-03 Thread Chris Haynes
On Dec 29 2007, 11:03 am, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Is there 'django.contrib.auth.middleware.AuthenticationMiddleware' in > your MIDDLEWARE_CLASSES ? No. Uncommenting 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddlewar

'WSGIRequest' object has no attribute 'user'

2007-12-29 Thread Chris Haynes
Thanks a lot, syncdb now works with the admin stuff, and I entered the superuser account stuff when requested. After that I restart the server and get AttributeError at /admin/ 'WSGIRequest' object has no attribute 'user', with traceback at http://dpaste.com/29308/. Don't see the admin login scre

no such table: django_content_type

2007-12-26 Thread Chris Haynes
I add 'django.contrib.auth', to my INSTALLED_APPS. This seems necessary to use the admin interface, for I get prompted for the superuser login and password when I run syncdb. But then after table creation, (whether I decline to enter the superuser info or not), I get a no such table: django_conten

admin interface startup problems

2007-12-25 Thread Chris Haynes
Following the book, with today's svn checkout of django and a few necessary adjustments, I've gotten things to work until page 84, where I'm stuck in multiple ways. Help greatly appreciated. Trying to visit the admin site in Firefox I get AttributeError at /admin/ 'WSGIRequest' object ha