Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. >>> import struct
  2. >>> print struct.calcsize("P") * 8
  3. 64
  4.  
  5. [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.
  6. [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'.
  7. [Mon Feb 20 21:42:40.312916 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] Traceback (most recent call last):
  8. [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>
  9. [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
  10. [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>
  11. [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
  12. [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>
  13. [Mon Feb 20 21:42:40.313078 2017] [wsgi:error] [pid 19537] [client 146.179.195.99:62898] import datetime
  14. [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
  15. [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
  16.  
  17. [james@tryptophan ~]$ python2
  18. Python 2.7.13 (default, Dec 21 2016, 07:16:46)
  19. [GCC 6.2.1 20160830] on linux2
  20. Type "help", "copyright", "credits" or "license" for more information.
  21. >>> import datetime
  22. >>> import django
  23. >>> from django.core.wsgi import get_wsgi_application
  24. >>> from django.utils.version import get_version
  25.  
  26. [james@tryptophan dse]$ cat django.wsgi
  27. import os
  28. import sys
  29.  
  30. sys.path.append('/home/james/sites/dse/django_dse')
  31. sys.path.append('/home/james/sites/dse')
  32.  
  33. os.environ['DJANGO_SETTINGS_MODULE'] = 'django_dse.settings'
  34.  
  35. from django.core.wsgi import get_wsgi_application
  36. application = get_wsgi_application()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement