I got this working, I had to do two things.
1. add the following line at the top of the script:
import django
2. add the following line after "os.environ.setdefault...":
django.setup()
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscri
Is the path to the django source code is on your PYTHONPATH?
If it's in the same directory, try: PYTHONPATH=. populate.py
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an
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
os.environ['DJANGO
3 matches
Mail list logo