Re: Problem with populate script

2014-10-01 Thread Daniel Grace
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

Re: Problem with populate script

2014-09-29 Thread Collin Anderson
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

Re: Problem with populate script

2014-09-29 Thread robert brook
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