Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #253 from alonisser/master
Browse files Browse the repository at this point in the history
Fixing docs about deployment and serving static files
  • Loading branch information
foxmask committed Oct 16, 2017
2 parents c0945de + 4d1e79b commit 38b2d85
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ If you are installing the project from scratch, do not forget to create a super
python manage.py createsuperuser
Start the application
Start the application in development/local mode
---------------------

.. code-block:: bash
Expand All @@ -37,3 +37,17 @@ Start the application
Now open your browser and go to 127.0.0.1:8000/th/ to start using the application


Note, that if DEBUG Setting in the settings.py is set to DEBUG=False static files won't be served automatically and you'll need to setup a web server (e.g nginx or apache) to serve the statics files from the statics folder.

If you do wish to run locally with DEBUG=False and automatic static files served you'll need to run


.. code-block:: bash
python manage.py runserver --insecure
This isn't a settings recommended for production deployments. for production deployments please follow the guide provided in django docs_

.. _Docs: https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/

0 comments on commit 38b2d85

Please sign in to comment.