Django Document me
package that let you create your docs not coding it 😉😉 .
download the latest package from the releases here
or using curl (to be fast and look cool 😎😎😎):
curl -o django-docme.tar.gz -L https://github.com/zarqizoubir/django-docme/releases/download/v0.2.0/django-docme-0.2.0.tar.gz
or if you want to use a specific version :
curl -o django-docme.tar.gz -L https://github.com/zarqizoubir/django-docme/releases/download/v0.2.0/django-docme-{version}.tar.gz
pip install ./package_name.tar.gz
setting.py
:
```python
INSTALLED_APPS = [
...,
"rest_framework",
"docme",
"mdeditor",
...,
]MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
3. add this to `urls.py` :
```python
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
...,
path(r'mdeditor/', include('mdeditor.urls')),
path("docme/", include("docme.urls")), # Important don't change the docme/ urls otherwise it's not work .
...,
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from docme.views import index
urlpatterns = [
...,
path("your_path/", index), # enter the path you want
]
python manage.py migrate
.python manage.py runserver
.http://127.0.0.1:8000/your_path
.
and here you go .This is just a quick setup and all the information could be found in website here