Clean out stuff
This commit is contained in:
parent
fd5927c31a
commit
d7b1910839
47 changed files with 13 additions and 1089 deletions
|
@ -13,24 +13,21 @@ env = environ.Env()
|
|||
# APP CONFIGURATION
|
||||
# ------------------------------------------------------------------------------
|
||||
DJANGO_APPS = (
|
||||
# Default Django apps:
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
|
||||
# Admin
|
||||
'grappelli',
|
||||
'django.contrib.admin',
|
||||
)
|
||||
THIRD_PARTY_APPS = (
|
||||
'crispy_forms', # Form layouts
|
||||
'allauth', # registration
|
||||
'allauth.account', # registration
|
||||
'bootstrap3', # bootstrappin'
|
||||
'django_tables2', # data grids
|
||||
'crispy_forms',
|
||||
'allauth',
|
||||
'allauth.account',
|
||||
'bootstrap3',
|
||||
'django_tables2',
|
||||
)
|
||||
|
||||
# Apps specific for this project go here.
|
||||
|
@ -64,12 +61,6 @@ MIDDLEWARE_CLASSES = (
|
|||
'ccdb.users.middleware.TimezoneMiddleware',
|
||||
)
|
||||
|
||||
# MIGRATIONS CONFIGURATION
|
||||
# ------------------------------------------------------------------------------
|
||||
MIGRATION_MODULES = {
|
||||
'sites': 'ccdb.contrib.sites.migrations'
|
||||
}
|
||||
|
||||
# DEBUG
|
||||
# ------------------------------------------------------------------------------
|
||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
|
||||
|
@ -125,9 +116,6 @@ LOCALE_PATHS = [
|
|||
'locale',
|
||||
]
|
||||
|
||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#site-id
|
||||
SITE_ID = 1
|
||||
|
||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#use-i18n
|
||||
USE_I18N = True
|
||||
|
||||
|
|
|
@ -2,21 +2,16 @@ from django.conf import settings
|
|||
from django.conf.urls import include, url
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
from django.views.generic import TemplateView
|
||||
from django.views.generic import RedirectView
|
||||
from django.views import defaults as default_views
|
||||
from django.core.urlresolvers import reverse_lazy
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', TemplateView.as_view(template_name='pages/home.html'), name="home"),
|
||||
url(r'^about/$', TemplateView.as_view(template_name='pages/about.html'), name="about"),
|
||||
|
||||
# Django Admin, use {% url 'admin:index' %}
|
||||
url(r'^grappelli/', include('grappelli.urls')),
|
||||
url(settings.ADMIN_URL, include(admin.site.urls)),
|
||||
|
||||
# User management
|
||||
url(r'^users/', include("ccdb.users.urls", namespace="users")),
|
||||
url(r'^accounts/', include('allauth.urls')),
|
||||
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
# url(r'^api/', include('ccdb.api.urls', namespace='api')),
|
||||
url(r'^$', RedirectView.as_view(url=reverse_lazy('admin:index'), permanent=True)),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
if settings.DEBUG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue