Hey, have a small problem. Today was messing around trying to add a multiple image upload integration in django admin panel. Couldnt get it working. Beforehand I duplicated the whole project folder, as a backup. Then I deleted the modified one, renamed the backup as dtuts and tried to run things as normal and the app is broken. deleted cached files and deleted the venv, recreated venv and install django and ckeditor inside it. Still broken. Thought I could be able to copy paste a duplicate backup in case things went wrong. Boy was I wrong, What a fking mess. Heres the apache log:
[Thu Dec 01 06:59:53.278214 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] mod_wsgi (pid=27439): Target WSGI script '/var/www/dtuts/dsite1/dsite1/wsgi.py' cannot be loaded as Python module. [Thu Dec 01 06:59:53.278308 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] mod_wsgi (pid=27439): Exception occurred processing WSGI script '/var/www/dtuts/dsite1/dsite1/wsgi.py'. [Thu Dec 01 06:59:53.279167 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] Traceback (most recent call last): [Thu Dec 01 06:59:53.279219 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "/var/www/dtuts/dsite1/dsite1/wsgi.py", line 16, in <module> [Thu Dec 01 06:59:53.279224 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] application = get_wsgi_application() [Thu Dec 01 06:59:53.279231 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "/var/www/dtuts/venv/lib/python3.5/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application [Thu Dec 01 06:59:53.279234 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] django.setup(set_prefix=False) [Thu Dec 01 06:59:53.279239 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "/var/www/dtuts/venv/lib/python3.5/site-packages/django/__init__.py", line 27, in setup [Thu Dec 01 06:59:53.279242 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] apps.populate(settings.INSTALLED_APPS) [Thu Dec 01 06:59:53.279247 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "/var/www/dtuts/venv/lib/python3.5/site-packages/django/apps/registry.py", line 108, in populate [Thu Dec 01 06:59:53.279250 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] app_config.import_models(all_models) [Thu Dec 01 06:59:53.279255 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "/var/www/dtuts/venv/lib/python3.5/site-packages/django/apps/config.py", line 199, in import_models [Thu Dec 01 06:59:53.279257 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] self.models_module = import_module(models_module_name) [Thu Dec 01 06:59:53.279263 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module [Thu Dec 01 06:59:53.279266 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] return _bootstrap._gcd_import(name[level:], package, level) [Thu Dec 01 06:59:53.279270 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "<frozen importlib._bootstrap>", line 986, in _gcd_import [Thu Dec 01 06:59:53.279276 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "<frozen importlib._bootstrap>", line 969, in _find_and_load [Thu Dec 01 06:59:53.279281 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked [Thu Dec 01 06:59:53.279286 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "<frozen importlib._bootstrap>", line 673, in _load_unlocked [Thu Dec 01 06:59:53.279291 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "<frozen importlib._bootstrap_external>", line 661, in exec_module [Thu Dec 01 06:59:53.279296 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "<frozen importlib._bootstrap_external>", line 767, in get_code [Thu Dec 01 06:59:53.279302 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "<frozen importlib._bootstrap_external>", line 727, in source_to_code [Thu Dec 01 06:59:53.279307 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed [Thu Dec 01 06:59:53.279332 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] File "/var/www/dtuts/dsite1/blog/models.py", line 7 [Thu Dec 01 06:59:53.279341 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] title = models.CharField(max_length = 140) [Thu Dec 01 06:59:53.279367 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] ^ [Thu Dec 01 06:59:53.279376 2016] [wsgi:error] [pid 27439:tid 140254376425216] [remote 192.168.1.6:33418] IndentationError: unindent does not match any outer indentation level -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
