Hi
I am new to django. I followed the documentation and created my first
app on windows machine. I have pything2.7.

Now i have a already existing project and i need to run that on my
machine.
After downloading, i got the manage.py.gz and url.py.gz and
db.sqlite.gz and settings.py .

I extracted these files using 7-zip and ran the following command
C:/projectname> manage.py runserver
I get some errors for this command.

Validating models...
Unhandled exception in thread started by <function inner_run at
0x00D3B5B0>
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\management\commands
\runserver.
py", line 48, in inner_run
    self.validate(display_num_errors=True)
  File "C:\Python27\lib\site-packages\django\core\management\base.py",
line 249,
 in validate
    num_errors = get_validation_errors(s, app)
  File "C:\Python27\lib\site-packages\django\core\management
\validation.py", lin
e 28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "C:\Python27\lib\site-packages\django\db\models\loading.py",
line 146, in
 get_app_errors
    self._populate()
  File "C:\Python27\lib\site-packages\django\db\models\loading.py",
line 61, in
_populate
    self.load_app(app_name, True)
  File "C:\Python27\lib\site-packages\django\db\models\loading.py",
line 83, in
load_app
    if not module_has_submodule(app_module, 'models'):
  File "C:\Python27\lib\site-packages\django\utils\module_loading.py",
line 14,
in module_has_submodule
    for entry in package.__path__:  # No __path__, then not a package.
AttributeError: 'module' object has no attribute '__path__'


What am i missing here?
I have made following changes to settings.py file.
I just put "C:/projectname" in PROJECT_ROOT_PATH

PROJECT_ROOT_PATH= "C:/projectname"
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(PROJECT_ROOT_PATH, 'projectname.sqlite'),
    }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to