Archive for May, 2008

ImproperlyConfigured at … Error while importing URLconf .. ‘admin’ is not defined

May 30, 08 by

Error:

When django could not able to import admin model then the error comes

ImproperlyConfigured at … Error while importing URLconf .. ‘admin’ is not defined

Solution:

Define

from django.contrib import admin

at the top of urls.py file

AttributeError: ‘module’ object has no attribute ‘ModelAdmin’

May 30, 08 by

Error:

While working Django New Admin Form, if environment variable PYTHONPATH has not been set or wrongly set the error appears.

AttributeError: ‘module’ object has no attribute ‘ModelAdmin’

Solution:

PYTHONPATH should map to Django New Admin form branch directory.

Example:

export PYTHONPATH="/usr/lib/python2.5/site-packages/django-nfa"

Where django-nfa is Django New Admin form branch directory

TypeError: not all arguments converted during string formatting

May 29, 08 by

Error

Error comes in Django Programming

when all %s or %i is has not been replaced

Example:

name = ‘%s %s %s’ % (var1, var2)

Solution

It should be

name = ‘%s %s %s’ % (var1, var2, var3)

Writing HTML in a SCRIPT Element

May 29, 08 by

A common error (and the most common source of erroneous bug reports for the WDG HTML Validator) occurs when writing HTML tags within a SCRIPT element:

<script type="text/javascript">
<!--
// This is an error!
document.write(”</P>”);
// –>

</script>
Read the rest of this entry »

Django History

May 29, 08 by

Django started as an internal project at the Lawrence Journal-World newspaper in 2003. The web development team there often had to implement new features or even entire applications within hours. Therefore, Django was created to meet the fast deadlines of journalism websites, whilst at the same time keeping the development process clean and maintainable. By the summer of 2005, Django became mature enough to handle several high traffic sites, and the developers decided to release it to the public as an Open Source project. The project was named after the jazz guitarist Django Reinhardt.
Now that Django is an Open Source project, it has gathered developers and users from all over the world. Bug fixes and new features are introduced on a daily basis, while the original development team keeps an eye on the whole process to make sure that Django remains what it is meant to be—a web framework for building clean, maintainable and reusable web applications.

For your rapid web development, this site try to list all the bugs and fixes.

XHTML Validation Problems with ASCII Characters

May 29, 08 by

One of the requirements of XHTML-Strict validation is to code certain characters in ASCII syntax. Below is a list of characters and the ASCII equivalents that must be used to achieve proper validation. This list is meant as a starting point, add to it as you find necessary:
Ampersands

Ampersands (&) must be encoded as HTML entities…

———–

&amp;

———-


Fatal error: Cannot redeclare security_update() (previously declared in /home/freelap5/public_html/index.php:13) in /home/freelap5/public_html/index.php on line 27