Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
news
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sartika Aritonang
news
Commits
21c44928
Commit
21c44928
authored
4 years ago
by
Sartika Aritonang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
8d346a02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
__init__.py
stbi/Lib/site-packages/django/__init__.py
+24
-0
No files found.
stbi/Lib/site-packages/django/__init__.py
0 → 100644
View file @
21c44928
from
django.utils.version
import
get_version
VERSION
=
(
3
,
0
,
6
,
'final'
,
0
)
__version__
=
get_version
(
VERSION
)
def
setup
(
set_prefix
=
True
):
"""
Configure the settings (this happens as a side effect of accessing the
first setting), configure logging and populate the app registry.
Set the thread-local urlresolvers script prefix if `set_prefix` is True.
"""
from
django.apps
import
apps
from
django.conf
import
settings
from
django.urls
import
set_script_prefix
from
django.utils.log
import
configure_logging
configure_logging
(
settings
.
LOGGING_CONFIG
,
settings
.
LOGGING
)
if
set_prefix
:
set_script_prefix
(
'/'
if
settings
.
FORCE_SCRIPT_NAME
is
None
else
settings
.
FORCE_SCRIPT_NAME
)
apps
.
populate
(
settings
.
INSTALLED_APPS
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment