Browse Source

Ajout du projet Lodel

Roland Haroutiounian 9 years ago
parent
commit
f24274a4d8
9 changed files with 132 additions and 0 deletions
  1. 2
    0
      .gitignore
  2. 0
    0
      Lodel/__init__.py
  3. 13
    0
      Lodel/settings/__init__.py
  4. 83
    0
      Lodel/settings/defaults.py
  5. 0
    0
      Lodel/settings/dev.py
  6. 0
    0
      Lodel/settings/production.py
  7. 10
    0
      Lodel/urls.py
  8. 14
    0
      Lodel/wsgi.py
  9. 10
    0
      manage.py

+ 2
- 0
.gitignore View File

@@ -1 +1,3 @@
1 1
 *.pyc
2
+.venv
3
+.git

+ 0
- 0
Lodel/__init__.py View File


+ 13
- 0
Lodel/settings/__init__.py View File

@@ -0,0 +1,13 @@
1
+from defaults import *
2
+
3
+DEBUG = True
4
+
5
+if DEBUG:
6
+    from dev import *
7
+else:
8
+    from production import *
9
+
10
+try:
11
+    from locale import *
12
+except ImportError:
13
+        pass

+ 83
- 0
Lodel/settings/defaults.py View File

@@ -0,0 +1,83 @@
1
+"""
2
+Django settings for Lodel project.
3
+
4
+For more information on this file, see
5
+https://docs.djangoproject.com/en/1.7/topics/settings/
6
+
7
+For the full list of settings and their values, see
8
+https://docs.djangoproject.com/en/1.7/ref/settings/
9
+"""
10
+
11
+# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12
+import os
13
+BASE_DIR = os.path.dirname(os.path.dirname(__file__))
14
+
15
+
16
+# Quick-start development settings - unsuitable for production
17
+# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
18
+
19
+# SECURITY WARNING: keep the secret key used in production secret!
20
+SECRET_KEY = 'b43in=yebf(b7)77n^wwe&jp2m7*krco)+vz48&_%-wtd(8x-$'
21
+
22
+# SECURITY WARNING: don't run with debug turned on in production!
23
+DEBUG = True
24
+
25
+TEMPLATE_DEBUG = True
26
+
27
+ALLOWED_HOSTS = []
28
+
29
+
30
+# Application definition
31
+
32
+INSTALLED_APPS = (
33
+    'django.contrib.admin',
34
+    'django.contrib.auth',
35
+    'django.contrib.contenttypes',
36
+    'django.contrib.sessions',
37
+    'django.contrib.messages',
38
+    'django.contrib.staticfiles',
39
+)
40
+
41
+MIDDLEWARE_CLASSES = (
42
+    'django.contrib.sessions.middleware.SessionMiddleware',
43
+    'django.middleware.common.CommonMiddleware',
44
+    'django.middleware.csrf.CsrfViewMiddleware',
45
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
46
+    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
47
+    'django.contrib.messages.middleware.MessageMiddleware',
48
+    'django.middleware.clickjacking.XFrameOptionsMiddleware',
49
+)
50
+
51
+ROOT_URLCONF = 'Lodel.urls'
52
+
53
+WSGI_APPLICATION = 'Lodel.wsgi.application'
54
+
55
+
56
+# Database
57
+# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
58
+
59
+DATABASES = {
60
+    'default': {
61
+        'ENGINE': 'django.db.backends.sqlite3',
62
+        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
63
+    }
64
+}
65
+
66
+# Internationalization
67
+# https://docs.djangoproject.com/en/1.7/topics/i18n/
68
+
69
+LANGUAGE_CODE = 'en-us'
70
+
71
+TIME_ZONE = 'UTC'
72
+
73
+USE_I18N = True
74
+
75
+USE_L10N = True
76
+
77
+USE_TZ = True
78
+
79
+
80
+# Static files (CSS, JavaScript, Images)
81
+# https://docs.djangoproject.com/en/1.7/howto/static-files/
82
+
83
+STATIC_URL = '/static/'

+ 0
- 0
Lodel/settings/dev.py View File


+ 0
- 0
Lodel/settings/production.py View File


+ 10
- 0
Lodel/urls.py View File

@@ -0,0 +1,10 @@
1
+from django.conf.urls import patterns, include, url
2
+from django.contrib import admin
3
+
4
+urlpatterns = patterns('',
5
+    # Examples:
6
+    # url(r'^$', 'Lodel.views.home', name='home'),
7
+    # url(r'^blog/', include('blog.urls')),
8
+
9
+    url(r'^admin/', include(admin.site.urls)),
10
+)

+ 14
- 0
Lodel/wsgi.py View File

@@ -0,0 +1,14 @@
1
+"""
2
+WSGI config for Lodel project.
3
+
4
+It exposes the WSGI callable as a module-level variable named ``application``.
5
+
6
+For more information on this file, see
7
+https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
8
+"""
9
+
10
+import os
11
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Lodel.settings")
12
+
13
+from django.core.wsgi import get_wsgi_application
14
+application = get_wsgi_application()

+ 10
- 0
manage.py View File

@@ -0,0 +1,10 @@
1
+#!/usr/bin/env python
2
+import os
3
+import sys
4
+
5
+if __name__ == "__main__":
6
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Lodel.settings")
7
+
8
+    from django.core.management import execute_from_command_line
9
+
10
+    execute_from_command_line(sys.argv)

Loading…
Cancel
Save