Saturday, November 17, 2012

Fwd: Noobe alert [solved]

Hi, Yea got it, the nginx static had to be removed from the alias url.

thanks 

---------- Forwarded message ----------
From: Gerald Klein <jk@zognet.com>
Date: Sat, Nov 17, 2012 at 1:27 PM
Subject: Noobe alert
To: django-users@googlegroups.com


Hi, I finally got a project in Django and I have a "what I hope is an easy question" I started to set up a production server and yes the admin css dissappeared, I went though the docs and followed them. I used the Collect Static Files method and still no joy. Here is my info: 

#settings.py
MEDIA_ROOT = '/var/www/virtualenv-test/ENV/testsite/media/'
STATIC_ROOT = '/var/www/virtualenv-test/ENV/testsite/static/'

#niginx


    root /var/www/virtualenv-test/ENV/testsite;

    location /media/ {
        root /var/www/virtualenv-test/ENV/testsite/media;
    }

    location /static/ {
        root /var/www/virtualenv-test/ENV/testsite/static;
    }

My project is located in /var/www/virtualenv-test/ENV/

the project is testsite so the hierarchy inside ENV is:

testsite/
        media/
        static/all files from collect static files
        testsite/
                __init__.py
                settings.py
                urls.py
                wsgi.py
        manage.py

I am using version (1, 4, 2, 'final', 0). 

If somebody can point out the probably obvious problem that I am missing I would greatly appreciate it. 

thanks in advance for your help

--jerry

-- 

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580 






--

Gerald Klein DBA

ContactMe@geraldklein.com

www.geraldklein.com

geraldklein.wordpress.com

jk@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580 



--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate