Skip to content

Commit

Permalink
Added redirect from '/' to tag cloud.
Browse files Browse the repository at this point in the history
git-svn-id: svn://alt.djangodash.com/18_antihaos@71 4f0b9867-19ab-4b67-877a-764fa0eeb145
  • Loading branch information
aartemenko committed May 31, 2009
1 parent 880ea16 commit 3dfb49b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,3 +9,4 @@ develop-eggs
parts
.installed.cfg
example/src/antichaos_example/media/antichaos
local_settings.py
4 changes: 3 additions & 1 deletion README
Expand Up @@ -27,14 +27,15 @@ To run example application, follow these steps:
additional options to buildout either from command line or using config inheritance;
* create `local_settings.py` if your want to override some default settings.;
* run `bin/django syncdb`;
* export your bookmarks from delicios;
* upload file with bookmarks using command `bin/django upload_bookmarks delicios-bookmarks.html`;
* run `bin/django runserver` or `bin/django runfcgi <params>`;
* have a fun!


TODO
----

* Add ability to load bookmarks from a file in Netscape Bookmarks format.
* Add actions history and Undo/Redo.

DONE
Expand All @@ -47,6 +48,7 @@ DONE
* Add backend code to process actions and merge TagItems.
* Add tag preview.
* Add tag renaming.
* Add ability to load bookmarks from a file in Netscape Bookmarks format.

[django-tagging]: http://code.google.com/p/django-tagging/
[django-tagging-ng]: http://github.com/svetlyak40wt/django-tagging-ng/
Expand Down
2 changes: 1 addition & 1 deletion example/src/antichaos_example/settings.py
Expand Up @@ -33,7 +33,7 @@
USE_I18N = True

MEDIA_ROOT = os.path.normpath(os.path.join(PROJECT_ROOT, 'media'))
MEDIA_URL = 'http://127.0.0.1:18000/media/'
MEDIA_URL = 'http://127.0.0.1:8000/media/'

ADMIN_MEDIA_PREFIX = '/media/admin/'

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 6 additions & 6 deletions example/src/antichaos_example/urls.py
Expand Up @@ -3,15 +3,15 @@
from django.contrib import admin
from django.conf import settings

admin.autodiscover()
from django_antichaos.utils import model_to_ctype
from antichaos_example.models import Link

front_dict = {
'extra_context': {'title': _('Main page')},
'template': 'antichaos_example/front_page.html',
}
admin.autodiscover()

urlpatterns = patterns('',
(r'^$', 'django.views.generic.simple.direct_to_template', front_dict),
(r'^$', 'django.views.generic.simple.redirect_to', {
'url': '/antichaos/cloud/%d/' % model_to_ctype(Link).id
}),
(r'^admin/(.*)', admin.site.root, {}, 'admin-root'),
(r'^antichaos/', include('django_antichaos.urls')),
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
Expand Down

0 comments on commit 3dfb49b

Please sign in to comment.