From 31c23c2ba5f3b4c8095a052c6f8b489317da11ea Mon Sep 17 00:00:00 2001 From: chirac Date: Thu, 30 Jun 2016 01:39:31 +0200 Subject: [PATCH] initial comit --- .gitignore | 1 + manage.py | 10 ++++++++++ re2o/__init__.py | 0 re2o/urls.py | 20 ++++++++++++++++++++ re2o/wsgi.py | 16 ++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 .gitignore create mode 100755 manage.py create mode 100644 re2o/__init__.py create mode 100644 re2o/urls.py create mode 100644 re2o/wsgi.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..fce19e42 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +settings.py diff --git a/manage.py b/manage.py new file mode 100755 index 00000000..68d81c42 --- /dev/null +++ b/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "re2o.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv) diff --git a/re2o/__init__.py b/re2o/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/re2o/urls.py b/re2o/urls.py new file mode 100644 index 00000000..cdcaf70c --- /dev/null +++ b/re2o/urls.py @@ -0,0 +1,20 @@ +"""re2o URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.8/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') +Including another URLconf + 1. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) +""" +from django.conf.urls import include, url +from django.contrib import admin + +urlpatterns = [ + url(r'^admin/', include(admin.site.urls)), +] diff --git a/re2o/wsgi.py b/re2o/wsgi.py new file mode 100644 index 00000000..c78787b6 --- /dev/null +++ b/re2o/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for re2o project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "re2o.settings") + +application = get_wsgi_application()