Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intranet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bertrand Delhomme
intranet
Commits
9a82f262
Commit
9a82f262
authored
Dec 13, 2009
by
Antoine Durand-Gasselin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout d'un répertoire statique, et configuration Cr@nseuse
parent
1514172f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
apps/__init__.py
apps/__init__.py
+0
-0
settings.py
settings.py
+19
-7
urls.py
urls.py
+4
-6
No files found.
apps/__init__.py
0 → 100644
View file @
9a82f262
settings.py
View file @
9a82f262
# -*- coding: utf-8 -*-
# Django settings for intranet project.
# Connexion à la base ldap
import
sys
sys
.
path
.
append
(
"/usr/scripts/gestion"
)
from
ldap_crans
import
crans_ldap
db
=
crans_ldap
()
DEBUG
=
True
TEMPLATE_DEBUG
=
DEBUG
ADMINS
=
(
'Intranet'
,
'root@crans.org'
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS
=
ADMINS
DATABASE_ENGINE
=
'
'
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME
=
'
'
# Or path to database file if using sqlite3.
DATABASE_ENGINE
=
'
sqlite3'
# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME
=
'
/tmp/intranet.sql'
# Or path to database file if using sqlite3.
DATABASE_USER
=
''
# Not used with sqlite3.
DATABASE_PASSWORD
=
''
# Not used with sqlite3.
DATABASE_HOST
=
''
# Set to empty string for localhost. Not used with sqlite3.
...
...
@@ -21,11 +32,11 @@ DATABASE_PORT = '' # Set to empty string for default. Not used with
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE
=
'
America/Chicago
'
TIME_ZONE
=
'
Europe/Paris
'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE
=
'
en-us
'
LANGUAGE_CODE
=
'
fr-fr
'
SITE_ID
=
1
...
...
@@ -35,17 +46,17 @@ USE_I18N = True
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT
=
''
MEDIA_ROOT
=
'
/usr/scripts/intranet/
'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL
=
''
MEDIA_URL
=
'
https://intranet.crans.org/
'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX
=
'/media/'
#
ADMIN_MEDIA_PREFIX = '/media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY
=
'$u9k=cu^7hs7=-l!i$=n@t$yu91(%owdi+str2*4%=eofqm-6f'
...
...
@@ -66,6 +77,7 @@ MIDDLEWARE_CLASSES = (
ROOT_URLCONF
=
'intranet.urls'
TEMPLATE_DIRS
=
(
MEDIA_ROOT
+
'templates/'
,
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
...
...
urls.py
View file @
9a82f262
from
django.conf.urls.defaults
import
*
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
import
settings
urlpatterns
=
patterns
(
''
,
# Example:
...
...
@@ -12,6 +9,7 @@ urlpatterns = patterns('',
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
# Pour servir le static
(
r
'^static/(?P<path>.*)$'
,
'django.views.static.serve'
,
{
'document_root'
:
settings
.
MEDIA_ROOT
+
'static/'
})
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment