Skip to content
Browse files

Modified absolute paths replacing vimooglemenu/ with vimooglemenu/vim…

…ooglemenu

to reflect changes done to directory structure when setting up distutils
  • Loading branch information...
1 parent 364b995 commit b05d93bb612b0c725fb3a8172857c3f21c6db1a7 VimoogleMenu committed Mar 1, 2012
Showing with 11 additions and 11 deletions.
  1. +8 −8 settings.py
  2. +3 −3 urls.py
View
16 settings.py
@@ -15,10 +15,10 @@
# Absolute filesystem path to this Django project directory.
#DJANGO_ROOT = dirname(dirname(abspath(__file__)))
-DJANGO_ROOT = dirname(abspath(__file__)) # currently /home/user/python/vimooglemenu
+DJANGO_ROOT = dirname(abspath(__file__)) # currently /home/user/python/vimooglemenu/vimooglemenu
# Site name.
-SITE_NAME = basename(DJANGO_ROOT) # currently /home/user/python
+SITE_NAME = basename(DJANGO_ROOT) # currently /home/user/python/vimooglemenu
# Absolute filesystem path to the top-level project folder.
SITE_ROOT = dirname(DJANGO_ROOT) # currently vimooglemenu
@@ -125,7 +125,7 @@
################################################################################
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = '/home/user/python/vimooglemenu/media/'
+MEDIA_ROOT = '/home/user/python/vimooglemenu/vimooglemenu/media/'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
@@ -156,11 +156,11 @@
STATICFILES_DIRS = (
# Always use forward slashes. Use absolute paths
#normpath(join(DJANGO_ROOT, 'assets')), # currently '/home/user/python/vimooglemenu/assets'
- # '/home/user/python/vimooglemenu/assets/'
- # '/home/user/python/vimooglemenu/homepage/static/',
- # ('css', '/home/user/python/vimooglemenu/homepage/static/css/' ), # /static/css/style.css will be loaded from indicated directory
- # ('js', '/home/user/python/vimooglemenu/homepage/static/js/' ), # /static/js/jquery.js will be loaded from ...
- # ('images','/home/user/python/vimooglemenu/homepage/static/images/') # /static/images/dot.png will be loaded from...
+ # '/home/user/python/vimooglemenu/vimooglemenu/assets/'
+ # '/home/user/python/vimooglemenu/vimooglemenu/homepage/static/',
+ # ('css', '/home/user/python/vimooglemenu/vimooglemenu/homepage/static/css/' ), # /static/css/style.css will be loaded from indicated directory
+ # ('js', '/home/user/python/vimooglemenu/vimooglemenu/homepage/static/js/' ), # /static/js/jquery.js will be loaded from ...
+ # ('images','/home/user/python/vimooglemenu/vimooglemenu/homepage/static/images/') # /static/images/dot.png will be loaded from...
)
# List of finder classes that know how to find static files in various locations.
View
6 urls.py
@@ -7,9 +7,9 @@
urlpatterns = patterns('django.views.static',
- url(r'^js/(?P<path>.*)$', 'serve', {'document_root': '/home/user/python/vimooglemenu/homepage/static/js/' , 'show_indexes': True} ),
- url(r'^css/(?P<path>.*)$', 'serve', {'document_root': '/home/user/python/vimooglemenu/homepage/static/css/' , 'show_indexes': True} ),
- url(r'^images/(?P<path>.*)$', 'serve', {'document_root': '/home/user/python/vimooglemenu/homepage/static/images/', 'show_indexes': True} ),
+ url(r'^js/(?P<path>.*)$', 'serve', {'document_root': '/home/user/python/vimooglemenu/vimooglemenu/homepage/static/js/' , 'show_indexes': True} ),
+ url(r'^css/(?P<path>.*)$', 'serve', {'document_root': '/home/user/python/vimooglemenu/vimooglemenu/homepage/static/css/' , 'show_indexes': True} ),
+ url(r'^images/(?P<path>.*)$', 'serve', {'document_root': '/home/user/python/vimooglemenu/vimooglemenu/homepage/static/images/', 'show_indexes': True} ),
)

0 comments on commit b05d93b

Please sign in to comment.
Something went wrong with that request. Please try again.