Exemplo n.º 1
0
# serve to show the default.

import sys
import os
import django

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../testproject'))
from django_stormpath import __version__, __short_version__

from testproject.utils import set_env

set_env('../testproject/.env')

django.setup()

# -- General configuration -----------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
    'sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage',
    'sphinx.ext.ifconfig'
]
Exemplo n.º 2
0
#!/usr/bin/env python
import os
import sys

from testproject.utils import set_env

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.settings")
    set_env(".env")
    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
Exemplo n.º 3
0
#!/usr/bin/env python
import os
import sys

from testproject.utils import set_env

sys.path.insert(0, os.path.abspath(
    os.path.join(os.path.dirname(__file__), "..")))

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.settings")
    set_env('.env')
    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)

Exemplo n.º 4
0
import sys
import os
import django

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../testproject'))
from django_stormpath import __version__, __short_version__

from testproject.utils import set_env


set_env('../testproject/.env')

django.setup()

# -- General configuration -----------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.ifconfig']


# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']