Hi all, I am new to django and web development. I am facing a problem with static files(Django1.3) when tried to deploy it in my local apache server(apache2+mod_wsgi),the problem only for the static contents other parts ok[its worked in the devlopment server]. My project now in a folder 'testcloud' in Ubandu Desktop,My project name is DjangoApis,Following is my project structure: Desktop->testcloud:
DjangoApis urls.py mywebapp static templates templatetags urls.py views.py myapis ..... Settings.py STATIC_ROOT = '/home/jisson/Desktop/testcloud.aws/DjangoApis/ teststaticfiles/' STATIC_URL = '/static/' TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.media", "django.core.context_processors.static", ) TEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__),'templates').replace('\ \','/'), ) INSTALLED_APPS = ( 'DjangoApis.mywebapp', 'DjangoApis.myapis', ) STATICFILES_DIRS = ( os.path.join(os.path.dirname(__file__),'static').replace('\ \','/'), ) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) /etc/apache2/sites/enabled/DjangoApis: Alias /favicon.ico /home/jisson/Desktop/testcloud.aws/DjangoApis/ static/favicon.ico AliasMatch ^/([^/]*\.css) /home/jisson/Desktop/testcloud.aws/ DjangoApis/static/styles/$1 Alias /static/ /home/jisson/Desktop/testcloud.aws/DjangoApis/static <Directory /home/jisson/Desktop/testcloud.aws/DjangoApis/static> Order deny,allow Allow from all </Directory> WSGIScriptAlias / /home/jisson/Desktop/testcloud.aws/DjangoApis/ django.wsgi apache errorlog: tail /var/log/apache2/error.log [Sat Dec 10 03:16:36 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticjs, referer: http://test.webapp/ [Sat Dec 10 03:16:36 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticjs, referer: http://test.webapp/ [Sat Dec 10 03:16:36 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticjs, referer: http://test.webapp/ [Sat Dec 10 03:16:36 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticjs, referer: http://test.testapp/ [Sat Dec 10 03:16:45 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticimages, referer: http://test.webapp/ [Sat Dec 10 03:16:45 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticimages, referer: http://test.webapp/ [Sat Dec 10 03:16:45 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticimages, referer: http://test.webapp/ [Sat Dec 10 03:16:45 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticimages, referer: http://test.webapp/ [Sat Dec 10 03:16:45 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticimages, referer: http://test.webapp/ [Sat Dec 10 03:16:45 2011] [error] [client 127.0.0.1] File does not exist: /home/jisson/Desktop/testcloud.aws/DjangoApis/staticimages, referer: http://testwebapp/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.