Hello, wsgi does not work as usually even it works fine when python manage.py runserver 0.0.0.0:8000 I use django version 1.3
I have two issues here. 1. how to add projectname inside of the url 2.static is not connected right 153.xx.x.x.x:8000/simple_project this works. But not when 153.xx.x.x.x/projectname/simple_project The layout is not shown correctly because static file is not read. django.wsgi as follows >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> import os, sys sys.path.append('/var/www/django') os.environ['DJANGO_SETTINGS_MODULE'] = 'projectname.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> static in settings.py >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. "/var/www/django/projectname/static", ) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> urls.py >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> urlpatterns = patterns('', (r'^simple_project/add/(?P<status>\w*)$', 'simple_project.views.index'), ) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Anyone who know a solution please giver me an advise. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0542beb5-dfeb-47f8-abba-f1b5aa8e9262%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.