Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre-Yves David
swh-web
Commits
ca285cc8
Commit
ca285cc8
authored
7 years ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
last fixes for debian jessie: ensure application execution
parent
5a48a51d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/swh-web-dev
+7
-4
7 additions, 4 deletions
bin/swh-web-dev
swh/web/api/templates/apidoc.html
+2
-2
2 additions, 2 deletions
swh/web/api/templates/apidoc.html
swh/web/settings.py
+2
-0
2 additions, 0 deletions
swh/web/settings.py
with
11 additions
and
6 deletions
bin/swh-web-dev
+
7
−
4
View file @
ca285cc8
...
...
@@ -10,13 +10,17 @@ import argparse
import
django
import
os
from
django.core
import
management
# need to setup django settings before importing django modules
# with django 1.7 (debian jessie)
os
.
environ
.
setdefault
(
"
DJANGO_SETTINGS_MODULE
"
,
"
swh.web.settings
"
)
# noqa
from
django.core.management.commands.runserver
import
(
from
django.core
import
management
# noqa
from
django.core.management.commands.runserver
import
(
# noqa
Command
as
runserver
)
from
swh.web
import
config
from
swh.web
import
config
# noqa
# Default configuration file
DEFAULT_CONF_FILE
=
'
~/.config/swh/webapp.yml
'
...
...
@@ -40,6 +44,5 @@ if __name__ == '__main__':
swh_web_config
=
config
.
get_config
(
config_path
)
runserver
.
default_port
=
swh_web_config
[
'
port
'
]
runserver
.
default_addr
=
swh_web_config
[
'
host
'
]
os
.
environ
.
setdefault
(
"
DJANGO_SETTINGS_MODULE
"
,
"
swh.web.settings
"
)
django
.
setup
()
management
.
call_command
(
'
runserver
'
)
This diff is collapsed.
Click to expand it.
swh/web/api/templates/apidoc.html
+
2
−
2
View file @
ca285cc8
...
...
@@ -18,7 +18,7 @@
{{ docstring | safe_docstring_display | safe }}
</div>
{% endif %}
{% if response_data
and response_data is not none
%}
{% if response_data %}
<div
class=
"response-data"
>
<h2>
Request
</h2>
<pre><strong>
{{ request.method }}
</strong>
{{ request.build_absolute_uri }}
</pre>
...
...
@@ -28,7 +28,7 @@
<h3>
Status Code
</h3>
<pre
class=
"error"
>
{{ status_code }}
</pre>
{% endif %}
{% if headers_data
and headers_data is not none
%}
{% if headers_data %}
<h3>
Headers
</h3>
{% for header_name, header_value in headers_data.items %}
<pre><strong>
{{ header_name }}
</strong>
{{ header_value | urlize_header_links | safe }}
</pre>
...
...
This diff is collapsed.
Click to expand it.
swh/web/settings.py
+
2
−
0
View file @
ca285cc8
...
...
@@ -181,3 +181,5 @@ LOGGING = {
},
},
}
SILENCED_SYSTEM_CHECKS
=
[
'
1_7.W001
'
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment