Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » How to run a pre-existing django project [RSS Feed]

#1 Dec. 23, 2010 12:49:58

Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

How to run a pre-existing django project

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
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
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\django\core\management\commands
py", line 48, in inner_run
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
File "C:\Python27\lib\site-packages\django\db\models\loading.py",
line 61, in
self.load_app(app_name, True)
File "C:\Python27\lib\site-packages\django\db\models\loading.py",
line 83, in
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"
'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
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.


  • Root
  • » Django
  • » How to run a pre-existing django project [RSS Feed]

Board footer

Moderator control

Enjoy the 24th of May

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support