Opened 14 years ago
Closed 14 years ago
#16702 closed Bug (invalid)
Problem.
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | 1.3 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Its not really a bug but I need to like be able to use django in my python code but i cant figure out how to set it up.
I tried to do this
management.call_command('syncdb', 'settings=mysite.settings')
management.call_command('syncdb', "pythonpath='/home/guest/Downloads/MillionSongSubset/Django/mysite'")
But it still gives me an error about
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
Even though I am clearly defining settings.
I really need an answer thats why I am using this because my project is due in like a week.
Change History (2)
comment:1 by , 14 years ago
| Easy pickings: | set |
|---|
comment:2 by , 14 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Please use the django-users mailing list, #django or google for these kinds of requests; this place is for reporting bugs and features.