Django deployement Apache

2017-08-26 Thread sarfaraz ahmed
Hello Friends, Please help me with this. I am new to linux and I am attempting to deploy my trial app on AWS ubuntu server. my vhost file looks like this WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py WSGIPythonPath /var/www/firstweb ServerName firstweb.com

Re: Django deployement Apache

2017-08-26 Thread sarfaraz ahmed
i have made following changes in my vhost conf file and now services run. Also, I don't see any error. But instead of default django page I get default apache page. Here is my new conf file. - ServerName firstweb.com

Re: Django deployement Apache

2017-08-26 Thread sarfaraz ahmed
Hey Team, Please someone help. I am still getting error * ImportError: No module named django.core.wsgi*mentioned below is my latest vhost file in ubuntu. WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py ServerName firstweb.com ServerAlias www.firstweb.com

Re: Django deployement Apache

2017-08-26 Thread Vernon Swanepoel
Hello Sarfaraz, A couple things you could look at: 1. Are you including both your site-packages (eg python3.6/lib/site-packages) and your django project root (where you actually built the project) in your WSGIPythonPath? String them together with a clone (/path/to/python3.6/li

Re: Django deployement Apache

2017-08-27 Thread sarfaraz ahmed
Thanks for your help. Yes it was permission issue. However I am not able to find anything under my site-packages. when I point the same to dist-packages it works. WSGIPythonHome /usr/local/lib/python2.7/dist-packages WSGIPythonPath /var/www/firsttest ServerName firsttest.com S

Re: Django deployement Apache

2017-08-28 Thread Vernon Swanepoel
You can just copy the static files out of Django and into the static files in your project itself. -- 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+

Re: Django deployement Apache

2017-08-29 Thread Daniel Roseman
On Tuesday, 29 August 2017 05:48:57 UTC+1, Vernon Swanepoel wrote: > > You can just copy the static files out of Django and into the static files > in your project itself. No. You should absolutely not do that. That is what the `collectstatic` command is for. -- DR. -- You received this mess

Re: Django deployement Apache

2017-08-30 Thread Antonis Christofides
Hello Sarfaraz, You could try "How Django static files work in production " to get some understanding of the correct way to do it. Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-08-2

Re: Django deployement Apache

2017-08-30 Thread sarfaraz ahmed
Thanks Antonis, I reached your website googling undoubtedly this is well explained. I have been able to deploy but here is my problem STATIC_URL = '/static/' MEDIA_URL = '/media/' STATICFILES_DIRS = [os.path.join(BASE_DIR, "static"),os.path.join(BASE_DIR,"static","admin")] STATIC_ROOT = os.pa

Re: Django deployement Apache

2017-08-31 Thread Antonis Christofides
Did you run collectstatic? After you do so, the files will be copied to /var/www/static_root or whatever your STATIC_ROOT points to. Some other notes: * You normally don't need to touch STATICFILES_DIRS at all. * The value os.path.join(os.path.dirname(BASE_DIR), 'static_root') is a bad id

Re: Django deployement Apache

2017-10-19 Thread sarfaraz ahmed
Thanks you all you friends.. this is been fixed. On Thursday, 31 August 2017 14:47:05 UTC+5:30, Antonis Christofides wrote: > > Did you run collectstatic? After you do so, the files will be copied to > /var/www/static_root or whatever your STATIC_ROOT points to. > > Some other notes: > >- Yo