> I'm trying to setup Django through UWSGI using Nginx.
>
> I got the UWSGI pass to work using this function
>
>                 location / {
>                         include        uwsgi_params;
>                         uwsgi_pass     127.0.0.1:9001;
>                 }
> Unfortunately when I visit /django/admin. I get an error
>
> Page not found (404) Request Method: GET Request URL:
> http://69.x.x.x/django/admin Using the URLconf defined in Django.urls,
> Django tried these URL patterns, in this order: ^admin/
>
> How can I set it up so it doesn't pass the /django part and just the
> /admin
> part?
> _______________________________________________
>

Are you trying to "mount" your application under /django ?

I suggest you to start with root-mounted apps, and then (eventually)
moving to subdir (by the way, you do not need to rewrite urls.py, as the
WSGI standard allows you to have mountpoints via SCRIPT_NAME variable)


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to