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
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
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
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
--~--~-~--~~---
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
5 matches
Mail list logo