Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
973bc1de
Commit
973bc1de
authored
Jun 08, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add main page
parent
c27d7706
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
settings.py
esi/esi/settings.py
+1
-0
urls.py
esi/esi/urls.py
+2
-1
views.py
esi/main/views.py
+2
-1
index.html
esi/templates/index.html
+5
-0
No files found.
esi/esi/settings.py
View file @
973bc1de
...
@@ -40,6 +40,7 @@ INSTALLED_APPS = [
...
@@ -40,6 +40,7 @@ INSTALLED_APPS = [
'el_pagination'
,
'el_pagination'
,
'webapp.apps.WebappConfig'
,
'webapp.apps.WebappConfig'
,
'main.apps.MainConfig'
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
...
esi/esi/urls.py
View file @
973bc1de
...
@@ -18,5 +18,6 @@ from django.contrib import admin
...
@@ -18,5 +18,6 @@ from django.contrib import admin
urlpatterns
=
[
urlpatterns
=
[
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
r'^admin/'
,
admin
.
site
.
urls
),
url
(
r'^news/'
,
include
(
'webapp.urls'
))
url
(
r'^news/'
,
include
(
'webapp.urls'
)),
url
(
r''
,
include
(
'main.urls'
))
]
]
esi/main/views.py
View file @
973bc1de
from
django.shortcuts
import
render
from
django.shortcuts
import
render
from
django.views.generic
import
TemplateView
from
django.views.generic
import
TemplateView
class
MainView
(
TemplateView
):
class
MainView
(
TemplateView
):
template_name
=
'index.html'
template_name
=
'index.html'
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
pass
return
render
(
request
,
self
.
template_name
)
esi/templates/index.html
0 → 100644
View file @
973bc1de
{% extends 'base.html' %}
{% block content %}
Start page
{% endblock %}
\ No newline at end of file
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