urls.py should look like this
from django.conf.urls.defaults import*
from wikicamp.views import hello
urlpattern = patterns(' ',
('^hello/$',hello),
)
On Thu, May 17, 2012 at 12:23 PM, Tanveer Ali Sha wrote:
> Hi Apokalyptica Painkiller ,
>
> Here is my urls.py and views.py
>
>
> *URLS.PY*
>
This should answer your question:
class Person(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
def __unicode__(self):
return u'%s %s' % (self.first_name, self.last_name)
If you define a __unicode__() method on your mode
Copy and paste the stacktrace
On May 17, 2012 11:58 AM, "Ali Shaikh" wrote:
> Hey...
>
>
> I am practicing to implement simple examples in django...
>
> started project with
> 1.django-admin.py startproject wikicamp
> 2.python manage.py startapp wiki
> 3.editing the setting
> 4.python manage.
3 matches
Mail list logo