Skip to content

Commit

Permalink
Django contrib docs update.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Nov 12, 2019
1 parent a685123 commit 0da049c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions docs/source/index_contrib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ with the help of ``uwsgicfg.py`` (constructed in a usual for **uwsgiconf** manne
from os.path import dirname, abspath, join
from uwsgiconf.presets.nice import PythonSection
section = PythonSection(
wsgi_module=join(dirname(abspath(__file__)), 'wsgi.py')
).networking.register_socket(
PythonSection.networking.sockets.http('127.0.0.1:8000')
section = PythonSection.bootstrap(
'http://127.0.0.1:8000',
wsgi_module=join(dirname(abspath(__file__)), 'wsgi.py')
)
...
Expand Down Expand Up @@ -128,12 +127,9 @@ to start your Django project on system start.
; Dump config to file.
$ ./manage.py uwsgi_sysinit > myapp.service
; Copy config into standard location
$ sudo cp myapp.service /etc/systemd/system/
; Reload available configs information and run service
$ sudo sh -c "systemctl daemon-reload; systemctl start myapp.service"
; Wire up the service config into system directory and start service
$ sudo systemctl enable --now myapp.service
; Watch application log realtime (if syslog is used)
$ journalctl -fu myapp.service
; Watch application log realtime
$ sudo journalctl -fu myapp.service

0 comments on commit 0da049c

Please sign in to comment.