diff --git a/logs/__init__.py b/logs/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/logs/admin.py b/logs/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/logs/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/logs/migrations/__init__.py b/logs/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/logs/models.py b/logs/models.py new file mode 100644 index 00000000..71a83623 --- /dev/null +++ b/logs/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/logs/templates/logs/index.html b/logs/templates/logs/index.html new file mode 100644 index 00000000..3047a7f1 --- /dev/null +++ b/logs/templates/logs/index.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} +{% load bootstrap3 %} + +{% block content %} +

Bienvenue sur re2o.rez !

+{% endblock %} + diff --git a/logs/tests.py b/logs/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/logs/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/logs/views.py b/logs/views.py new file mode 100644 index 00000000..971138fe --- /dev/null +++ b/logs/views.py @@ -0,0 +1,4 @@ +from django.shortcuts import render + +def index(request): + return render(request, 'logs/index.html') diff --git a/re2o/urls.py b/re2o/urls.py index c9f34474..faf471f2 100644 --- a/re2o/urls.py +++ b/re2o/urls.py @@ -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')), diff --git a/users/urls.py b/users/urls.py index 12c1e2f1..6b0542a8 100644 --- a/users/urls.py +++ b/users/urls.py @@ -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[0-9]+)$', views.edit_info, name='edit_info'), - url(r'^state/(?P[0-9]+)$', views.state, name='state'), - url(r'^password/(?P[0-9]+)$', views.password, name='password'), + url(r'^new_user/$', views.new_user, name='users-new-user'), + url(r'^edit_info/(?P[0-9]+)$', views.edit_info, name='users-edit-info'), + url(r'^state/(?P[0-9]+)$', views.state, name='users-state'), + url(r'^password/(?P[0-9]+)$', views.password, name='users-password'), + url(r'^$', views.index, name='users-index'), ]