Are you seeing any error messages ?

On Saturday, 22 March 2014 11:07:32 UTC+2, Jun Tanaka wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/0f4530c8-f4f1-46d8-9bdb-028309209707%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to