From: Jérôme Benoit Date: Wed, 30 Oct 2013 22:36:41 +0000 (+0100) Subject: Further tweaks : rename of the main DB, main project name, etc. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d243a81ef17b2320a5cbed5057875c98b714c33c;p=webcomics.git Further tweaks : rename of the main DB, main project name, etc. Signed-off-by: Jérôme Benoit --- diff --git a/settings.py b/settings.py index 4aaa947..e2dd4a0 100644 --- a/settings.py +++ b/settings.py @@ -1,4 +1,4 @@ -# Django settings for comicsporn project. +# Django settings for django project. DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -12,7 +12,7 @@ MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'comicsporn', # Or path to database file if using sqlite3. + 'NAME': 'django', # Or path to database file if using sqlite3. 'USER': 'django', # Not used with sqlite3. 'PASSWORD': 'django', # Not used with sqlite3. 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. @@ -109,7 +109,7 @@ MIDDLEWARE_CLASSES = ( 'django.contrib.messages.middleware.MessageMiddleware', ) -ROOT_URLCONF = 'comicsporn.urls' +ROOT_URLCONF = 'django.urls' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". @@ -125,9 +125,9 @@ INSTALLED_APPS = ( 'django.contrib.messages', 'django.contrib.staticfiles', # Uncomment the next line to enable the admin: - # 'django.contrib.admin', + 'django.contrib.admin', # Uncomment the next line to enable admin documentation: - # 'django.contrib.admindocs', + 'django.contrib.admindocs', ) # A sample logging configuration. The only tangible logging diff --git a/urls.py b/urls.py index a6af397..07576d3 100644 --- a/urls.py +++ b/urls.py @@ -6,12 +6,12 @@ from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: - # url(r'^$', 'comicsporn.views.home', name='home'), - # url(r'^comicsporn/', include('comicsporn.foo.urls')), + # url(r'^$', 'django.views.home', name='home'), + # url(r'^django/', include('django.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: - # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), + url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: - # url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', include(admin.site.urls)), )