| CODENOTIFIER | HelpYou are not signed inSign in |
Project: ThruDB
Revision: 357
Author: thai
Date: 20 Apr 2008 22:59:40
Diff at Trac: http://trac.thrudb.org/changeset/357
Changes:relocate tweetsearch-py to tutorial/tweetsearch/py
Files:| ... | ...@@ -64,10 +64,10 @@ | |
| 64 | 64 | 'django.middleware.doc.XViewMiddleware', |
| 65 | 65 | ) |
| 66 | 66 | |
| 67 | ROOT_URLCONF = 'tweetsearch.urls' | |
| 67 | ROOT_URLCONF = 'py.urls' | |
| 68 | 68 | |
| 69 | 69 | TEMPLATE_DIRS = ( |
| 70 | "/home/thaidn/buildthrudb/thrudb/tutorial/tweetsearch" | |
| 70 | "/home/thaidn/buildthrudb/thrudb/tutorial/tweetsearch/py" | |
| 71 | 71 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
| 72 | 72 | # Always use forward slashes, even on Windows. |
| 73 | 73 | # Don't forget to use absolute paths, not relative paths. |
| ... | ...@@ -78,5 +78,5 @@ | |
| 78 | 78 | 'django.contrib.contenttypes', |
| 79 | 79 | 'django.contrib.sessions', |
| 80 | 80 | 'django.contrib.sites', |
| 81 | 'tweetsearch.search', | |
| 81 | 'py.search', | |
| 82 | 82 | ) |
| ... | ...@@ -12,10 +12,10 @@ | |
| 12 | 12 | <Location "/"> |
| 13 | 13 | SetHandler python-program |
| 14 | 14 | PythonHandler django.core.handlers.modpython |
| 15 | SetEnv DJANGO_SETTINGS_MODULE tweetsearch.settings | |
| 15 | SetEnv DJANGO_SETTINGS_MODULE py.settings | |
| 16 | 16 | SetEnv PYTHON_EGG_CACHE /tmp |
| 17 | 17 | PythonDebug On |
| 18 | PythonPath "['/path/to/thrudb/tutorial/py'] + sys.path" | |
| 18 | PythonPath "['/path/to/thrudb/tutorial/tweetsearch/py'] + sys.path" | |
| 19 | 19 | </Location> |
| 20 | 20 | |
| 21 | 21 | </VirtualHost> |
| ... | ...@@ -2,10 +2,10 @@ | |
| 2 | 2 | |
| 3 | 3 | urlpatterns = patterns('', |
| 4 | 4 | # Example: |
| 5 | (r'^$', 'tweetsearch.search.views.search'), | |
| 6 | (r'^search/', 'tweetsearch.search.views.search'), | |
| 5 | (r'^$', 'py.search.views.search'), | |
| 6 | (r'^search/', 'py.search.views.search'), | |
| 7 | 7 | # Uncomment this for admin: |
| 8 | 8 | # (r'^admin/', include('django.contrib.admin.urls')), |
| 9 | 9 | # catch all |
| 10 | (r'^.*$', 'tweetsearch.search.views.search') | |
| 10 | (r'^.*$', 'py.search.views.search') | |
| 11 | 11 | ) |