From 57aa89824a8dabb631c15af986a39e779d0fe3cb Mon Sep 17 00:00:00 2001 From: Mark Weiman Date: Sun, 11 Oct 2015 01:00:38 -0400 Subject: inital --- website/__init__.py | 0 website/urls.py | 33 +++++++++++++++++++++++++++++++++ website/wsgi.py | 14 ++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 website/__init__.py create mode 100644 website/urls.py create mode 100644 website/wsgi.py (limited to 'website') diff --git a/website/__init__.py b/website/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/website/urls.py b/website/urls.py new file mode 100644 index 0000000..a4f0cee --- /dev/null +++ b/website/urls.py @@ -0,0 +1,33 @@ +# website 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 an import: from blog import urls as blog_urls +# 2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) + +from django.conf.urls import include, url +from django.contrib import admin + +import website.settings as settings + +urlpatterns = [ + url('^accounts/', include('django.contrib.auth.urls')), + url(r'^$', 'root.views.index', name='index'), + url(r'^admin/', include(admin.site.urls)), + url(r'^blog/', include('blog.urls')), + url(r'packages/', include('repos.urls')), + url(r'^home/', 'root.views.home', name='home'), + url(r'^add/$', 'root.views.add', name='page-add'), + url(r'^edit/$', 'root.views.edit_index', name='index-edit'), + url(r'^(?P[a-zA-Z0-9]+)/$', 'root.views.page', name='page'), + url(r'^(?P[a-zA-Z0-9]+)/edit/$', 'root.views.edit', name='page-edit'), +] + diff --git a/website/wsgi.py b/website/wsgi.py new file mode 100644 index 0000000..c509fb5 --- /dev/null +++ b/website/wsgi.py @@ -0,0 +1,14 @@ +# WSGI config for website 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", "website.settings") + +application = get_wsgi_application() -- cgit v1.3.1