Advertisement
rfmonk

django newbie prob

Apr 12th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.63 KB | None | 0 0
  1. '''===========================================================================
  2. This is my settings.py file, by adding this path to base_html and changing
  3. that it should override the defualts. which it does not do.
  4. =============================================================================='''
  5. TEMPLATE_DIRS = (
  6.     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
  7.     # Always use forward slashes, even on Windows.
  8.     # Don't forget to use absolute paths, not relative paths.
  9.     '/home/stu/Projects/django/templates/admin/base_site.html',
  10. )
  11.  
  12. '''==========================================================================
  13. notice CHANGE ME
  14. ============================================================================='''
  15.  
  16. {% extends "admin/base.html" %}
  17. {% load i18n %}
  18.  
  19. {% block title %}{{ title }} | {% trans 'CHANGE ME' %}{% endblock %}
  20.  
  21. {% block branding %}
  22. <h1 id="site-name">{% trans 'CHANGE ME' %}</h1>
  23. {% endblock %}
  24.  
  25. {% block nav-global %}{% endblock %}
  26.  
  27. '''==========================================================================
  28. path on my computer matches settings.py
  29. /home/stu/Projects/django/templates/admin/base_site.html
  30. I have 1)ran $ python manage.py syncdb
  31.       2)restarted the dev server
  32.       3)reloaded the webpage
  33.       4)checked and rechecked for typos
  34.       5)reread docs
  35.       6)Googled for 2 hours
  36.       7)threw the computer out the window
  37.       8)slapped django in the face with a cod, cussed, and pouted, stomped
  38. I'm sure it's some newbie pibkac error. but what???
  39. ============================================================================'''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement