Ask Your Question

direct to and remove /questions

asked 2013-02-27 15:59:23 -0500

coldsystem gravatar image

updated 2013-03-02 14:33:28 -0500

pajju gravatar image

How to remove alias /questions so that the site will be direct and not ?

Centos : dedicated server with python Django daemon


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-02-28 03:43:00 -0500

coldsystem gravatar image

updated 2013-02-28 03:48:23 -0500

i cant this in My askbot directory

[root@ks3266231 livesite]# ls
askbot        log    static
django.wsgi   nohup.out      settings.pyc           urls.pyc
[root@ks3266231 livesite]#

[root@ks3266231 livesite]# grep  index
[root@ks3266231 livesite]# grep questions

[root@ks4000391 liveaskbot0748]# cat
main url configuration file for the askbot site
from django.conf import settings
from django.conf.urls.defaults import handler404
from django.conf.urls.defaults import handler500
from django.conf.urls.defaults import include
from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import url
from django.conf import settings
from django.contrib import admin


if getattr(settings, 'ASKBOT_MULTILINGUAL', False) == True:
    from django.conf.urls.i18n import i18n_patterns
    urlpatterns = i18n_patterns('',
        (r'%s' % settings.ASKBOT_URL, include('askbot.urls'))
    urlpatterns = patterns('',
        (r'%s' % settings.ASKBOT_URL, include('askbot.urls'))

urlpatterns += patterns('',
    (r'^admin/', include(,
    #(r'^cache/', include('keyedcache.urls')), - broken views disable for now
    (r'^settings/', include('askbot.deps.livesettings.urls')),
    (r'^followit/', include('followit.urls')),
    (r'^tinymce/', include('tinymce.urls')),
    (r'^robots.txt$', include('robots.urls')),
    url( # TODO: replace with django.conf.urls.static ?
        r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
        {'document_root': settings.MEDIA_ROOT.replace('\\','/')},

if 'rosetta' in settings.INSTALLED_APPS:
    urlpatterns += patterns('',
                    url(r'^rosetta/', include('rosetta.urls')),
[root@ks4000391 liveaskbot0748]#

cant find this in the !!!:(

edit flag offensive delete link more



check the file askbot.urls( inside askbot)

pajju gravatar imagepajju ( 2013-03-02 14:36:49 -0500 )edit

answered 2013-02-27 16:16:46 -0500

Evgeny gravatar image

Try this by editing file askbot/ Lines where urls named 'index' and 'questions' are defined.

We might make the homepage listing questions by default, but we also might use it for other purposes - like show listing of subforums, so the function shown on the main page may in the future depend on the configuration.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-02-27 15:59:23 -0500

Seen: 932 times

Last updated: Mar 02 '13