Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
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
OpenEdx
django-wiki
Commits
f6e9011f
Commit
f6e9011f
authored
Jul 25, 2017
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.9 upgrades.
Related to
https://github.com/django-wiki/django-wiki/pull/507
parent
5600743f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
testproject/testproject/settings.py
+1
-2
testproject/testproject/urls.py
+2
-3
No files found.
testproject/testproject/settings.py
View file @
f6e9011f
...
@@ -3,7 +3,6 @@ from os import path as os_path
...
@@ -3,7 +3,6 @@ from os import path as os_path
import
os
import
os
PROJECT_PATH
=
os_path
.
abspath
(
os_path
.
split
(
__file__
)[
0
])
PROJECT_PATH
=
os_path
.
abspath
(
os_path
.
split
(
__file__
)[
0
])
PROJECT_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
DEBUG
=
True
DEBUG
=
True
...
@@ -80,7 +79,7 @@ TEMPLATES = [
...
@@ -80,7 +79,7 @@ TEMPLATES = [
{
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[
'DIRS'
:
[
os
.
path
.
join
(
PROJECT_
DIR
,
'templates'
),
os
.
path
.
join
(
PROJECT_
PATH
,
'templates'
),
],
],
'APP_DIRS'
:
True
,
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'OPTIONS'
:
{
...
...
testproject/testproject/urls.py
View file @
f6e9011f
from
django.conf.urls
import
include
,
url
from
django.conf.urls
import
include
,
url
from
django.conf
import
settings
from
django.conf
import
settings
from
django.contrib.staticfiles.urls
import
staticfiles_urlpatterns
from
django.contrib.staticfiles.urls
import
staticfiles_urlpatterns
from
django.views
import
static
from
django.views
.static
import
serve
as
static_serve
from
django.contrib
import
admin
from
django.contrib
import
admin
admin
.
autodiscover
()
admin
.
autodiscover
()
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^admin/doc/'
,
include
(
'django.contrib.admindocs.urls'
)),
url
(
r'^admin/'
,
include
(
admin
.
site
.
urls
)),
url
(
r'^admin/'
,
include
(
admin
.
site
.
urls
)),
url
(
r'^notify/'
,
include
(
'django_notify.urls'
,
namespace
=
'notify'
)),
url
(
r'^notify/'
,
include
(
'django_notify.urls'
,
namespace
=
'notify'
)),
]
]
...
@@ -15,7 +14,7 @@ urlpatterns = [
...
@@ -15,7 +14,7 @@ urlpatterns = [
if
settings
.
DEBUG
:
if
settings
.
DEBUG
:
urlpatterns
+=
staticfiles_urlpatterns
()
urlpatterns
+=
staticfiles_urlpatterns
()
urlpatterns
+=
[
urlpatterns
+=
[
url
(
r'^media/(?P<path>.*)$'
,
static
.
serve
,
{
'document_root'
:
settings
.
MEDIA_ROOT
,
}),
url
(
r'^media/(?P<path>.*)$'
,
static
_serve
,
{
'document_root'
:
settings
.
MEDIA_ROOT
}),
]
]
...
...
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