Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import struct
- >>> print struct.calcsize("P") * 8
- 64
- [Mon Feb 20 21:42:40.312829 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] mod_wsgi (pid=19537): Target WSGI script '/home/james/sites/dse/django.wsgi' cannot be loaded as Python module.
- [Mon Feb 20 21:42:40.312872 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] mod_wsgi (pid=19537): Exception occurred processing WSGI script '/home/james/sites/dse/django.wsgi'.
- [Mon Feb 20 21:42:40.312916 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] Traceback (most recent call last):
- [Mon Feb 20 21:42:40.312953 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] File "/home/james/sites/dse/django.wsgi", line 12, in <module>
- [Mon Feb 20 21:42:40.312997 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] from django.core.wsgi import get_wsgi_application
- [Mon Feb 20 21:42:40.313006 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] File "/usr/lib/python2.7/site-packages/django/__init__.py", line 3, in <module>
- [Mon Feb 20 21:42:40.313056 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] from django.utils.version import get_version
- [Mon Feb 20 21:42:40.313066 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] File "/usr/lib/python2.7/site-packages/django/utils/version.py", line 3, in <module>
- [Mon Feb 20 21:42:40.313078 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] import datetime
- [Mon Feb 20 21:42:40.313103 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] ImportError: /usr/lib/python2.7/lib-dynload/datetime.so: wrong ELF class: ELFCLASS64
- [Mon Feb 20 21:42:40.313185 2017] [access_compat:error] [pid 19537] [client 146.179.195.99:62898] AH01797: client denied by server configuration: /usr/share/httpd/error/HTTP_INTERNAL_SERVER_ERROR.html.var
- [james@tryptophan ~]$ python2
- Python 2.7.13 (default, Dec 21 2016, 07:16:46)
- [GCC 6.2.1 20160830] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import datetime
- >>> import django
- >>> from django.core.wsgi import get_wsgi_application
- >>> from django.utils.version import get_version
- [james@tryptophan dse]$ cat django.wsgi
- import os
- import sys
- sys.path.append('/home/james/sites/dse/django_dse')
- sys.path.append('/home/james/sites/dse')
- os.environ['DJANGO_SETTINGS_MODULE'] = 'django_dse.settings'
- from django.core.wsgi import get_wsgi_application
- application = get_wsgi_application()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement