Hi there. I am trying to start a site based on Django 1.9 on Python 3.5.
I run the wizard to create basing files. I've configured following: 1.run the command
python ./manage.py startapp myapp 2. Then I edit settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/home/<my name>/<my_test_project>/db.sqlite', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '' } }
...
INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', # Uncomment the next line to enable the admin: 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'mysite.myapp', )
AND: 3. Try to run:
./manage.py syncdb
Then have an error((
Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 118, in create cls = getattr(mod, cls_name)AttributeError: module 'tyres' has no attribute 'myapp'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "./manage.py", line 10, in <module>
....
File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlockedImportError: No module named 'tyres.myapp'
I'm looking for some help to solve it.
If I comment the 'mysite.myapp', in settings, the running of ./manage.py syncdb leads to nothing:
./manage.py syncdb Unknown command: 'syncdb'Type 'manage.py help' for usage.
:((((((