what about example of project ?

2006-10-07 Thread Marco Amato

Hi !

I am not a big programmer , and I will found usefull sample of code.
So, what about add a list of app and project for example?

I want no more than less that a tar.gz or a zip whit alots of code :D

Thanks for everybody for read this idea

MA.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



follow-the-tutorial.. little problem..

2006-10-04 Thread Marco Amato

Hi !

I am in the part 2 of the tutorial after add the class Admin in evere
object and uncommenti in url.py the admin url

I receive this error from the server :

SuspiciousOperation at /admin/
User tampered with session cookie.
Request Method: GET
Request URL:http://127.0.0.1:8000/admin/
Exception Type: SuspiciousOperation
Exception Value:User tampered with session cookie.
Exception Location:

/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/contrib/sessions/models.py
in get_decoded, line 65

I use svn version, where could be my error ?

Thanks

MA.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: 'module' object is not callable

2006-10-01 Thread Marco Amato

I am really sorry for the stupid question

Import Contex whit the C (the doc is right) all work like a charm

Thanks


On 10/1/06, Brett Parker <[EMAIL PROTECTED]> wrote:
>
> On Sun, Oct 01, 2006 at 11:20:08AM +0200, Marco Amato wrote:
> > def index(request):
> >list = Evento.objects.all().order_by('-data')[:5]
> >t = loader.get_template('index.html')
> >>c = context({'list': list,})
> >return HttpResponse(t.render(c))
> >
>
> I'm not sure what you've got imported, but the Context should have a
> C... from my views I have:
>
> from django.template import Context, loader
>
> Cheers,
> --
> Brett Parker

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



'module' object is not callable

2006-10-01 Thread Marco Amato

I doesnt undestand this error :

Type error at /
'module' object is not callable
   Request Method:   GET
   Request URL:   http://127.0.0.1:8000/
   Exception Type:   TypeError
   Exception Value:   'module' object is not callable
   Exception Location:
/home/marco/test_/test../test/selecto/views.py in index,
line 18


but the line 18 .. is :


def index(request):
   list = Evento.objects.all().order_by('-data')[:5]
   t = loader.get_template('index.html')
   >c = context({'list': list,})
   return HttpResponse(t.render(c))


ps: in the tutorial contex is writed Contex whit the C

thanks

MA.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: template dir problem

2006-10-01 Thread Marco Amato
sound like the directory that I setting in the setting.py doesnt work correctly I correct this using in view.py only 'index.html' and in TEMPLATES_DIR the complete pathThanks ,and sorry for the stupid question
On 10/1/06, Marco Amato <[EMAIL PROTECTED]> wrote:
Hi to all !I have this error :TemplateDoesNotExist at /
  selecto/index.htmlfrom :---setting.pyTEMPLATE_DIRS = (    '/home/marco/test_/test/selecto/')--selecto/view.pydef index(request):    list = Evento.objects.all().order_by('-data')[:5]
    t = loader.get_template('selecto/index.html')    c = Context({    'list': list,    })    return HttpResponse(t.render(c))the index.html is like the sample of the tutorial 

where I am wrong ?Thanks for help me !I am a newbie of django and I learn alots of thinks about web programming whit him  ! thanks



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group.  To post to this group, send email to django-users@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


template dir problem

2006-10-01 Thread Marco Amato
Hi to all !I have this error :TemplateDoesNotExist at /
  selecto/index.htmlfrom :---setting.pyTEMPLATE_DIRS = (    '/home/marco/test_/test/selecto/')--selecto/view.pydef index(request):    list = Evento.objects.all().order_by('-data')[:5]
    t = loader.get_template('selecto/index.html')    c = Context({    'list': list,    })    return HttpResponse(t.render(c))the index.html is like the sample of the tutorial 
where I am wrong ?Thanks for help me !I am a newbie of django and I learn alots of thinks about web programming whit him  ! thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group.  To post to this group, send email to django-users@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


problem to solving URL

2006-09-30 Thread Marco Amato
Hi ,whit a view like this in selecto APP Create your views here.from django.http import HttpResponsedef index(request):    return HttpResponse("Hello, world. You're at the poll index.")
 and URL.py###from django.conf.urls.defaults import *urlpatterns = patterns('',    # Example: (r'^base/$', include('test.selecto.views')),    # Uncomment this for admin:
 (r'^admin/$', include('django.contrib.admin.urls')),)the page url/base/ say ##AttributeError at /base/'module' object has no attribute 'urlpatterns'
#I have tried   to use also : 
 (r'^base/$', include('test.selecto.views.index')),
but say that the App index doesnt existWhere is my error ?Thanks !!Marco

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group.  To post to this group, send email to django-users@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


Re: problem whit admin login

2006-09-27 Thread Marco Amato
nope - it is what you gave when you did createsuperuser - you *did*create the superuser?
No, I doest find the createsuperuser comand ..$ django-admin.py createsuperuser name [EMAIL PROTECTED] passwordError: Your action, 'createsuperuser', was invalid.
Run "/usr/bin/django-admin.py --help" for help.I use the last stable version Where is it?Thanks 
--regardskghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group.  To post to this group, send email to django-users@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---


problem whit admin login

2006-09-27 Thread Marco Amato
HI !I am a newbie , my roblem is that I can login in the admin panel http://127.0.0.1:8000/admin/The password  and the user is tha same of the mysql databases, right ?
The same  that in setting.py are DATABASE_USER and DATABASE_PASSWORD !Thanks and sorry for the stupid question
Bye


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group.  To post to this group, send email to django-users@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---