Hi Melvyn and yes!!:
[user@echo project]$ uwsgi --http :8000 --chdir /home/user/Env/project/ --module project.wsgi --virtualenv /home/user/Env/project/projectenv/*** Starting uWSGI 2.0.15 (64bit) on [Fri Jun 2 19:54:37 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 2017nodename: 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/*** 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: 23477)uwsgi socket 0 bound to TCP address 127.0.0.1:38743 (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/project/projectenv/*** Python threads support is disabled. You can enable it with --enable-threads ***Python main interpreter initialized at 0xf2a6f0your 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 ***WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0xf2a6f0 pid: 23476 (default app)*** uWSGI is running in multiple interpreter mode ***spawned uWSGI worker 1 (and the only) (pid: 23476, cores: 1)[pid: 23476|app: 0|req: 1/1] 74.70.110.103 () {40 vars in 738 bytes} [Fri Jun 2 23:55:20 2017] GET / => generated 1716 bytes in 9 msecs (HTTP/1.1 200) 3 headers in 95 bytes (1 switches on core 0)[pid: 23476|app: 0|req: 2/2] 74.70.110.103 () {40 vars in 738 bytes} [Fri Jun 2 23:55:21 2017] GET / => generated 1716 bytes in 2 msecs (HTTP/1.1 200) 3 headers in 95 bytes (1 switches on core 0)[pid: 23476|app: 0|req: 3/3] 74.70.110.103 () {38 vars in 719 bytes} [Fri Jun 2 23:55:51 2017] GET /admin/ => generated 0 bytes in 26 msecs (HTTP/1.1 302) 7 headers in 265 bytes (1 switches on core 0)[pid: 23476|app: 0|req: 4/4] 74.70.110.103 () {38 vars in 756 bytes} [Fri Jun 2 23:55:51 2017] GET /admin/login/?next=/admin/ => generated 1650 bytes in 52 msecs (HTTP/1.1 200) 7 headers in 381 bytes (1 switches on core 0)Not Found: /static/admin/css/base.css[pid: 23476|app: 0|req: 5/5] 74.70.110.103 () {40 vars in 788 bytes} [Fri Jun 2 23:55:51 2017] GET /static/admin/css/base.css => generated 2009 bytes in 7 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 0)Not Found: /static/admin/css/login.css
So as you can see the only thing that's screwed up is the missing CSS and JavaScript files, ::cough, Help!!:: I am using this document -> https://gist.github.com/evildmp/3094281 , and wondering if this is fit to use to finish setting up Django & nginx, and could you recommend a canonical source for implementing good security for Django apps. Otherwise, thanks so much for all your help, you've made a rough time go a lot smoother.
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/e16cc31f-475c-4892-b700-409f803f6440%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment