Updated documentation for development

reminder
Etzelia 2018-10-20 21:55:24 -05:00
parent f55c98779a
commit a314e51262
1 changed files with 36 additions and 4 deletions

View File

@ -16,10 +16,42 @@ Once you have a working Django project, you will need to install Minecraft Manag
Installation Clone MCM
------------ ---------
Install Minecraft Manager with pip. In your Django project, import your forked MCM repository as ``minecraft_manager``
:: ::
pip install minecraft-manager-1.0.tar.gz git clone https://git.etztech.xyz/Etzelia/MinecraftManagerDjango.git minecraft_manager
Add To Project
--------------
In ``settings.py`` add minecraft_manager to INSTALLED_APPS
Make sure to set up the database once the app is installed.
::
python manage.py makemigrations
python manage.py migrate
Add MCM urls to your ``urls.py``
::
path('whitelist/', include('minecraft_manager.urls')),
path('api/', include('minecraft_manager.api.urls')),
path('web/', include('minecraft_manager.external.urls'))
.. note::
Django doesn't provide login/logout templates by default, so MCM has some generic ones if needed.
::
path('accounts/login/', auth_views.LoginView.as_view(template_name='minecraft_manager/login.html'), name='login'),
path('accounts/logout/', auth_views.LogoutView.as_view(template_name='minecraft_manager/logged_out.html'), name='logout'),
Configure Settings
------------------
MCM has plenty of optional settings, however there are a few required ones. Refer to :ref:`django-settings` for a complete list.