Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#272 closed defect (invalid)

Error while executing

Reported by: rodrigo74@… Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I am following the part 1 of the tutorial, on a Windows XP SP2 machine.

I had no problems until I tried to run the command init --settings=myproject.settings.main

The error I got:

C:\myproject> init --settings=myproject.settings.main
Traceback (most recent call last):
  File "C:\django_src\django\bin\", line 115, in ?
  File "C:\django_src\django\bin\", line 69, in main
  File "C:\Python24\lib\site-packages\django\core\", line 289, in i
    from django.core import db, meta
  File "C:\Python24\lib\site-packages\django\core\db\", line 16, in ?

    from django.conf.settings import DATABASE_ENGINE
  File "C:\Python24\lib\site-packages\django\conf\", line 34, in ?
    raise EnvironmentError, "Could not import %s '%s' (is it on sys.path?): %s"
EnvironmentError: Could not import DJANGO_SETTINGS_MODULE '
in' (is it on sys.path?): No module named myproject.settings.main

I also tried to set the environment variable DJANGO_SETTINGS_MODULE but got the same error message.

I am using the svn version from 4.aug.2005

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by jacob

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

This is because your settings module is not in PYTHONPATH (it says so in the error message). Please don't use the ticket system for support questions; make a post to django-users or ask on IRC.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.