Add django rest swagger to the requirements
This commit is contained in:
@@ -45,9 +45,8 @@ INSTALLED_APPS = (
|
|||||||
'django.contrib.comments',
|
'django.contrib.comments',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
# 3rd party
|
# 3rd party
|
||||||
# South
|
|
||||||
'south',
|
'south',
|
||||||
# Others
|
'rest_framework_swagger',
|
||||||
'filetransfers',
|
'filetransfers',
|
||||||
'taggit',
|
'taggit',
|
||||||
'mptt',
|
'mptt',
|
||||||
@@ -268,6 +267,22 @@ REST_FRAMEWORK = {
|
|||||||
'PAGINATE_BY_PARAM': 'page_size',
|
'PAGINATE_BY_PARAM': 'page_size',
|
||||||
'MAX_PAGINATE_BY': 100,
|
'MAX_PAGINATE_BY': 100,
|
||||||
}
|
}
|
||||||
|
# ---------- Swagger ---------------
|
||||||
|
SWAGGER_SETTINGS = {
|
||||||
|
#"exclude_namespaces": [], # List URL namespaces to ignore
|
||||||
|
#"api_version": '0.1', # Specify your API's version
|
||||||
|
#"api_path": "/", # Specify the path to your API not a root level
|
||||||
|
#"enabled_methods": [ # Specify which methods to enable in Swagger UI
|
||||||
|
# 'get',
|
||||||
|
# 'post',
|
||||||
|
# 'put',
|
||||||
|
# 'patch',
|
||||||
|
# 'delete'
|
||||||
|
#],
|
||||||
|
#"api_key": '', # An API key
|
||||||
|
#"is_authenticated": False, # Set to True to enforce user authentication,
|
||||||
|
#"is_superuser": False, # Set to True to enforce admin only access
|
||||||
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from settings_local import *
|
from settings_local import *
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ urlpatterns = patterns('',
|
|||||||
|
|
||||||
(r'^', include('common.urls')),
|
(r'^', include('common.urls')),
|
||||||
(r'^', include('main.urls')),
|
(r'^', include('main.urls')),
|
||||||
|
url(r'^docs/', include('rest_framework_swagger.urls')),
|
||||||
(r'^documents/', include('documents.urls')),
|
(r'^documents/', include('documents.urls')),
|
||||||
(r'^folders/', include('folders.urls')),
|
(r'^folders/', include('folders.urls')),
|
||||||
(r'^search/', include('dynamic_search.urls')),
|
(r'^search/', include('dynamic_search.urls')),
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ django-pagination==1.0.7
|
|||||||
django-compressor==1.4
|
django-compressor==1.4
|
||||||
django-taggit==0.12
|
django-taggit==0.12
|
||||||
django-mptt==0.6.0
|
django-mptt==0.6.0
|
||||||
|
django-rest-swagger==0.1.14
|
||||||
django-sendfile==0.3.4
|
django-sendfile==0.3.4
|
||||||
djangorestframework==2.3.13
|
djangorestframework==2.3.13
|
||||||
|
|
||||||
|
|||||||
58
setup.py
58
setup.py
@@ -51,35 +51,35 @@ def find_packages(directory):
|
|||||||
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
|
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
|
||||||
return packages
|
return packages
|
||||||
|
|
||||||
install_requires = [
|
install_requires = """
|
||||||
'APScheduler==2.0.3',
|
APScheduler==2.0.3
|
||||||
'cssmin==0.1.4',
|
cssmin==0.1.4
|
||||||
'Django==1.6.5',
|
Django==1.6.5
|
||||||
'django-filetransfers==0.1.0',
|
django-filetransfers==0.1.0
|
||||||
'django-pagination==1.0.7',
|
django-pagination==1.0.7
|
||||||
'django-compressor==1.4',
|
django-compressor==1.4
|
||||||
'django-taggit==0.12',
|
django-taggit==0.12
|
||||||
'django-mptt==0.6.0',
|
django-mptt==0.6.0
|
||||||
'django-sendfile==0.3.4',
|
django-rest-swagger==0.1.14
|
||||||
'djangorestframework==2.3.13',
|
django-sendfile==0.3.4
|
||||||
'GitPython==0.3.2.RC1',
|
djangorestframework==2.3.13
|
||||||
'ghostscript==0.4.1',
|
GitPython==0.3.2.RC1
|
||||||
'Pillow==2.4.0',
|
ghostscript==0.4.1
|
||||||
'PyYAML==3.10',
|
Pillow==2.4.0
|
||||||
'pbs==0.105',
|
PyYAML==3.10
|
||||||
'pdfminer==20110227',
|
pdfminer==20110227
|
||||||
'psutil==0.5.1',
|
psutil==0.5.1
|
||||||
'python-gnupg==0.3.6',
|
pytz==2014.4
|
||||||
'python-hkp==0.1.3',
|
python-gnupg==0.3.6
|
||||||
'python-magic==0.4.6',
|
python-hkp==0.1.3
|
||||||
'pytz==2014.4',
|
python-magic==0.4.6
|
||||||
'requests==0.14.1',
|
requests==0.14.1
|
||||||
'South==0.8.4',
|
sh==1.09
|
||||||
'sh==1.09',
|
slate==0.3
|
||||||
'slate==0.3',
|
South==0.8.4
|
||||||
'unicode-slugify==0.1',
|
unicode-slugify==0.1
|
||||||
'wsgiref==0.1.2',
|
wsgiref==0.1.2
|
||||||
]
|
""".split()
|
||||||
|
|
||||||
with open('README.rst') as f:
|
with open('README.rst') as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|||||||
Reference in New Issue
Block a user