User Profiles "user.get_profile()" returns 'matching query does not exist.'

2008-09-20 Thread mclovin
I have spent about 2 hours on this so far, but havent been able to get it right, my model is: (located in schedule/models.py, stripped down to just the profile) from django.contrib.auth.models import User class profile(models.Model): user = models.ForeignKey(User, unique=True) aim = mode

Re: User Profiles "user.get_profile()" returns 'matching query does not exist.'

2008-09-20 Thread mclovin
f logged in user has profile, if not redirect to > create profile >         try: >                 profile = request.user.get_profile() >         except: >                 return HttpResponseRedirect("/createprofile/") > > Paddy > > On Sep 21, 8:48 am, mclovin <[E

Mod-Python = Headaches (cannot find my settings file)

2009-01-14 Thread mclovin
I have my project settings file in: 'C:/projects/caliber/settings.py" I have mod_python activated (latest version as of today) along with Apache (latest version as of today) Now this is at the bottom of my httpd.conf file: SetHandler python-program PythonHandler django.core.handlers.m

Re: Mod-Python = Headaches (cannot find my settings file)

2009-01-14 Thread mclovin
Here is my new revised: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE caliber.settings PythonDebug On PythonPath "['C:/projects/'] + sys.path" still does not work. gives the same error --~--~-~--~~---

Django database model interface for other python projects?

2009-06-28 Thread mclovin
Is it possible to use the django model database for other python projects? I find it extremely easy to use and was hoping to use it in my other projects. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users