[Commits] python.it commit r244 - code/pythonisti/trunk/pythonisti

commit a svn.python.it commit a svn.python.it
Sab 30 Dic 2006 19:21:12 CET


Author: manlio
Date: Sat Dec 30 19:21:12 2006
New Revision: 244

Modified:
   code/pythonisti/trunk/pythonisti/settings.py
   code/pythonisti/trunk/pythonisti/urls.py
Log:
Configurazione iniziale per Django.


Modified: code/pythonisti/trunk/pythonisti/settings.py
==============================================================================
--- code/pythonisti/trunk/pythonisti/settings.py	(original)
+++ code/pythonisti/trunk/pythonisti/settings.py	Sat Dec 30 19:21:12 2006
@@ -9,8 +9,8 @@
 
 MANAGERS = ADMINS
 
-DATABASE_ENGINE = ''           # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
-DATABASE_NAME = ''             # Or path to database file if using sqlite3.
+DATABASE_ENGINE = 'sqlite3'           # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
+DATABASE_NAME = 'pythonisti'             # 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.
@@ -18,12 +18,12 @@
 
 # Local time zone for this installation. All choices can be found here:
 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
-TIME_ZONE = 'America/Chicago'
+TIME_ZONE = 'Europe/Rome'
 
 # Language code for this installation. All choices can be found here:
 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
-LANGUAGE_CODE = 'en-us'
+LANGUAGE_CODE = 'it'
 
 SITE_ID = 1
 
@@ -69,4 +69,6 @@
     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.sites',
+    'django.contrib.admin',
+    'pythonisti.geo'
 )

Modified: code/pythonisti/trunk/pythonisti/urls.py
==============================================================================
--- code/pythonisti/trunk/pythonisti/urls.py	(original)
+++ code/pythonisti/trunk/pythonisti/urls.py	Sat Dec 30 19:21:12 2006
@@ -3,7 +3,8 @@
 urlpatterns = patterns('',
     # Example:
     # (r'^pythonisti/', include('pythonisti.apps.foo.urls.foo')),
-
+    (r'^geo/', include('pythonisti.geo.urls')),
+                       
     # Uncomment this for admin:
-#     (r'^admin/', include('django.contrib.admin.urls')),
+    (r'^admin/', include('django.contrib.admin.urls')),
 )


Maggiori informazioni sulla lista Commits