Cannot connect to development server on windows

2010-08-19 Thread cwurld
I am using django 1.1 on windows XP. I run the development server from the command line. Most of the time things work fine. But at seemly random times, I can no longer connect to the development server. On chrome, I get: "Oops! This link appears to be broken." with other browsers, I get similar

Re: cache and multple languages

2009-08-06 Thread cwurld
ve recently create an app for advanced view caching. It allow pages > to be cached based on anything in request, specific cookies for > example. > Please checkhttp://bitbucket.org/kmike/django-view-cache-utils/wiki/Home > > If you have any questions about it feel free to ask. > >

cache and multple languages

2009-08-05 Thread cwurld
Hi, I have been successfully running a multi-language site for a while now. The users language pref is stored (along with other data) in a cookie. Recently, I have been trying to cache some of the more common and processor intensive views. Since the language code is not in the url, I can't figur

Re: Windows development server problem

2009-07-21 Thread cwurld
Hi, Sorry for not giving more details. I did not want to get into my code as much as I was hoping to find out more about how the dev server might differ from the command line. I was using the pod module (http://code.google.com/p/pickled-object- database/) in addition to mysql. It turns out that

Windows development server problem

2009-07-20 Thread cwurld
Hi, I have a snippet of code that runs fine as a standalone program. But when I incorporate it into a view and access that view w the development server, the snippet no longer works. What is the difference between the python interpreter and the development server? Thanks, Chuck --~--~-

Re: Foreign Key Problem

2008-10-24 Thread cwurld
> > ALTER TABLE ENGINE=INNODB; > I changed all my tables to InnoDB. That seems to have solved the problem. Thanks for the suggestion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Foreign Key Problem

2008-10-23 Thread cwurld
Hi, I have been using django for about a year and a half. It has been great. My hat is off to all the developers. I am trying to port my project to django 1.0 for 0.97. I am using MySQL. The ported version seems to be working well. The problem is that am trying to add a new model that contains

Re: runserver error

2008-09-25 Thread cwurld
Problem solved - I am using the multilingual module. Although I uploaded the version that is needed for django 1.0, my path was still pointing to the old version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: runserver error

2008-09-25 Thread cwurld
On Sep 25, 1:10 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 25, 5:42 pm, cwurld <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I am trying to upgrade my site from 0.97 to 1.0. When I use the > > command: > > > python manage.py runserver

runserver error

2008-09-25 Thread cwurld
Hi, I am trying to upgrade my site from 0.97 to 1.0. When I use the command: python manage.py runserver I get the error: Error: cannot import name connect Any ideas how to resolve this? Thanks, Chuck --~--~-~--~~~---~--~~ You received this message because you a

Re: Random HTTP Error 500's - ImproperlyConfigured

2008-09-03 Thread cwurld
I doubt that would be the cause, given that the module it cannot load changes from crash to crash. I was wondering if it could be some sort of timing issue. Maybe the server times out while looking for the file. Or maybe the file is temporarily locked? I am grasping at straws here... --~--~-

Random HTTP Error 500's - ImproperlyConfigured

2008-09-02 Thread cwurld
Hi, My site has recently starting generating a lot of HTTP Error 500's. The traceback is always: ImproperlyConfigured: Error importing request processor module xxx: "No module named yyy" where xxx and yyy are random modules. I know these modules are present and working correctly. Most of the ti

Re: error on manipulator fields

2008-06-28 Thread cwurld
I tried the newforms-admin branch - it did not solve the problem. I am now back to revision 7776 of the trunk. I think the problem is in the documentation. It seems like you must add a "get_manipulator_field_objs" method to your customized class. For example, I added: def get_manipulator_field_o

Re: Include tag - encoding

2007-11-21 Thread cwurld
opps - my mistake. The include file was not unicode encoded in utf-8. It actually was ascii with chars above above 127 making up the Spanish chars. When I converted it to unicode utf-8 all worked as expected. Chuck --~--~-~--~~~---~--~~ You received this message be

Re: Django Web Hosting Service

2007-11-21 Thread cwurld
http://www.webfaction.com/ They are amazing and reasonably priced. Their support is great. They have exceeded my expectations many times. Chuck On Nov 21, 7:40 am, "Ronaldo Z. Afonso" <[EMAIL PROTECTED]> wrote: > Hi all, > > Can anybody recommend me a Django Web Hosting Service? > Thanks. > >

Include tag - encoding

2007-11-20 Thread cwurld
Hi, I have a block of text that I load into a webpage using an {% include %} tag. I have two versions of the include file. One in English, the other in Spanish. I have no problem loading either one. However the Spanish characters in the Spanish file are not displayed properly. I tried putti

Showing a Maintenance Page

2007-08-08 Thread cwurld
I do my development locally on windows xp. When things are the way I want them, I upload the code to a linux based shared server. Occasionally, even thought the code works locally, it breaks the live site. This would be much less of a problem if I could display a static page describing to the use

Re: Authenticating w Apache

2007-05-19 Thread cwurld
Here is the answer I was looking for: http://www.djangosnippets.org/snippets/62/ I post it here to save others the time it took me to find this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Authenticating w Apache

2007-05-17 Thread cwurld
Hi, I am trying to implement the code in the django docs called: Authenticating against Django's user database from Apache I am not having much luck. The field req.user that is sent to the mod_python module is always empty. Do I need to put an .htaccess file into the dir that I am trying to pro

Re: Preventing Multiple Logins

2007-03-17 Thread cwurld
Does anyone know how the SESSION_EXPIRE_AT_BROWSER_CLOSE works? In other words, how does the Django session know the browser closed? It seems like this mechanism could be used to accomplish the above. Chuck --~--~-~--~~~---~--~~ You received this message because

Preventing Multiple Logins

2007-03-16 Thread cwurld
Hi, In order for users to use my Django site they must login. I am using the standard auth app. I set the session to expire when the browser is closed or when the user clicks a log out button. I would like to find a way to prevent users from simultaniously logging in from different computers but

Problems w Authenticating against Django's user database from Apache

2007-01-16 Thread cwurld
HandlerDispatch result = object(req) File "/home2/cwurld/lib/python2.4/django/contrib/auth/handlers/modpython.py", line 33, in authenhandler user = User.objects.get(**kwargs) File "/home2/cwurld/lib/python2.4/django/db/models/manager.py", line 67, in get return self.

Problems Authenticating against Apache

2007-01-16 Thread cwurld
Hi, I am trying to implement "Authenticating against Django's user database from Apache" from http://www.djangoproject.com/documentation/apache_auth/ . The problem I am running into is that the username attribute in the request is set to None. This causes the authentication to fail because when

verdjnlib templatepages vs django static content server

2007-01-15 Thread cwurld
Hi, I was reviewing the code for two different ways of serving static webpages: 1) verdjnlib templatepages ( http://www.verdjn.com/wiki/TemplatePages ) 2) django static pages ( http://www.djangoproject.com/documentation/static_files/ ) and i can't see much difference between these two methods

Generating Javascript w Django

2007-01-11 Thread cwurld
Hi, Does this make sense? I wanted some code to cycle thru some banner ads. I could have done it with dojo doing a callback to my view, have my view send the image path and the corresponding url, but that seemed like a lot of activity for such a simple process. Instead, I generated the javascrip

A simple app for printing debugging messages

2006-12-21 Thread cwurld
Hi, I just posted a simple app, on the Django wiki, for printing debug messages in the production environment. I know that bugs are supposed to be worked out prior to that, but for a newbie like me, it never seems to work out that way. The link is: http://code.djangoproject.com/wiki/SimplePrint

Re: CSS Basics

2006-12-20 Thread cwurld
So when one says "Serve from Django" does that mean use the "view django.views.static.serve"? The documentation says that is not secure. Does anyone know what the security risk is? Thanks, Chuck --~--~-~--~~~---~--~~ You received this message because you are su

Re: CSS Basics

2006-12-20 Thread cwurld
Thanks for all your replies. I can get things working the way you recommend, but I am concerned with the way it forces me to separate parts of my apps and it seems to create unnecessary complexity. I think it is important to distinguish static items based on size. My css files tend to be very sm

CSS Basics

2006-12-19 Thread cwurld
Hi, I don't understand why css files are special in django. If I have a template that contains inline style commands, nothing special needs to be done. But if I put those same commands in a separate file, now that file needs to be in a special location that needs to be handled by some special co

Maintenance

2006-11-16 Thread cwurld
Hi, I am working on my first Django powered website. I am concerned about how to modify apps after the site has gone live. For example, I have created a model that contains a class based on the Django Auth User class. Lets say that I go live and have 10,000 users in the db, then I decide I want t