mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +00:00
Add minimal logs app and root index page
This commit is contained in:
parent
8343478aea
commit
b721a48250
9 changed files with 28 additions and 4 deletions
0
logs/__init__.py
Normal file
0
logs/__init__.py
Normal file
3
logs/admin.py
Normal file
3
logs/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
0
logs/migrations/__init__.py
Normal file
0
logs/migrations/__init__.py
Normal file
3
logs/models.py
Normal file
3
logs/models.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
7
logs/templates/logs/index.html
Normal file
7
logs/templates/logs/index.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% load bootstrap3 %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1>Bienvenue sur re2o.rez !</h1>
|
||||||
|
{% endblock %}
|
||||||
|
|
3
logs/tests.py
Normal file
3
logs/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
4
logs/views.py
Normal file
4
logs/views.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
def index(request):
|
||||||
|
return render(request, 'logs/index.html')
|
|
@ -15,7 +15,10 @@ Including another URLconf
|
||||||
from django.conf.urls import include, url
|
from django.conf.urls import include, url
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
|
from logs.views import index
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
url(r'^$', index),
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
url(r'^users/', include('users.urls')),
|
url(r'^users/', include('users.urls')),
|
||||||
url(r'^search/', include('search.urls')),
|
url(r'^search/', include('search.urls')),
|
||||||
|
|
|
@ -3,10 +3,11 @@ from django.conf.urls import url
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^new_user/$', views.new_user, name='new_user'),
|
url(r'^new_user/$', views.new_user, name='users-new-user'),
|
||||||
url(r'^edit_info/(?P<userid>[0-9]+)$', views.edit_info, name='edit_info'),
|
url(r'^edit_info/(?P<userid>[0-9]+)$', views.edit_info, name='users-edit-info'),
|
||||||
url(r'^state/(?P<userid>[0-9]+)$', views.state, name='state'),
|
url(r'^state/(?P<userid>[0-9]+)$', views.state, name='users-state'),
|
||||||
url(r'^password/(?P<userid>[0-9]+)$', views.password, name='password'),
|
url(r'^password/(?P<userid>[0-9]+)$', views.password, name='users-password'),
|
||||||
|
url(r'^$', views.index, name='users-index'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue