Thank you everyone and my apologies for the late reply, a friend passed. I did as requested and here are the results:
I did the python manage.py check and it came back okay, and as you can see the when the virtual environment is activated it sees the correct version which python3.6, which is different from the system wide version, Cent OS uses it for yum I believe. Please notice my directory layout is different from what was quoted by Melvyn, could this be the issue? Thanks!
On Thursday, June 1, 2017 at 1:53:37 PM UTC-4, F. Nikita Thomas wrote:
-- [user@echo project]$ which python/usr/bin/python
[user@echo project]$ python -VPython 2.7.5[user@echo project]$ . projectenv/bin/activate(projectenv) [user@echo project]$ which python~/Env/project/projectenv/bin/python
(projectenv) [user@echo project]$ python -VPython 3.6.1(projectenv) [user@echo project]$ lsfoobar.py manage.py project projectenv(projectenv) [user@echo project]$ python manage.py checkSystem check identified no issues (0 silenced).(projectenv) [user@echo project]$ ls -al projectenv/total 24drwxrwxr-x 5 user user 4096 Jun 1 14:26 .drwxrwxr-x 4 user user 4096 Jun 1 19:09 ..drwxrwxr-x 3 user user 4096 Jun 1 14:28 bindrwxrwxr-x 2 user user 4096 Jun 1 14:26 includedrwxrwxr-x 3 user user 4096 Jun 1 14:26 lib-rw-rw-r-- 1 user user 60 Jun 1 14:26 pip-selfcheck.json(projectenv) [user@echo project]$ ls -al projectenv/lib/total 12drwxrwxr-x 3 user user 4096 Jun 1 14:26 .drwxrwxr-x 5 user user 4096 Jun 1 14:26 ..drwxrwxr-x 5 user user 4096 Jun 1 14:26 python3.6(projectenv) [user@echo project]$ ls -al projectenv/include/total 8drwxrwxr-x 2 user user 4096 Jun 1 14:26 .drwxrwxr-x 5 user user 4096 Jun 1 14:26 ..lrwxrwxrwx 1 user user 29 Jun 1 14:26 python3.6m -> /usr/local/include/python3.6m(projectenv) [user@echo project]$ ls -al projectenv/lib/python3.6/total 52drwxrwxr-x 5 user user 4096 Jun 1 14:26 .drwxrwxr-x 3 user user 4096 Jun 1 14:26 ..lrwxrwxrwx 1 user user 31 Jun 1 14:26 abc.py -> /usr/local/lib/python3.6/abc.pylrwxrwxrwx 1 user user 34 Jun 1 14:26 base64.py -> /usr/local/lib/python3.6/base64.pylrwxrwxrwx 1 user user 34 Jun 1 14:26 bisect.py -> /usr/local/lib/python3.6/bisect.pylrwxrwxrwx 1 user user 39 Jun 1 14:26 _bootlocale.py -> /usr/local/lib/python3.6/_bootlocale.pylrwxrwxrwx 1 user user 34 Jun 1 14:26 codecs.py -> /usr/local/lib/python3.6/codecs.pylrwxrwxrwx 1 user user 36 Jun 1 14:26 collections -> /usr/local/lib/python3.6/collectionslrwxrwxrwx 1 user user 44 Jun 1 14:26 _collections_abc.py -> /usr/local/lib/python3.6/_collections_abc.pylrwxrwxrwx 1 user user 53 Jun 1 14:26 config-3.6m-x86_64-linux-gnu -> /usr/local/lib/python3.6/config-3.6m-x86_64-linux-gnulrwxrwxrwx 1 user user 32 Jun 1 14:26 copy.py -> /usr/local/lib/python3.6/copy.pylrwxrwxrwx 1 user user 35 Jun 1 14:26 copyreg.py -> /usr/local/lib/python3.6/copyreg.pydrwxrwxr-x 3 user user 4096 Jun 1 14:26 distutilslrwxrwxrwx 1 user user 41 Jun 1 14:26 _dummy_thread.py -> /usr/local/lib/python3.6/_dummy_thread.pylrwxrwxrwx 1 user user 34 Jun 1 14:26 encodings -> /usr/local/lib/python3.6/encodingslrwxrwxrwx 1 user user 32 Jun 1 14:26 enum.py -> /usr/local/lib/python3.6/enum.pylrwxrwxrwx 1 user user 35 Jun 1 14:26 fnmatch.py -> /usr/local/lib/python3.6/fnmatch.pylrwxrwxrwx 1 user user 37 Jun 1 14:26 functools.py -> /usr/local/lib/python3.6/functools.pylrwxrwxrwx 1 user user 38 Jun 1 14:26 __future__.py -> /usr/local/lib/python3.6/__future__.pylrwxrwxrwx 1 user user 39 Jun 1 14:26 genericpath.py -> /usr/local/lib/python3.6/genericpath.pylrwxrwxrwx 1 user user 35 Jun 1 14:26 hashlib.py -> /usr/local/lib/python3.6/hashlib.pylrwxrwxrwx 1 user user 33 Jun 1 14:26 heapq.py -> /usr/local/lib/python3.6/heapq.pylrwxrwxrwx 1 user user 32 Jun 1 14:26 hmac.py -> /usr/local/lib/python3.6/hmac.pylrwxrwxrwx 1 user user 34 Jun 1 14:26 importlib -> /usr/local/lib/python3.6/importliblrwxrwxrwx 1 user user 31 Jun 1 14:26 imp.py -> /usr/local/lib/python3.6/imp.pylrwxrwxrwx 1 user user 30 Jun 1 14:26 io.py -> /usr/local/lib/python3.6/io.pylrwxrwxrwx 1 user user 35 Jun 1 14:26 keyword.py -> /usr/local/lib/python3.6/keyword.pylrwxrwxrwx 1 user user 36 Jun 1 14:26 lib-dynload -> /usr/local/lib/python3.6/lib-dynloadlrwxrwxrwx 1 user user 37 Jun 1 14:26 linecache.py -> /usr/local/lib/python3.6/linecache.pylrwxrwxrwx 1 user user 34 Jun 1 14:26 locale.py -> /usr/local/lib/python3.6/locale.py-rw-rw-r-- 1 user user 0 Jun 1 14:26 no-global-site-packages.txtlrwxrwxrwx 1 user user 34 Jun 1 14:26 ntpath.py -> /usr/local/lib/python3.6/ntpath.pylrwxrwxrwx 1 user user 36 Jun 1 14:26 operator.py -> /usr/local/lib/python3.6/operator.py-rw-rw-r-- 1 user user 10 Jun 1 14:26 orig-prefix.txtlrwxrwxrwx 1 user user 30 Jun 1 14:26 os.py -> /usr/local/lib/python3.6/os.pylrwxrwxrwx 1 user user 37 Jun 1 14:26 posixpath.py -> /usr/local/lib/python3.6/posixpath.pydrwxrwxr-x 2 user user 4096 Jun 1 14:26 __pycache__lrwxrwxrwx 1 user user 34 Jun 1 14:26 random.py -> /usr/local/lib/python3.6/random.pylrwxrwxrwx 1 user user 35 Jun 1 14:26 reprlib.py -> /usr/local/lib/python3.6/reprlib.pylrwxrwxrwx 1 user user 30 Jun 1 14:26 re.py -> /usr/local/lib/python3.6/re.pylrwxrwxrwx 1 user user 39 Jun 1 14:26 rlcompleter.py -> /usr/local/lib/python3.6/rlcompleter.pylrwxrwxrwx 1 user user 34 Jun 1 14:26 shutil.py -> /usr/local/lib/python3.6/shutil.pydrwxrwxr-x 16 user user 4096 Jun 1 14:28 site-packages-rw-rw-r-- 1 user user 27543 Jun 1 14:26 site.pylrwxrwxrwx 1 user user 39 Jun 1 14:26 sre_compile.py -> /usr/local/lib/python3.6/sre_compile.pylrwxrwxrwx 1 user user 41 Jun 1 14:26 sre_constants.py -> /usr/local/lib/python3.6/sre_constants.pylrwxrwxrwx 1 user user 37 Jun 1 14:26 sre_parse.py -> /usr/local/lib/python3.6/sre_parse.pylrwxrwxrwx 1 user user 32 Jun 1 14:26 stat.py -> /usr/local/lib/python3.6/stat.pylrwxrwxrwx 1 user user 34 Jun 1 14:26 struct.py -> /usr/local/lib/python3.6/struct.pylrwxrwxrwx 1 user user 35 Jun 1 14:26 tarfile.py -> /usr/local/lib/python3.6/tarfile.pylrwxrwxrwx 1 user user 36 Jun 1 14:26 tempfile.py -> /usr/local/lib/python3.6/tempfile.pylrwxrwxrwx 1 user user 36 Jun 1 14:26 tokenize.py -> /usr/local/lib/python3.6/tokenize.pylrwxrwxrwx 1 user user 33 Jun 1 14:26 token.py -> /usr/local/lib/python3.6/token.pylrwxrwxrwx 1 user user 33 Jun 1 14:26 types.py -> /usr/local/lib/python3.6/types.pylrwxrwxrwx 1 user user 36 Jun 1 14:26 warnings.py -> /usr/local/lib/python3.6/warnings.pylrwxrwxrwx 1 user user 35 Jun 1 14:26 weakref.py -> /usr/local/lib/python3.6/weakref.pylrwxrwxrwx 1 user user 39 Jun 1 14:26 _weakrefset.py -> /usr/local/lib/python3.6/_weakrefset.py(projectenv) [user@echo project]$ ls -al projectenv/lib/python3.6/site-packages/total 260drwxrwxr-x 16 user user 4096 Jun 1 14:28 .drwxrwxr-x 5 user user 4096 Jun 1 14:26 ..drwxrwxr-x 19 user user 4096 Jun 1 14:28 djangodrwxrwxr-x 2 user user 4096 Jun 1 14:28 Django-1.11.2.dist-info-rw-rw-r-- 1 user user 126 Jun 1 14:26 easy_install.pydrwxrwxr-x 2 user user 4096 Jun 1 14:28 mysqlclient-1.3.10.dist-info-rwxrwxr-x 1 user user 188728 Jun 1 14:28 _mysql.cpython-36m-x86_64-linux-gnu.sodrwxrwxr-x 4 user user 4096 Jun 1 14:28 MySQLdb-rw-rw-r-- 1 user user 2335 Jun 1 14:28 _mysql_exceptions.pydrwxrwxr-x 11 user user 4096 Jun 1 14:26 pipdrwxrwxr-x 2 user user 4096 Jun 1 14:26 pip-9.0.1.dist-infodrwxrwxr-x 5 user user 4096 Jun 1 14:26 pkg_resourcesdrwxrwxr-x 2 user user 4096 Jun 1 14:28 __pycache__drwxrwxr-x 4 user user 4096 Jun 1 14:28 pytzdrwxrwxr-x 2 user user 4096 Jun 1 14:28 pytz-2017.2.dist-infodrwxrwxr-x 5 user user 4096 Jun 1 14:26 setuptoolsdrwxrwxr-x 2 user user 4096 Jun 1 14:26 setuptools-36.0.1.dist-infodrwxrwxr-x 6 user user 4096 Jun 1 14:26 wheeldrwxrwxr-x 2 user user 4096 Jun 1 14:26 wheel-0.29.0.dist-info(projectenv) [user@echo project]$
On Thursday, June 1, 2017 at 1:53:37 PM UTC-4, F. Nikita Thomas wrote:
Hi!I'm having a problem with configuring uWSGI with Django, when I run the development server everything 'seems' okay, except that I am missing styling on the html, and when I test run uWSGI from the command line I get:
(projectenv) [user@echo project]$ uwsgi --http :8000 --chdir /home/user/env/project/project/ --module project.wsgi --virtualenv /home/user/env/projectenv/ *** Starting uWSGI 2.0.15 (64bit) on [Thu Jun 1 13:37:09 2017] ***compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-11) on 30 May 2017 20:50:53os: Linux-3.10.0-514.10.2.el7.x86_64 #1 SMP Fri Mar 3 00:04:05 UTC 2017 nodename: echo.commachine: x86_64clock source: unixpcre jit disableddetected number of CPU cores: 2current working directory: /home/user/env/projectdetected binary path: /usr/local/bin/uwsgichdir() to /home/user/env/project/project/ *** WARNING: you are running uWSGI without its master process manager ***your processes number limit is 4096your memory page size is 4096 bytesdetected max file descriptor number: 1024lock engine: pthread robust mutexesthunder lock: disabled (you can enable it with --thunder-lock)uWSGI http bound on :8000 fd 4spawned uWSGI http 1 (pid: 22015)uwsgi socket 0 bound to TCP address 127.0.0.1:38735 (port auto-assigned) fd 3Python version: 3.6.1 (default, May 29 2017, 14:21:37) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]Set PythonHome to /home/user/env/projectenv/*** Python threads support is disabled. You can enable it with --enable-threads ***Python main interpreter initialized at 0x175a660your server socket listen backlog is limited to 100 connectionsyour mercy for graceful operations on workers is 60 secondsmapped 72768 bytes (71 KB) for 1 cores*** Operational MODE: single process ***ModuleNotFoundError: No module named 'project'unable to load app 0 (mountpoint='') (callable not found or import error)*** no app loaded. going in full dynamic mode ****** uWSGI is running in multiple interpreter mode ***spawned uWSGI worker 1 (and the only) (pid: 22014, cores: 1)And I don't know whether it's a path or import thing or what. Thanks.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f461d6ae-abde-4064-8ff9-e562791e9947%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment