我正在apache服务器上设置django项目.在使用manage.py runtimeslserver的PC上,它运行良好.
当我加载到apache服务器上时,我可以运行manage.py migrate和collectstatic以及许多安装程序.
但是,当我尝试进入网页时,出现以下错误消息:“找不到数据文件,数据文件生成失败”:
Environment:
Request Method: GET
Request URL: https://ekim.hexiawebservices.co.uk/
Django Version: 1.11.5
Python Version: 2.7.12
Installed Applications:
['django.contrib.admin',
'registration',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'social_django',
'djangosecure',
'sslserver',
'ekim']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/var/www/ekim/env/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/var/www/ekim/env/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
172. resolver_match = resolver.resolve(request.path_info)
File "/var/www/ekim/env/lib/python2.7/site-packages/django/urls/resolvers.py" in resolve
362. for pattern in self.url_patterns:
File "/var/www/ekim/env/lib/python2.7/site-packages/django/utils/functional.py" in __get__
35. res = instance.__dict__[self.name] = self.func(instance)
File "/var/www/ekim/env/lib/python2.7/site-packages/django/urls/resolvers.py" in url_patterns
405. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/var/www/ekim/env/lib/python2.7/site-packages/django/utils/functional.py" in __get__
35. res = instance.__dict__[self.name] = self.func(instance)
File "/var/www/ekim/env/lib/python2.7/site-packages/django/urls/resolvers.py" in urlconf_module
398. return import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/__init__.py" in import_module
37. __import__(name)
File "/var/www/ekim/ekim/urls.py" in
30. url(r'^accounts/', include('registration.backends.hmac.urls')),
File "/var/www/ekim/env/lib/python2.7/site-packages/django/conf/urls/__init__.py" in include
50. urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/__init__.py" in import_module
37. __import__(name)
File "/var/www/ekim/env/lib/python2.7/site-packages/registration/backends/hmac/urls.py" in
10. from . import views
File "/var/www/ekim/env/lib/python2.7/site-packages/registration/backends/hmac/views.py" in
15. from registration.views import ActivationView as BaseActivationView
File "/var/www/ekim/env/lib/python2.7/site-packages/registration/views.py" in
12. from registration.forms import RegistrationForm
File "/var/www/ekim/env/lib/python2.7/site-packages/registration/forms.py" in
19. from . import validators
File "/var/www/ekim/env/lib/python2.7/site-packages/registration/validators.py" in
10. from confusable_homoglyphs import confusables
File "/var/www/ekim/env/lib/python2.7/site-packages/confusable_homoglyphs/confusables.py" in
7. from .categories import unique_aliases, alias
File "/var/www/ekim/env/lib/python2.7/site-packages/confusable_homoglyphs/categories.py" in
147. raise Exception('Datafile not found, datafile generation failed!')
Exception Type: Exception at /
Exception Value: Datafile not found, datafile generation failed!
我已经尝试将其整理3个小时,但无法解决.任何帮助,不胜感激.