On May 25, 2:51 pm, tom <[email protected]> wrote: > Hi, > > I have currently built a website with Django. After developing > everything locally with "python manage.py runserver", I have switched > for testing to Apache and mod_python. > > Everything worked fine there as well. All pages are rendered correctly > (PS: For the layouting, I use 3 CSS files). > > Now, I want to go into production mode. The only thing I did so far: > turning DEPUG to False in my settings.py. > > RESULT: All my pages seems to have lost the CSS files. The text parts > are there, but the layouting doesn't work. > > When I turn DEPUG back to True in my "settings.py", the layouting of > the pages works again. > > ???
I'm assuming you mean DEBUG, not DEPUG. Anyway, you probably have configured the dev server to server static files for you when DEBUG is on. Look in your urls.py for DEBUG. You'll need to configure Apache to server the static files when you deploy in that configuration: http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id1 Best, BN -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

