Under Ubuntu, running Django project failed with error:
(env36) root@JD:~/xueyiwang# python manage.py runserver 0.0.0.0:8000
Performing system checks...
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f47dd74a950>
Traceback (most recent call last):
File "/root/env36/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "/root/env36/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run
self.check(display_num_errors=True)
File "/root/env36/lib/python3.6/site-packages/django/core/management/base.py", line 410, in check
raise SystemCheckError(msg)
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
ERRORS:
?: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting.
The error may be caused by a problem in setting the static file directory in settings
STATIC_ROOT=os.path.join(BASE_DIR,"static/")#wrong
STATIC_ROOT=os.path.join(BASE_DIR,"/static/")#correct
Similar Posts:
- Django exception-ImportError: No module named django.core.management
- Django startup error: generator expression must be parentized
- [Solved] Djiango Create Migrations Error: query = query.decode(errors=’replace’) AttributeError: ‘str’ object has no attribute ‘decode’
- django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named ‘M…
- ImportError: No module named pytz
- Python AttributeError: ‘unicode’ object has no attribute ‘tzinfo’
- Django Run Error: RuntimeError: maximum recursion depth exceeded while calling a Python object
- [Solved] Django cannot create an app after creating a project
- Django: How to Solve Using Pymysql Error
- Django logs detailed error reporting information