Changeset 9
- Timestamp:
- 10/25/08 16:55:37 (4 years ago)
- Location:
- postgres.org.ua/trunk
- Files:
-
- 14 added
- 4 modified
- 1 moved
-
code/external_apps (modified) (1 prop)
-
code/postgres_org_ua (moved) (moved from postgres.org.ua/trunk/code/postgres.org.ua)
-
code/postgres_org_ua/local_settings.py (added)
-
code/postgres_org_ua/manage.py (modified) (1 diff)
-
code/postgres_org_ua/settings.py (modified) (3 diffs)
-
code/postgres_org_ua/templates/404.html (added)
-
code/postgres_org_ua/templates/500.html (added)
-
code/postgres_org_ua/templates/about.html (added)
-
code/postgres_org_ua/templates/base.html (added)
-
code/postgres_org_ua/templates/pressroom (added)
-
code/postgres_org_ua/templates/pressroom/index.html (added)
-
code/postgres_org_ua/templates/site_base.html (added)
-
code/postgres_org_ua/urls.py (modified) (1 diff)
-
media-static/css (added)
-
media-static/css/base.css (added)
-
media-static/img (added)
-
media-static/img/logo.png (added)
-
media-static/js (added)
-
media-static/js/base.js (added)
Legend:
- Unmodified
- Added
- Removed
-
postgres.org.ua/trunk/code/external_apps
- Property svn:externals
-
old new 1 django -r9199 http://code.djangoproject.com/svn/django/trunk/django 1 django -r9246 http://code.djangoproject.com/svn/django/trunk/django 2 pressroom -r49 http://django-pressroom.googlecode.com/svn/trunk/pressroom 3 photologue -r353 http://django-photologue.googlecode.com/svn/trunk/photologue 4 tagging -r150 http://django-tagging.googlecode.com/svn/trunk/tagging
-
- Property svn:externals
-
postgres.org.ua/trunk/code/postgres_org_ua/manage.py
r6 r9 1 1 #!/usr/bin/env python 2 import sys 3 from os.path import abspath, dirname, join 4 from site import addsitedir 5 6 # Add ../external_apps directory in the begin PYTHONPATH. 7 path = addsitedir(abspath(join(dirname(__file__), '../external_apps')), set()) 8 if path: 9 sys.path.insert(0,path) 10 2 11 from django.core.management import execute_manager 3 12 try: 4 13 import settings # Assumed to be in the same directory. 5 14 except ImportError: 6 import sys7 15 sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) 8 16 sys.exit(1) -
postgres.org.ua/trunk/code/postgres_org_ua/settings.py
r6 r9 10 10 RSS_PUBLICATIONS_LIMIT = 15 11 11 RSS_FROM_EMAIL = 'info at pleso.net' 12 13 12 14 13 #CACHE_BACKEND = SITE_BASEDIR + '/site-cache/?timeout=30&max_entries=500' … … 122 121 'django.contrib.admin', 123 122 'django.contrib.sitemaps', 123 'photologue', 124 'pressroom', 125 'tagging', 124 126 # 'libs.tagging', 125 127 # 'sorl.thumbnail', … … 163 165 #CAPTCHA temp dir 164 166 CAPTCHA_TEMP_DIR = SITE_BASEDIR + '/tmp' 167 168 try: 169 from local_settings import * 170 except ImportError: 171 pass -
postgres.org.ua/trunk/code/postgres_org_ua/urls.py
r6 r9 1 1 from django.conf.urls.defaults import * #IGNORE:W0614 - need to import everything, django Ticket #5350 2 2 from django.conf import settings 3 from django.views.generic.simple import direct_to_template 4 from django.contrib import admin 3 5 4 from django.contrib import admin 6 import pressroom 7 5 8 admin.autodiscover() 6 9 7 10 urlpatterns = patterns('', 11 url(r'^$', 'pressroom.views.index', name="index"), 8 12 ('^admin/(.*)', admin.site.root), 13 url(r'^about/$', direct_to_template, {"template": "about.html"}, name="about"), 14 15 (r'^pressroom/', include('pressroom.urls')), 9 16 ) 10 17

