Compare commits
10 commits
12e3b04b6f
...
d317f733cd
Author | SHA1 | Date | |
---|---|---|---|
|
d317f733cd | ||
|
c3128da4aa | ||
|
d1bf73af67 | ||
|
fcb41fb09f | ||
|
31d3294509 | ||
|
6543fcd0bd | ||
|
49ba51cf32 | ||
|
e63e8412d5 | ||
|
bf19e51e09 | ||
|
1c151e2792 |
6 changed files with 36 additions and 7 deletions
20
compile-all.py
Executable file
20
compile-all.py
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import compileall
|
||||
import os
|
||||
#compileall.compile_dir(".", force=1)
|
||||
#
|
||||
|
||||
def compileDir(arg, directory, names):
|
||||
compileall.compile_dir(directory, force=1)
|
||||
|
||||
os.path.walk("podjango", compileDir, "")
|
||||
compileall.compile_dir(".", force=1)
|
||||
|
||||
os.system("find . -type d -exec chmod gu+rx {} \;")
|
||||
os.system("find . -type f -exec chmod gu+r {} \;")
|
||||
os.system("find . -type d -exec chmod o+x {} \;")
|
||||
os.system("find ./podjango/static -type d -exec chmod o+rx {} \;")
|
||||
os.system("find ./podjango/static -exec chmod o+r {} \;")
|
||||
os.system("find . -exec chgrp www-data {} \;")
|
||||
os.system("find . -exec chmod go-w {} \;")
|
0
podjango/__init__.py
Normal file
0
podjango/__init__.py
Normal file
0
podjango/apps/__init__.py
Normal file
0
podjango/apps/__init__.py
Normal file
|
@ -265,14 +265,8 @@ class OggCastFeed(CastFeed):
|
|||
return item.ogg_length
|
||||
|
||||
feed_dict = {
|
||||
'blog': BlogFeed,
|
||||
'podcast-ogg': OggCastFeed,
|
||||
'podcast-mp3': Mp3CastFeed,
|
||||
'techblog': TechBlogFeed,
|
||||
'news': PressReleaseFeed,
|
||||
'future-events': UpcomingEventFeed,
|
||||
'omnibus': OmnibusFeed,
|
||||
# 'event-media': RecentEventMediaFeed,
|
||||
}
|
||||
|
||||
# make each feed know its canonical url
|
||||
|
|
14
podjango/manage.py
Executable file
14
podjango/manage.py
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
sys.path += ('/var/www',)
|
||||
|
||||
from django.core.management import execute_manager
|
||||
try:
|
||||
import settings
|
||||
except ImportError:
|
||||
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__)
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
execute_manager(settings)
|
|
@ -18,7 +18,7 @@
|
|||
# "AGPLv3". If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from django.conf.urls.defaults import *
|
||||
from conservancy.feeds import feed_dict
|
||||
from podjango.feeds import feed_dict
|
||||
|
||||
#handler404 = 'modpythoncustom.view404'
|
||||
|
||||
|
@ -27,4 +27,5 @@ urlpatterns = patterns('',
|
|||
(r'^feeds/(?P<url>.*)/?$', 'django.contrib.syndication.views.feed',
|
||||
{'feed_dict': feed_dict}),
|
||||
(r'^feeds/$', 'podjango.feeds.view'),
|
||||
(r'^admin/(.*)', admin.site.root),)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue