8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Add minimal logs app and root index page

This commit is contained in:
lhark 2016-07-02 00:38:12 +02:00
parent 8343478aea
commit b721a48250
9 changed files with 28 additions and 4 deletions

0
logs/__init__.py Normal file
View file

3
logs/admin.py Normal file
View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View file

3
logs/models.py Normal file
View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View 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
View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

4
logs/views.py Normal file
View file

@ -0,0 +1,4 @@
from django.shortcuts import render
def index(request):
return render(request, 'logs/index.html')

View file

@ -15,7 +15,10 @@ Including another URLconf
from django.conf.urls import include, url
from django.contrib import admin
from logs.views import index
urlpatterns = [
url(r'^$', index),
url(r'^admin/', include(admin.site.urls)),
url(r'^users/', include('users.urls')),
url(r'^search/', include('search.urls')),

View file

@ -3,10 +3,11 @@ from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^new_user/$', views.new_user, name='new_user'),
url(r'^edit_info/(?P<userid>[0-9]+)$', views.edit_info, name='edit_info'),
url(r'^state/(?P<userid>[0-9]+)$', views.state, name='state'),
url(r'^password/(?P<userid>[0-9]+)$', views.password, name='password'),
url(r'^new_user/$', views.new_user, name='users-new-user'),
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='users-state'),
url(r'^password/(?P<userid>[0-9]+)$', views.password, name='users-password'),
url(r'^$', views.index, name='users-index'),
]