Metadata-Version: 2.1
Name: jsl-django-sitemap
Version: 1.1.9
Summary: JSL Django Sitemap is a Django utility which iterates over all the url patterns in your main Django project and creates a ready to use sitemap. The sitemap.xml is useful in crawlers such as Google, Bing, Yahoo. We hope you like our app! Leave a star on our GitHub repository. Thanks!
Home-page: https://github.com/JSoftwareLabs/jsl_django_sitemap
Author: JSoftwareLabs.com
Author-email: info@jsoftwarelabs.com
License: MIT
Download-URL: https://github.com/JSoftwareLabs/jsl_django_sitemap/archive/refs/tags/1.1.9.tar.gz
Description: # JSL Django Sitemap
        
        [![Upload Python Package](https://github.com/JSoftwareLabs/jsl_django_sitemap/actions/workflows/python-publish.yml/badge.svg)](https://github.com/JSoftwareLabs/jsl_django_sitemap/actions/workflows/python-publish.yml)
        
        JSL Django Sitemap is a sitemap.xml creator for Django projects which iterates over all the url patterns in your main
        Django project and creates a ready to use sitemap. The sitemap.xml is useful in crawlers such as Google, Bing, Yahoo. We
        hope you like our app! Leave a star on our GitHub repository. Thanks!
        
        # Our Home page [JSoftwareLabs.com](https://www.jsoftwarelabs.com/)
        
        ## Installation
        
        You can install the JSL Django Sitemap from [PyPI](https://pypi.org/project/jsl-django-sitemap/):
        
            pip install jsl-django-sitemap
        
        ---
        
        # Example Usage
        
        Add necessary imports
        ---
        
        ```python
        from jsl_django_sitemap.views import sitemaps
        from django.contrib.sitemaps.views import sitemap
        from django.urls import path
        
        ```
        
        In your main django project urls.py file add below in urlpatterns
        ---
        
        ```python
        
        path('sitemap.xml', sitemap, {'sitemaps': sitemaps},
        	 name='django.contrib.sitemaps.views.sitemap'),
        ```
        
        In your main settings.py file add below
        ---
        
        ```python
        
        JSL_DJANGO_SITEMAP_SETTINGS = {
        	"ENABLE": True,
        	"FETCH_URL_FROM": "pattern",
        	"INCLUDE_APPS": ("ALL",)
        }
        
        ```
        
        # add django built in sitemap in the INSTALLED_APPS
        
        ```python
        INSTALLED_APPS = [
        	# ...
        	'django.contrib.sitemaps',
        ]
        ```
        
        > **_NOTE:_**
        > 1. "ALL" means to include all the urls
        > 2. If you want specific apps to be included in sitemap use below. Provide comma separated tuple containing your app name
        > 3. "INCLUDE_APPS": ("myapp1","myapp2")
        > 4. FETCH_URL_FROM: should be one value from the list ["name", "pattern"]
        > 5. default for FETCH_URL_FROM is "pattern"
        > 6. By default, if pattern is provided then "^" prefix and "$" suffix in urlpattern is removed.
        
        ## View generated sitemap:
        
        Start the development server and visit http://127.0.0.1:8000/sitemap.xml
        
        -----
        
        ## Current Releases
        
        [1.1.9](https://github.com/JSoftwareLabs/jsl_django_sitemap/releases/tag/1.1.9)
        
        
Keywords: Django sitemap,JSoftwareLabs,sitemap.xml,Django automated sitemaps
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown
