Forums

No module named urls, please help

I copied my website to the pythonanywhere site but im having a problems with the urls file

The server CAN get to my main urls.py file

But it CANT find the urls.py in the /user/ folder that include('user.urls')) is


ImportError at /

No module named urls


/home/tomta20014/mysite/yesno/urls.py in <module>

    url(r'^user/', include('user.urls')),

2015-02-14 05:17:08,574 :Traceback (most recent call last):
2015-02-14 05:17:08,574 :  File "/bin/user_wsgi_wrapper.py", line 130, in __call__
2015-02-14 05:17:08,574 :    self.error_log_file.logger.exception("Error running WSGI application")
2015-02-14 05:17:08,575 :  File "/usr/lib/python2.7/logging/__init__.py", line 1185, in exception 
2015-02-14 05:17:08,575 :    self.error(msg, *args, **kwargs)
2015-02-14 05:17:08,575 :  File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2015-02-14 05:17:08,575 :    self._log(ERROR, msg, args, **kwargs)
2015-02-14 05:17:08,576 :  File "/usr/lib/python2.7/logging/__init__.py", line 1270, in _log
2015-02-14 05:17:08,576 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2015-02-14 05:17:08,576 :  File "/usr/lib/python2.7/logging/__init__.py", line 1244, in makeRecord
2015-02-14 05:17:08,576 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2015-02-14 05:17:08,576 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2015-02-14 05:17:08,577 :    self.threadName = threading.current_thread().name
2015-02-14 05:17:08,577 :  File "/usr/lib/python2.7/threading.py", line 1160, in currentThread
2015-02-14 05:17:08,577 :    return _active[_get_ident()]
2015-02-14 05:17:08,577 :  File "/bin/user_wsgi_wrapper.py", line 122, in __call__
2015-02-14 05:17:08,577 :    app_iterator = self.app(environ, start_response)
2015-02-14 05:17:08,577 :  File "/bin/user_wsgi_wrapper.py", line 136, in import_error_application
2015-02-14 05:17:08,578 :    raise e
2015-02-14 05:17:08,578 :ImportError: No module named models

from __future__ import absolute_import
from django.conf.urls import include, patterns, url
from django.conf import settings
from django.conf.urls.static import static

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
(r'^$', 'yesno.views.Base'),
url(r'^user/', include('user.urls')),
)

/home/tomta20014/mysite

mysite
├── static
   ├── Pikaday-master
      ├── css
      ├── examples
      ├── plugins
      └── tests
   ├── admin
      ├── css
      ├── img
         └── gis
      └── js
          └── admin
   ├── ajax
   ├── carhartl-jquery-cookie-92b7715
      └── test
   ├── css
      ├── ie
         └── images
      └── images
   ├── fonts
   ├── images
      ├── Untitled Folder
      ├── minecraft
      └── wow
   ├── jquery-custom-scrollbar-master
      ├── build
      └── demos
          └── images
   ├── jquery-ui-1.11.2
      └── images
   ├── jquery-ui-1.11.2.custom
      ├── external
         └── jquery
      └── images
   ├── malihu-custom-scrollbar-plugin-3.0.7
      ├── examples
         ├── colorbox
            └── images
         └── images
      ├── js
         ├── minified
         └── uncompressed
      └── source-files
   ├── media
      └── thumbs
   ├── sass
      └── ie
   ├── swf
   └── swfobject
       └── src
├── static_store
   ├── Pikaday-master
      ├── css
      ├── examples
      ├── plugins
      └── tests
   ├── ajax
   ├── carhartl-jquery-cookie-92b7715
      └── test
   ├── css
      ├── ie
         └── images
      └── images
   ├── fonts
   ├── images
      ├── Untitled Folder
      ├── minecraft
      └── wow
   ├── jquery-custom-scrollbar-master
      ├── build
      └── demos
          └── images
   ├── jquery-ui-1.11.2
      ├── external
         └── jquery
      └── images
   ├── jquery-ui-1.11.2.custom
      ├── external
         └── jquery
      └── images
   ├── malihu-custom-scrollbar-plugin-3.0.7
      ├── examples
         ├── colorbox
            └── images
         └── images
      ├── js
         ├── minified
         └── uncompressed
      └── source-files
   ├── media
      └── uploaded_files
   ├── sass
      └── ie
   ├── swf
   ├── swfobject
      └── src
   └── uploaded_files
├── store
├── templates
   └── registration
├── user
   └── templates
       └── user
           └── user_profile_update
               └── upload_pic
├── user_answer
   ├── __pycache__
   └── templates
       └── user_answer
├── user_answer_control
├── user_auction
   └── templates
       └── user_auction
├── user_dividend
├── user_email
   └── templates
       └── user_email
├── user_login
   ├── __pycache__
   └── templates
       └── user_login
├── user_logout
   └── __pycache__
├── user_profile
   ├── __pycache__
   └── templates
       └── user_profile
├── user_profile_update
   ├── __pycache__
   └── templates
       └── user_profile_update
├── user_question
   ├── __pycache__
   └── templates
       └── user_question
├── user_registration
   ├── __pycache__
   └── templates
       └── user_registration
└── yesno

Have a look at this

I fixed it

one of the apps was named user and thats a python reserved name

im not sure why my django let me create it on the local machine