import os
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = os.path.join(os.path.dirname(__file__), 'auf_zap.db') # Or path to database file if using sqlite3.
+DATABASE_NAME = os.path.join(os.path.dirname(__file__), 'data/auf_zap.db') # 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.
--- /dev/null
+# -*- coding: utf-8 -*-
+# http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
+
+import os, sys
+sys.path.append(os.path.dirname(os.path.dirname(__file__)))
+os.environ['DJANGO_SETTINGS_MODULE'] = 'auf_zap.settings'
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()
niveau_diplome = models.ForeignKey(NiveauDiplome)
domaine_scientifique = models.ForeignKey(DomaineScientifique)
specialisation = models.ForeignKey(Specialisation)
- langues = models.ManyToManyField(Langue)
- annee_creation = models.DateField(u'Année de création de la formation')
+ langues = models.ManyToManyField(Langue, through='LangueFormation')
+ annee_creation = models.IntegerField(u'Année de création de la formation')
duree_en_mois = models.IntegerField(u'Durée de la formation (en mois)')
nom_responsable = models.CharField(u'Nom du responsable', max_length=100)
nom_co_responsable = models.CharField(u'Nom du co-responsable', max_length=100)
partenaires = models.ManyToManyField(Universite)
type_diplome = models.ForeignKey(TypeDiplome)
reconnaissance_diplome = models.ForeignKey(ReconnaissanceDiplome)
- indications_cout = models.CharField(u'Indications de coût', max_length=200)
+ frais_inscription = models.CharField(u"Frais d'inscription", max_length=200)
+ autres_frais = models.CharField(u'Autres frais', max_length=200)
bourses_aides = models.CharField(u'Bourses et/ou aides', max_length=200)
pre_requis = models.CharField(u'Pré-requis', max_length=200)
type_selection = models.ForeignKey(TypeSelection)
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
+ 'django.contrib.admindocs',
'django.contrib.admin',
'auf_zap.formations',
)
--- /dev/null
+from django.db import models
+
+# Create your models here.
--- /dev/null
+"""
+This file demonstrates two different styles of tests (one doctest and one
+unittest). These will both pass when you run "manage.py test".
+
+Replace these with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.failUnlessEqual(1 + 1, 2)
+
+__test__ = {"doctest": """
+Another way to test that 1 + 1 is equal to 2.
+
+>>> 1 + 1 == 2
+True
+"""}
+
--- /dev/null
+from django.shortcuts import render_to_response, get_object_or_404
+#from auf_zap.sysadmin.models import *
+
+def index(request):
+ return render_to_response('sysadmin/index.html', {})
+
admin.autodiscover()
urlpatterns = patterns('',
+ (r'^$', 'django.views.generic.simple.redirect_to', {'url': '/sysadmin/'}),
+ (r'^sysadmin/', include('auf_zap.sysadmin.urls')),
(r'^formations/', include('auf_zap.formations.urls')),
-
- # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
- # to INSTALLED_APPS to enable admin documentation:
- # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
+ (r'^contacts/', include('auf_zap.contacts.urls')),
+ (r'^portail/', include('auf_zap.portail.urls')),
# Uncomment the next line to enable the admin:
- (r'^admin/', include(admin.site.urls)),
+ (r'^admin/doc/', include('django.contrib.admindocs.urls')),
+ (r'^admin/(.*)', admin.site.root),
+ #(r'^admin/', include(admin.site.urls)), # Django 1.1
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)