Code

Opened 3 years ago

Closed 3 years ago

#16702 closed Bug (invalid)

Problem.

Reported by: jvbytoast@… 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.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by jvbytoast@…

  • Easy pickings set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by bpeschier

  • Resolution set to invalid
  • Status changed from new to closed

Please use the django-users mailing list, #django or google for these kinds of requests; this place is for reporting bugs and features.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.