/django-apache2-wsgi-2/idreammicro/apache-vhost/idreammicro |
---|
20,11 → 20,6 |
Allow from all |
</Directory> |
Alias /static/ /home/jlesech/www-django/idreammicro/static/ |
<Location "/static/"> |
Options -Indexes |
</Location> |
ErrorLog ${APACHE_LOG_DIR}/idreammicro_error.log |
# Possible values include: debug, info, notice, warn, error, crit, |
/django-apache2-wsgi-2/idreammicro/helloworld/templates/helloworld/index.html |
---|
File deleted |
/django-apache2-wsgi-2/idreammicro/helloworld/templates/helloworld/base.html |
---|
File deleted |
/django-apache2-wsgi-2/idreammicro/helloworld/static/helloworld/screen.css |
---|
File deleted |
/django-apache2-wsgi-2/idreammicro/helloworld/views.py |
---|
1,4 → 1,4 |
from django.shortcuts import render |
from django.http import HttpResponse |
def index(request): |
return render(request, 'helloworld/index.html') |
return HttpResponse("Hello world!") |
/django-apache2-wsgi-2/idreammicro/idreammicro/settings.py |
---|
1,8 → 1,5 |
# Django settings for idreammicro project. |
import os |
PROJECT_ROOT = os.path.dirname(__file__) + '/..' |
DEBUG = True |
TEMPLATE_DEBUG = DEBUG |
64,7 → 61,7 |
# Don't put anything in this directory yourself; store your static files |
# in apps' "static/" subdirectories and in STATICFILES_DIRS. |
# Example: "/var/www/example.com/static/" |
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static') |
STATIC_ROOT = '' |
# URL prefix for static files. |
# Example: "http://example.com/static/", "http://static.example.com/" |