diff --git a/avisstage/.#models.py b/avisstage/.#models.py new file mode 120000 index 0000000..9dc600e --- /dev/null +++ b/avisstage/.#models.py @@ -0,0 +1 @@ +evarin@Igloo.6706:1491250550 \ No newline at end of file diff --git a/avisstage/__init__.py b/avisstage/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/avisstage/admin.py b/avisstage/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/avisstage/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/avisstage/apps.py b/avisstage/apps.py new file mode 100644 index 0000000..afc1822 --- /dev/null +++ b/avisstage/apps.py @@ -0,0 +1,7 @@ +from __future__ import unicode_literals + +from django.apps import AppConfig + + +class AvisstageConfig(AppConfig): + name = 'avisstage' diff --git a/avisstage/migrations/__init__.py b/avisstage/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/avisstage/models.py b/avisstage/models.py new file mode 100644 index 0000000..bd4b2ab --- /dev/null +++ b/avisstage/models.py @@ -0,0 +1,5 @@ +from __future__ import unicode_literals + +from django.db import models + +# Create your models here. diff --git a/avisstage/tests.py b/avisstage/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/avisstage/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/avisstage/views.py b/avisstage/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/avisstage/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/experiENS/__init__.py b/experiENS/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/experiENS/secrets.py b/experiENS/secrets.py new file mode 100644 index 0000000..f03fb95 --- /dev/null +++ b/experiENS/secrets.py @@ -0,0 +1 @@ +SECRET_KEY = 'toto' diff --git a/experiENS/settings.py b/experiENS/settings.py new file mode 120000 index 0000000..f1c999f --- /dev/null +++ b/experiENS/settings.py @@ -0,0 +1 @@ +settings_dev.py \ No newline at end of file diff --git a/experiENS/settings_base.py b/experiENS/settings_base.py new file mode 100644 index 0000000..aaaf816 --- /dev/null +++ b/experiENS/settings_base.py @@ -0,0 +1,70 @@ +""" +Django settings for experiENS project. + +For more information on this file, see +https://docs.djangoproject.com/en/1.7/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.7/ref/settings/ +""" + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +import os +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ + +ALLOWED_HOSTS = [] + +# Application definition + +INSTALLED_APPS = ( + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'django.contrib.gis', + + 'django-taggit', + 'avisstage' +) + +MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +) + +ROOT_URLCONF = 'experiENS.urls' + +WSGI_APPLICATION = 'experiENS.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.7/ref/settings/#databases + +# Internationalization +# https://docs.djangoproject.com/en/1.7/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.7/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/experiENS/settings_dev.py b/experiENS/settings_dev.py new file mode 100644 index 0000000..47c19f9 --- /dev/null +++ b/experiENS/settings_dev.py @@ -0,0 +1,18 @@ +from settings_base import * + +from secrets import SECRET_KEY + +DEBUG = True + +TEMPLATE_DEBUG = True + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + +INSTALLED_APPS += ( + 'debug_toolbar', +) diff --git a/experiENS/urls.py b/experiENS/urls.py new file mode 100644 index 0000000..078fad9 --- /dev/null +++ b/experiENS/urls.py @@ -0,0 +1,10 @@ +from django.conf.urls import patterns, include, url +from django.contrib import admin + +urlpatterns = patterns('', + # Examples: + # url(r'^$', 'experiENS.views.home', name='home'), + # url(r'^blog/', include('blog.urls')), + + url(r'^admin/', include(admin.site.urls)), +) diff --git a/experiENS/wsgi.py b/experiENS/wsgi.py new file mode 100644 index 0000000..8650d72 --- /dev/null +++ b/experiENS/wsgi.py @@ -0,0 +1,14 @@ +""" +WSGI config for experiENS 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.7/howto/deployment/wsgi/ +""" + +import os +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "experiENS.settings") + +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application() diff --git a/old/manage.py b/old/manage.py new file mode 100644 index 0000000..7c67bf4 --- /dev/null +++ b/old/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "experiENS.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv)