Hi, Your files seem fine, I believe. Have you found the cause? What version of python and django are you using? I also have this issue but it is not often enough for me to worry too much. Killing the server and restarting it solves it for me..
BR, -------- On 3 Jan, 08:00, daniels <daniels0...@gmail.com> wrote: > Here are the relevant files: > > myproject/urls.py > ---------- > from django.conf.urls.defaults import * > from django.conf import settings > > # Uncomment the next two lines to enable the admin: > # from django.contrib import admin > # admin.autodiscover() > > urlpatterns = patterns('', > (r'^$', include('myproject.apps.acasa.urls')), > > # Dev only > (r'^media/(?P<path>.*)$', 'django.views.static.serve', > {'document_root': settings.MEDIA_ROOT}), > > # Uncomment the admin/doc line below to enable admin > documentation: > # (r'^admin/doc/', include('django.contrib.admindocs.urls')), > > # Uncomment the next line to enable the admin: > # (r'^admin/', include(admin.site.urls)), > ) > > myproject/apps/acasa/urls.py > ------------------------------------------- > from django.conf.urls.defaults import * > > urlpatterns = patterns('myproject.apps.acasa.views', > (r'^$', 'index'), > ) > > myproject/apps/acasa/views.py > --------------------------------------------- > from django.template import RequestContext > from django.shortcuts import render_to_response > > def index(request): > return render_to_response('acasa/default.html', > context_instance=RequestContext(request)) > > myproject/templates/base.html > -------------------------------------------- > <!DOCTYPE html> > <html> > <head> > <title>Myproject - {% block title %}{% endblock %}</title> > <meta charset="utf-8" /> > <meta name="description" content="TODO add description here" /> > <meta name="keywords" content="some, keyword, here" /> > <meta name="robots" content="all, index, follow" /> > <link rel="stylesheet" href="{{ MEDIA_URL }}css/style.css" > media="all" /> > <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></ > script> > </head> > <body> > <div id="page-background"> > {% block content %} > {% endblock %} > </div> > </body> > </html> > > myproject/templates/acasa/default.html > --------------------------------------------------------- > {% extends "base.html" %} > {% block title %}Acasă{% endblock %} > {% block content %} > Hello World! > {% endblock %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.